-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroslynator.config
More file actions
58 lines (55 loc) · 3.68 KB
/
roslynator.config
File metadata and controls
58 lines (55 loc) · 3.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Enable all analyzers by default
is_global = true
severity = default
# Prefer explicit type over var
rcs1008.severity = warning # Use explicit type instead of 'var' (when the type is not obvious)
rcs1009.severity = none # Use explicit type instead of 'var' (foreach variable)
rcs1010.severity = warning # Use explicit type instead of 'var' (when the type is obvious)
# Other style preferences aligned with .editorconfig
rcs1018.severity = warning # Add accessibility modifiers
rcs1036.severity = warning # Remove redundant empty line
rcs1037.severity = warning # Remove trailing white-space
rcs1049.severity = suggestion # Simplify boolean comparison
rcs1058.severity = suggestion # Use compound assignment
rcs1089.severity = suggestion # Use ++/-- operator instead of assignment
rcs1096.severity = suggestion # Use bitwise operation instead of calling 'HasFlag'
rcs1104.severity = suggestion # Simplify conditional expression
rcs1118.severity = warning # Mark local variable as const
rcs1124.severity = none # Inline local variable (too aggressive)
rcs1128.severity = suggestion # Use default literal
rcs1138.severity = warning # Add summary to documentation comment
rcs1139.severity = none # Add summary element to documentation comment (duplicate of RCS1138)
rcs1140.severity = suggestion # Add exception to documentation comment
rcs1141.severity = none # Add parameter to documentation comment (too verbose for all parameters)
rcs1142.severity = none # Add type parameter to documentation comment (too verbose)
rcs1146.severity = suggestion # Use conditional access
rcs1163.severity = none # Unused parameter (handled by IDE0060)
rcs1168.severity = warning # Parameter name differs from base name
rcs1170.severity = suggestion # Use read-only auto-implemented property
rcs1175.severity = none # Unused this parameter (too aggressive)
rcs1181.severity = none # Convert comment to documentation comment (too aggressive)
rcs1182.severity = warning # Remove redundant base interface
rcs1194.severity = warning # Implement exception constructors
rcs1197.severity = suggestion # Optimize StringBuilder.Append/AppendLine call
rcs1205.severity = suggestion # Order named arguments according to the order of parameters
rcs1207.severity = suggestion # Use method group instead of lambda
rcs1213.severity = none # Remove unused member declaration (handled by IDE)
rcs1214.severity = suggestion # Unnecessary interpolated string
rcs1217.severity = suggestion # Convert interpolated string to concatenation
rcs1220.severity = suggestion # Use pattern matching instead of combination of 'is' operator and cast operator
# Disable some rules that conflict with project style
rcs1003.severity = none # Add braces to if-else (we use csharp_prefer_braces)
rcs1007.severity = none # Add braces (we use csharp_prefer_braces)
rcs1021.severity = none # Simplify lambda expression (can make code less readable)
rcs1032.severity = none # Remove redundant parentheses (can reduce clarity)
rcs1061.severity = none # Merge if statement with nested if statement (can reduce readability)
rcs1090.severity = none # Call 'ConfigureAwait(false)' (not needed in ASP.NET Core)
rcs1105.severity = none # Unnecessary interpolation (personal preference)
rcs1123.severity = none # Add parentheses when necessary (handled by IDE)
rcs1161.severity = none # Enum member should declare explicit value
rcs1169.severity = none # Mark field as read-only (handled by IDE0044)
rcs1188.severity = none # Remove redundant auto-property initialization
rcs1212.severity = none # Remove redundant assignment (can be useful for clarity)
rcs1228.severity = none # Unused element in documentation comment
rcs1234.severity = none # Duplicate enum value
rcs1241.severity = none # Implement non-generic counterpart