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:
authorPranav K <prkrishn@hotmail.com>2022-01-11 18:47:40 +0300
committerGitHub <noreply@github.com>2022-01-11 18:47:40 +0300
commit2862028573708e5684bf17526c43127e178525d4 (patch)
tree29ee60cf4776e2be3aeed2a4f5f04ebfecbf2fa5 /.editorconfig
parentcf2679d0abd066dc1577741c7d587bbbc8a6b32f (diff)
Bump up warning level for CA1822 (#39436)
Contributes to https://github.com/dotnet/aspnetcore/issues/24055
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig7
1 files changed, 6 insertions, 1 deletions
diff --git a/.editorconfig b/.editorconfig
index c1aa2f7823..9917be5e08 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -105,7 +105,8 @@ dotnet_diagnostic.CA1810.severity = suggestion
dotnet_diagnostic.CA1821.severity = warning
# CA1822: Make member static
-dotnet_diagnostic.CA1822.severity = suggestion
+dotnet_diagnostic.CA1822.severity = warning
+dotnet_code_quality.CA1822.api_surface = private, internal
# CA1823: Avoid unused private fields
dotnet_diagnostic.CA1823.severity = warning
@@ -239,6 +240,8 @@ dotnet_diagnostic.CA1507.severity = suggestion
dotnet_diagnostic.CA1802.severity = suggestion
# CA1805: Do not initialize unnecessarily
dotnet_diagnostic.CA1805.severity = suggestion
+# CA1822: Make member static
+dotnet_diagnostic.CA1822.severity = suggestion
# CA1823: Avoid zero-length array allocations
dotnet_diagnostic.CA1825.severity = suggestion
# CA1826: Do not use Enumerable methods on indexable collections. Instead use the collection directly
@@ -278,6 +281,8 @@ dotnet_diagnostic.CA2016.severity = suggestion
# Defaults for content in the shared src/ and shared runtime dir
[{**/Shared/runtime/**.{cs,vb},src/Shared/test/Shared.Tests/runtime/**.{cs,vb},**/microsoft.extensions.hostfactoryresolver.sources/**.{cs,vb}}]
+# CA1822: Make member static
+dotnet_diagnostic.CA1822.severity = silent
# IDE0011: Use braces
dotnet_diagnostic.IDE0011.severity = silent
# IDE0055: Fix formatting