@@ -22,6 +22,8 @@ csharp_style_expression_bodied_indexers = true
22
22
csharp_style_expression_bodied_accessors = true
23
23
csharp_style_expression_bodied_lambdas = when_on_single_line
24
24
25
+ # TODO: Fix silenced and suggested rules!
26
+
25
27
# CS0168: The variable 'var' is declared but never used
26
28
dotnet_diagnostic.CS0168.severity = error
27
29
# CS0169: The private field 'class member' is never used
@@ -30,10 +32,31 @@ dotnet_diagnostic.CS0169.severity = error
30
32
dotnet_diagnostic.CS0219.severity = error
31
33
# CS0414: The private field 'field' is assigned but its value is never used
32
34
dotnet_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
+
33
44
# CA1067: Should override Equals because it implements IEquatable<T>
34
45
dotnet_diagnostic.CA1067.severity = silent
35
46
# CA1068: CancellationToken parameters must come last
36
47
dotnet_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
37
60
# CA1822: Mark members as static
38
61
dotnet_diagnostic.CA1822.severity = error
39
62
# CA1823: Avoid unused private fields
@@ -45,23 +68,6 @@ dotnet_diagnostic.CA2016.severity = error
45
68
# CA2254: The logging message template should not vary between calls to 'LoggerExtensions.*'
46
69
dotnet_diagnostic.CA2254.severity = silent
47
70
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
-
65
71
# RCS1102: Make class static
66
72
dotnet_diagnostic.RCS1102.severity = error
67
73
# RCS1139: Add summary element to documentation comment
0 commit comments