Add BannedApiAnalyzers from roslyn

This commit is contained in:
Matt Parker
2025-11-20 00:02:13 +10:00
parent 7aa5f103d9
commit 348aed4ae5
4 changed files with 86 additions and 0 deletions

View File

@@ -2,6 +2,9 @@
dotnet_analyzer_diagnostic.category-ApiDesign.severity = none
dotnet_analyzer_diagnostic.category-RoslynDiagnosticsMaintainability.severity = suggestion
# RS0030: Banned APIs
dotnet_diagnostic.RS0030.severity = warning
# CA2012: Use ValueTasks correctly
dotnet_diagnostic.CA2012.severity = warning