Skip to content

Commit

Permalink
Disable CA1307 for .NET 4.7
Browse files Browse the repository at this point in the history
Since .NET 4.6 and 4.7 do not provide method overloads accepting
StringComparison.  Disable the warning until support for these versions
is dropped.

Signed-off-by: Kevin Locke <[email protected]>
  • Loading branch information
kevinoid committed Dec 1, 2023
1 parent 6e559be commit 0581567
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ dotnet_code_quality.api_surface = all
# Limit "Validate arguments of public methods" to public methods
# We may forego validation of calls we control for brevity or performance
dotnet_code_quality.CA1062.api_surface = public
# Suggest "Specify StringComparison for clarity"
# TODO: Enable when dropping support for .NET 4.7
dotnet_diagnostic.CA1307.severity = suggestion
# Suggest "Avoid excessive class coupling"
# Broken https://github.com/dotnet/roslyn-analyzers/issues/2133
dotnet_diagnostic.CA1506.severity = suggestion
Expand Down

0 comments on commit 0581567

Please sign in to comment.