Skip to content

Commit

Permalink
Change CA2211 from suggestion (analyser default level) to silent.
Browse files Browse the repository at this point in the history
The codebase has a lot of violations of this rule, reduce the amount of noise by reducing the severity.
  • Loading branch information
RoosterDragon authored and PunkPun committed Nov 17, 2023
1 parent 89e1d71 commit 499efa1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,7 @@ dotnet_diagnostic.SA1649.severity = none # FileNameMustMatchTypeName
#### https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/

# Below we enable specific rules by setting severity to warning.
# Rules are disabled by setting severity to silent (to still allow use in IDE) or none (to prevent all use).
# Rules are listed below with any options available.
# Options are commented out if they match the defaults.

Expand Down Expand Up @@ -920,6 +921,9 @@ dotnet_diagnostic.CA2207.severity = warning
# Instantiate argument exceptions correctly.
dotnet_diagnostic.CA2208.severity = warning

# Non-constant fields should not be visible.
dotnet_diagnostic.CA2211.severity = silent

# Dispose methods should call base class dispose.
dotnet_diagnostic.CA2215.severity = warning

Expand Down

0 comments on commit 499efa1

Please sign in to comment.