diff options
author | Shreyas Jejurkar <shreyasjejurkar123@live.com> | 2022-02-04 22:07:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-04 22:07:30 +0300 |
commit | f486e788132cd32bc0d435b773415f7d61df3e69 (patch) | |
tree | 3eb6be0755e2bedbbcad212eb512b8e430378870 /.editorconfig | |
parent | c3e4337ae629ebe5f88c782bb085d8430e83fdeb (diff) |
Refactor : Enable CA1847 (#39983)
CA 1847 - https://docs.microsoft.com/en-gb/dotnet/fundamentals/code-analysis/quality-rules/ca1847
Contributes to #24055
Diffstat (limited to '.editorconfig')
-rw-r--r-- | .editorconfig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig index 0296b9eb79..d73035f0e6 100644 --- a/.editorconfig +++ b/.editorconfig @@ -175,6 +175,9 @@ dotnet_diagnostic.CA1845.severity = warning # CA1846: Prefer AsSpan over Substring dotnet_diagnostic.CA1846.severity = warning +# CA1847: Use string.Contains(char) instead of string.Contains(string) with single characters +dotnet_diagnostic.CA1847.severity = warning + # CA2007: Consider calling ConfigureAwait on the awaited task dotnet_diagnostic.CA2007.severity = warning @@ -288,6 +291,8 @@ dotnet_diagnostic.CA1844.severity = suggestion dotnet_diagnostic.CA1845.severity = suggestion # CA1846: Prefer AsSpan over Substring dotnet_diagnostic.CA1846.severity = suggestion +# CA1847: Use string.Contains(char) instead of string.Contains(string) with single characters +dotnet_diagnostic.CA1847.severity = suggestion # CA2008: Do not create tasks without passing a TaskScheduler dotnet_diagnostic.CA2008.severity = suggestion # CA2012: Use ValueTask correctly |