@@ -22,6 +22,8 @@ csharp_style_expression_bodied_indexers = true
2222csharp_style_expression_bodied_accessors = true
2323csharp_style_expression_bodied_lambdas = when_on_single_line
2424
25+ # TODO: Fix silenced and suggested rules!
26+
2527# CS0168: The variable 'var' is declared but never used
2628dotnet_diagnostic.CS0168.severity = error
2729# CS0169: The private field 'class member' is never used
@@ -30,10 +32,31 @@ dotnet_diagnostic.CS0169.severity = error
3032dotnet_diagnostic.CS0219.severity = error
3133# CS0414: The private field 'field' is assigned but its value is never used
3234dotnet_diagnostic.CS0414.severity = error
35+ # CS0618: A class member was marked with the Obsolete attribute
36+ dotnet_diagnostic.CS0618.severity = suggestion
37+ # CS0649: Uninitialized private or internal field declaration that is never assigned a value
38+ dotnet_diagnostic.CS0649.severity = error
39+ # CS1998: This async method lacks 'await' operators and will run synchronously
40+ dotnet_diagnostic.CS1998.severity = suggestion
41+ # CS4014: Consider applying the await operator to the result of the call
42+ dotnet_diagnostic.CS4014.severity = suggestion
43+
3344# CA1067: Should override Equals because it implements IEquatable<T>
3445dotnet_diagnostic.CA1067.severity = silent
3546# CA1068: CancellationToken parameters must come last
3647dotnet_diagnostic.CA1068.severity = error
48+ # CA1501: Avoid excessive inheritance
49+ dotnet_diagnostic.CA1501.severity = error
50+ # CA1502: Avoid excessive complexity
51+ dotnet_diagnostic.CA1502.severity = warning
52+ # CA1505: Avoid unmaintainable code
53+ dotnet_diagnostic.CA1505.severity = error
54+ # CA1506: Avoid excessive class coupling
55+ dotnet_diagnostic.CA1506.severity = warning
56+ # CA1507: Use nameof in place of string
57+ dotnet_diagnostic.CA1507.severity = error
58+ # CA1508: Avoid dead conditional code
59+ dotnet_diagnostic.CA1508.severity = error
3760# CA1822: Mark members as static
3861dotnet_diagnostic.CA1822.severity = error
3962# CA1823: Avoid unused private fields
@@ -45,23 +68,6 @@ dotnet_diagnostic.CA2016.severity = error
4568# CA2254: The logging message template should not vary between calls to 'LoggerExtensions.*'
4669dotnet_diagnostic.CA2254.severity = silent
4770
48- # TODO: Enable all maintainability issues (dead code etc.) and enforce
49- # See: https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/maintainability-warnings
50- dotnet_analyzer_diagnostic.category-Maintainability.severity = error
51-
52- # TODO: Fix all of these issues and explicitly ignore the intentional ones!
53-
54- # CA2016: Forward the CancellationToken parameter to methods that take one
55- dotnet_diagnostic.CA2016.severity = error
56- # CS0618: A class member was marked with the Obsolete attribute
57- dotnet_diagnostic.CS0618.severity = suggestion
58- # CS0649: Uninitialized private or internal field declaration that is never assigned a value
59- dotnet_diagnostic.CS0649.severity = error
60- # CS1998: This async method lacks 'await' operators and will run synchronously
61- dotnet_diagnostic.CS1998.severity = suggestion
62- # CS4014: Consider applying the await operator to the result of the call
63- dotnet_diagnostic.CS4014.severity = suggestion
64-
6571# RCS1102: Make class static
6672dotnet_diagnostic.RCS1102.severity = error
6773# RCS1139: Add summary element to documentation comment
0 commit comments