Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/aspnetcore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShreyas Jejurkar <shreyasjejurkar123@live.com>2022-02-04 22:07:30 +0300
committerGitHub <noreply@github.com>2022-02-04 22:07:30 +0300
commitf486e788132cd32bc0d435b773415f7d61df3e69 (patch)
tree3eb6be0755e2bedbbcad212eb512b8e430378870 /.editorconfig
parentc3e4337ae629ebe5f88c782bb085d8430e83fdeb (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--.editorconfig5
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