Skip to content

Commit 5921b6e

Browse files
authored
Disable a few duplicate analyzer rules. (#1254)
1 parent 4ce18d3 commit 5921b6e

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.editorconfig

+30
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ dotnet_diagnostic.S1135.severity = none
6565
# We sometimes return null to avoid allocating an empty List<T>.
6666
dotnet_diagnostic.S1168.severity = none
6767

68+
# S1144: Unused private types or members should be removed
69+
# https://rules.sonarsource.com/csharp/RSPEC-1144
70+
#
71+
# This is a duplicate of IDE0051.
72+
dotnet_diagnostic.S1144.severity = none
73+
6874
# S1172: Unused method parameters should be removed
6975
# https://rules.sonarsource.com/csharp/RSPEC-1172
7076
#
@@ -89,6 +95,12 @@ dotnet_diagnostic.S1854.severity = none
8995
# The analysis is not precise enough, leading to false positives.
9096
dotnet_diagnostic.S2259.severity = none
9197

98+
# S2292: Trivial properties should be auto-implemented
99+
# https://rules.sonarsource.com/csharp/RSPEC-2292
100+
#
101+
# This is a duplicate of IDE0032.
102+
dotnet_diagnostic.S2292.severity = none
103+
92104
# S2445: Blocks should be synchronized on read-only fields
93105
# https://rules.sonarsource.com/csharp/RSPEC-2445
94106
#
@@ -150,12 +162,30 @@ dotnet_diagnostic.S3267.severity = none
150162
# consider enabling S3376 in favor of MA0058.
151163
dotnet_diagnostic.S3376.severity = none
152164

165+
# S3442: "abstract" classes should not have "public" constructors
166+
# https://rules.sonarsource.com/csharp/RSPEC-3442
167+
#
168+
# This is a duplicate of MA0017.
169+
dotnet_diagnostic.S3442.severity = none
170+
171+
# S3450: Parameters with "[DefaultParameterValue]" attributes should also be marked "[Optional]"
172+
# https://rules.sonarsource.com/csharp/RSPEC-3450
173+
#
174+
# This is a duplicate of MA0087.
175+
dotnet_diagnostic.S3450.severity = none
176+
153177
# S3871: Exception types should be "public"
154178
# https://rules.sonarsource.com/csharp/RSPEC-3871
155179
#
156180
# This is a duplicate of CA1064.
157181
dotnet_diagnostic.S3871.severity = none
158182

183+
# S3903: Types should be defined in named namespaces
184+
# https://rules.sonarsource.com/csharp/RSPEC-3903
185+
#
186+
# This is a duplicate of MA0047.
187+
dotnet_diagnostic.S3903.severity = none
188+
159189
# S3925: "ISerializable" should be implemented correctly
160190
# https://rules.sonarsource.com/csharp/RSPEC-3925
161191
#

0 commit comments

Comments
 (0)