chore(analyzers): sets some default

This commit is contained in:
2025-08-11 11:28:24 -04:00
parent 2b3de2c7a5
commit 165577ef22
2 changed files with 9 additions and 3 deletions

View File

@@ -284,3 +284,10 @@ resharper_local_function_body = expression_body
# CS9236: Compiling requires binding the lambda expression at least 100 times # CS9236: Compiling requires binding the lambda expression at least 100 times
dotnet_diagnostic.CS9236.severity = error dotnet_diagnostic.CS9236.severity = error
# Turn off CA1848 for now (for improved performance, use LoggerMessage delegate)
dotnet_diagnostic.CA1848.severity = none
# Turn off CA1515(make public types internal) for files that contain exception types
[**/*Exception.cs]
dotnet_diagnostic.CA1515.severity = none

View File

@@ -11,7 +11,6 @@
<AnalysisMode>AllEnabledByDefault</AnalysisMode> <AnalysisMode>AllEnabledByDefault</AnalysisMode>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors> <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningsAsErrors/> <WarningsAsErrors/>
<CodeAnalysisRuleSet>analyzers.ruleset</CodeAnalysisRuleSet>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>