Skip to content

Commit

Permalink
Additional code analysis suppressions
Browse files Browse the repository at this point in the history
  • Loading branch information
credfeto committed Jul 11, 2024
1 parent ffc87ad commit 6b8db78
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,20 @@ roslynator_object_creation_type_style=implicit_when_type_is_obvious
#roslynator_use_var_instead_of_implicit_object_creation = true|false
roslynator_use_var_instead_of_implicit_object_creation=false

# Enable GenerateDocumentationFile to enable Remove unnecessary usings/imports on build.. except this turns on xmlDocs
dotnet_diagnostic.IDE0005.severity = none
# Use Expression body for accessor
dotnet_diagnostic.IDE0027.severity = none
# 'if' statement can be simplified
dotnet_diagnostic.IDE0046.severity = suggestion
# Fix Formatting
dotnet_diagnostic.IDE0055.severity = none
# Expression value is never used
dotnet_diagnostic.IDE0058.severity = suggestion
# Using statement can be simplified
dotnet_diagnostic.IDE0063.severity = none
# Use block scoped namespace
dotnet_diagnostic.IDE0160.severity = none
# Use tuple to swap values
dotnet_diagnostic.IDE0180.severity = error
# Remove unnecessary lambda expression
Expand Down
2 changes: 2 additions & 0 deletions src/CodeAnalysis.ruleset
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@
<Rule Id="CA1505" Action="Error"/>
<!-- CA1506 - ?? -->
<Rule Id="CA1506" Action="None"/>
<!-- CA1515 - Because an application's API isn't typically referenced from outside the assembly, types can be made internal -->
<Rule Id="CA1515" Action="Info"/>
<!-- CA1600 - ?? -->
<Rule Id="CA1600" Action="Error"/>
<!-- CA1601 - ?? -->
Expand Down

0 comments on commit 6b8db78

Please sign in to comment.