-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.editorconfig
221 lines (150 loc) · 6.6 KB
/
.editorconfig
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
[*.cs]
dotnet_analyzer_diagnostic.category-Style.severity = error
#### CA
# CA1031: Do not catch general exception types
dotnet_diagnostic.CA1031.severity = silent
# CA1707: Identifiers should not contain underscores
dotnet_diagnostic.CA1707.severity = silent
# CA1711: Identifiers should not have incorrect suffix
dotnet_diagnostic.CA1711.severity = silent
# CA1716: Identifiers should not match keywords
dotnet_diagnostic.CA1716.severity = silent
# CA1820: Test for empty strings using string length
dotnet_diagnostic.CA1820.severity = silent
# CA1846: Prefer AsSpan over Substring
dotnet_diagnostic.CA1846.severity = silent
# CA1852: Seal internal types
dotnet_diagnostic.CA1852.severity = silent
#### SA
# SA1101: Prefix local calls with this
dotnet_diagnostic.SA1101.severity = none
# SA1116: Split parameters should start on line after declaration
dotnet_diagnostic.SA1116.severity = silent
# SA1124: Do not use regions
dotnet_diagnostic.SA1124.severity = none
# SA1201: Elements should appear in the correct order
dotnet_diagnostic.SA1201.severity = none
# SA1202: Elements should be ordered by access
dotnet_diagnostic.SA1202.severity = none
# SA1203: Constants should appear before fields
dotnet_diagnostic.SA1203.severity = none
# SA1204: Static elements should appear before instance elements
dotnet_diagnostic.SA1204.severity = none
# SA1214: Readonly fields should appear before non-readonly fields
dotnet_diagnostic.SA1214.severity = silent
# SA1306: Field names should begin with lower-case letter
dotnet_diagnostic.SA1306.severity = silent
# SA1312: Variable names should begin with lower-case letter
dotnet_diagnostic.SA1312.severity = silent
# SA1405: Debug.Assert should provide message text
dotnet_diagnostic.SA1405.severity = silent
# SA1502: Element should not be on a single line
dotnet_diagnostic.SA1502.severity = silent
# SA1503: Braces should not be omitted
dotnet_diagnostic.SA1503.severity = silent
# SA1504: All accessors should be single-line or multi-line
dotnet_diagnostic.SA1504.severity = silent
# SA1514: Element documentation header should be preceded by blank line
dotnet_diagnostic.SA1514.severity = silent
# SA1516: Elements should be separated by blank line
dotnet_diagnostic.SA1516.severity = silent
# SA1519: Braces should not be omitted from multi-line child statement
dotnet_diagnostic.SA1519.severity = silent
# SA1520: Use braces consistently
dotnet_diagnostic.SA1520.severity = silent
# SA1615: Element return value should be documented
dotnet_diagnostic.SA1615.severity = silent
# SA1633: File should have header
dotnet_diagnostic.SA1633.severity = silent
#### IDE
# IDE0001: Simplify name
dotnet_diagnostic.IDE0001.severity = warning
# IDE0002: Simplify member access
dotnet_diagnostic.IDE0002.severity = warning
# IDE0004: Remove unnecessary cast
dotnet_diagnostic.IDE0004.severity = warning
# IDE0011: Add braces
dotnet_diagnostic.IDE0011.severity = none
dotnet_diagnostic.CSL1007.severity = warning
dotnet_diagnostic.CSL1008.severity = warning
csharp_prefer_braces = recursive
# IDE0016: Use throw expression
dotnet_diagnostic.IDE0016.severity = warning
# IDE0019: Use pattern matching to avoid as followed by a null check
dotnet_diagnostic.IDE0019.severity = warning
# IDE0020: Use pattern matching to avoid is check followed by a cast (with variable)
dotnet_diagnostic.IDE0020.severity = warning
# IDE0020: Use expression body for methods
dotnet_diagnostic.IDE0022.severity = warning
csharp_style_expression_bodied_methods = when_on_single_line
# IDE0030: Null check can be simplified (if null check)
dotnet_diagnostic.IDE0030.severity = warning
# IDE0031: Use null propagation
dotnet_diagnostic.IDE0031.severity = warning
# IDE0033: Use explicitly provided tuple name
dotnet_diagnostic.IDE0033.severity = warning
# IDE0034: Simplify default expression
dotnet_diagnostic.IDE0034.severity = warning
# IDE0037: Use inferred member name
dotnet_diagnostic.IDE0037.severity = warning
# IDE0038: Use pattern matching to avoid is check followed by a cast (without variable)
dotnet_diagnostic.IDE0038.severity = warning
# IDE0040: Add accessibility modifiers
dotnet_diagnostic.IDE0040.severity = warning
# IDE0041: Use 'is null' check
dotnet_diagnostic.IDE0041.severity = warning
# IDE0044: Add readonly modifier
dotnet_diagnostic.IDE0044.severity = warning
# IDE0048: Add parentheses for clarity
dotnet_diagnostic.IDE0048.severity = warning
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity
dotnet_style_parentheses_in_other_operators = always_for_clarity
# IDE0051: Remove unused private member
dotnet_diagnostic.IDE0051.severity = warning
# IDE0052: Remove unread private member
dotnet_diagnostic.IDE0052.severity = warning
# IDE0058: Remove unnecessary expression value
dotnet_diagnostic.IDE0058.severity = warning
# IDE0059: Remove unnecessary value assignment
dotnet_diagnostic.IDE0059.severity = warning
# IDE0065: using directive placement
csharp_using_directive_placement = inside_namespace
# IDE0066: Use switch expression
dotnet_diagnostic.IDE0066.severity = warning
# IDE0070: Use System.HashCode.Combine
dotnet_diagnostic.IDE0070.severity = warning
# IDE0071: Simplify interpolation
dotnet_diagnostic.IDE0071.severity = warning
# IDE0072: Add missing cases to switch expression
dotnet_diagnostic.IDE0072.severity = warning
# IDE0078: Use pattern matching
dotnet_diagnostic.IDE0078.severity = warning
# IDE0080: Remove unnecessary suppression operator
dotnet_diagnostic.IDE0080.severity = warning
# IDE0082: Convert typeof to nameof
dotnet_diagnostic.IDE0082.severity = warning
# IDE0083: Use pattern matching (not operator)
dotnet_diagnostic.IDE0083.severity = warning
# IDE0090: Use 'new(...)'
dotnet_diagnostic.IDE0090.severity = warning
# IDE0110: Remove unnecessary discard
dotnet_diagnostic.IDE0110.severity = warning
# IDE0120: Simplify LINQ expression
dotnet_diagnostic.IDE0120.severity = warning
# IDE0130: Namespace does not match folder structure
dotnet_diagnostic.IDE0130.severity = silent
# IDE0161: Use file-scoped namespace
dotnet_diagnostic.IDE0161.severity = warning
csharp_style_namespace_declarations = file_scoped
# IDE0250: Struct can be made 'readonly'
dotnet_diagnostic.IDE0250.severity = warning
# IDE0251: Member can be made 'readonly'
dotnet_diagnostic.IDE0251.severity = warning
# IDE0260: Use pattern matching
dotnet_diagnostic.IDE0260.severity = warning
# IDE0270: Null check can be simplified (if null check)
dotnet_diagnostic.IDE0270.severity = warning
# IDE0280: Use 'nameof'
dotnet_diagnostic.IDE0280.severity = warning