Skip to content

Commit 2174334

Browse files
Update code analysis rules
1 parent 2bc1b95 commit 2174334

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.editorconfig

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ root = true
66
# don't use tabs for indentation
77
[*]
88
indent_style = space
9+
vsspell_section_id = 41b65011239a40959ccaae2a4ec7044a
10+
vsspell_ignored_words_41b65011239a40959ccaae2a4ec7044a = clr|Edm|middleware|Mvc|odata|Validator|Accessor|app|inline
911

1012
# code files
1113
[*.{cs,csx,vb,vbx}]
@@ -110,6 +112,13 @@ dotnet_diagnostic.SA1502.severity = none
110112
dotnet_diagnostic.SA1516.severity = none
111113
dotnet_diagnostic.SA1600.severity = none
112114

115+
# TEMP: currently suppressed rules due to false positives
116+
# REF: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/3687
117+
# REF: https://github.com/dotnet/aspnetcore/issues/52556
118+
dotnet_diagnostic.SA1010.severity = none # Opening square brackets should be spaced correctly
119+
dotnet_diagnostic.ASP0022.severity = none # Route conflict detected between route handlers
120+
dotnet_diagnostic.ASP0023.severity = none # Route conflict detected between route handlers
121+
113122
# test settings
114123

115124
# Default severity for analyzer diagnostics with category 'Reliability'
@@ -128,6 +137,7 @@ dotnet_diagnostic.CA1707.severity = none
128137
dotnet_diagnostic.CA1711.severity = none
129138
dotnet_diagnostic.CA1716.severity = none
130139
dotnet_diagnostic.CA1806.severity = none
140+
dotnet_diagnostic.CA1861.severity = none
131141
dotnet_diagnostic.CA2007.severity = none
132142
dotnet_diagnostic.CA2234.severity = none
133143
dotnet_code_quality.CA2000.excluded_symbol_names = HttpRequestMessage|HttpResponseMessage|HttpConfiguration|HttpRouteCollection|HostedHttpRouteCollection|HttpServer|HttpClient
@@ -138,6 +148,13 @@ dotnet_diagnostic.SA1300.severity = none
138148
dotnet_diagnostic.SA1507.severity = none
139149
dotnet_diagnostic.SA1601.severity = none
140150

151+
# TEMP: currently suppressed rules due to false positives
152+
# REF: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/3687
153+
# REF: https://github.com/dotnet/aspnetcore/issues/52556
154+
dotnet_diagnostic.SA1010.severity = none # Opening square brackets should be spaced correctly
155+
dotnet_diagnostic.ASP0022.severity = none # Route conflict detected between route handlers
156+
dotnet_diagnostic.ASP0023.severity = none # Route conflict detected between route handlers
157+
141158
# test methods should use all lowercase characters
142159
dotnet_naming_symbols.test_methods.applicable_kinds = method
143160
dotnet_naming_symbols.test_methods.applicable_accessibilities = public
@@ -180,4 +197,4 @@ dotnet_naming_style.test_methods.word_separator = _
180197

181198
dotnet_naming_rule.test_methods.style = test_methods
182199
dotnet_naming_rule.test_methods.symbols = test_methods
183-
dotnet_naming_rule.test_methods.severity = error
200+
dotnet_naming_rule.test_methods.severity = error

0 commit comments

Comments
 (0)