-
Notifications
You must be signed in to change notification settings - Fork 1
/
.editorconfig
308 lines (260 loc) · 15.9 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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
[*.*]
dotnet_analyzer_diagnostic.severity = default
[*.{cs,vb}]
# Naming rules
dotnet_naming_rule.types_and_namespaces.severity = error
dotnet_naming_rule.types_and_namespaces.symbols = types_and_namespaces
dotnet_naming_rule.types_and_namespaces.style = pascal_case
dotnet_naming_rule.interfaces.severity = error
dotnet_naming_rule.interfaces.symbols = interfaces
dotnet_naming_rule.interfaces.style = interfaces
dotnet_naming_rule.type_parameters.severity = error
dotnet_naming_rule.type_parameters.symbols = type_parameters
dotnet_naming_rule.type_parameters.style = type_parameters
dotnet_naming_rule.methods.severity = error
dotnet_naming_rule.methods.symbols = methods
dotnet_naming_rule.methods.style = pascal_case
dotnet_naming_rule.properties.severity = error
dotnet_naming_rule.properties.symbols = properties
dotnet_naming_rule.properties.style = pascal_case
dotnet_naming_rule.events.severity = error
dotnet_naming_rule.events.symbols = events
dotnet_naming_rule.events.style = pascal_case
dotnet_naming_rule.local_variables.severity = error
dotnet_naming_rule.local_variables.symbols = local_variables
dotnet_naming_rule.local_variables.style = camel_case
dotnet_naming_rule.local_constants.severity = error
dotnet_naming_rule.local_constants.symbols = local_constants
dotnet_naming_rule.local_constants.style = camel_case
dotnet_naming_rule.parameters.severity = error
dotnet_naming_rule.parameters.symbols = parameters
dotnet_naming_rule.parameters.style = camel_case
dotnet_naming_rule.fields_not_private.severity = error
dotnet_naming_rule.fields_not_private.symbols = fields_not_private
dotnet_naming_rule.fields_not_private.style = pascal_case
dotnet_naming_rule.instance_fields_private.severity = error
dotnet_naming_rule.instance_fields_private.symbols = instance_fields_private
dotnet_naming_rule.instance_fields_private.style = underscore_camel_case
dotnet_naming_rule.static_fields_private.severity = error
dotnet_naming_rule.static_fields_private.symbols = static_fields_private
dotnet_naming_rule.static_fields_private.style = underscore_camel_case
dotnet_naming_rule.constant_fields_not_private.severity = error
dotnet_naming_rule.constant_fields_not_private.symbols = constant_fields_not_private
dotnet_naming_rule.constant_fields_not_private.style = pascal_case
dotnet_naming_rule.constant_fields_private.severity = error
dotnet_naming_rule.constant_fields_private.symbols = constant_fields_private
dotnet_naming_rule.constant_fields_private.style = pascal_case
dotnet_naming_rule.static_readonly_fields_not_private.severity = error
dotnet_naming_rule.static_readonly_fields_not_private.symbols = static_readonly_fields_not_private
dotnet_naming_rule.static_readonly_fields_not_private.style = pascal_case
dotnet_naming_rule.static_readonly_fields_private.severity = error
dotnet_naming_rule.static_readonly_fields_private.symbols = static_readonly_fields_private
dotnet_naming_rule.static_readonly_fields_private.style = underscore_camel_case
dotnet_naming_rule.local_functions.severity = error
dotnet_naming_rule.local_functions.symbols = local_functions
dotnet_naming_rule.local_functions.style = pascal_case
dotnet_naming_rule.all_other_entities.severity = error
dotnet_naming_rule.all_other_entities.symbols = all_other_entities
dotnet_naming_rule.all_other_entities.style = pascal_case
# Symbol specifications
dotnet_naming_symbols.types_and_namespaces.applicable_kinds = namespace, class, struct, enum
dotnet_naming_symbols.types_and_namespaces.applicable_accessibilities = *
dotnet_naming_symbols.types_and_namespaces.required_modifiers =
dotnet_naming_symbols.interfaces.applicable_kinds = interface
dotnet_naming_symbols.interfaces.applicable_accessibilities = *
dotnet_naming_symbols.interfaces.required_modifiers =
dotnet_naming_symbols.type_parameters.applicable_kinds = type_parameter
dotnet_naming_symbols.type_parameters.applicable_accessibilities = *
dotnet_naming_symbols.type_parameters.required_modifiers =
dotnet_naming_symbols.methods.applicable_kinds = method
dotnet_naming_symbols.methods.applicable_accessibilities = *
dotnet_naming_symbols.methods.required_modifiers =
dotnet_naming_symbols.properties.applicable_kinds = property
dotnet_naming_symbols.properties.applicable_accessibilities = *
dotnet_naming_symbols.properties.required_modifiers =
dotnet_naming_symbols.events.applicable_kinds = event
dotnet_naming_symbols.events.applicable_accessibilities = *
dotnet_naming_symbols.events.required_modifiers =
dotnet_naming_symbols.local_variables.applicable_kinds = local
dotnet_naming_symbols.local_variables.applicable_accessibilities = local
dotnet_naming_symbols.local_variables.required_modifiers =
dotnet_naming_symbols.local_constants.applicable_kinds = local
dotnet_naming_symbols.local_constants.applicable_accessibilities = local
dotnet_naming_symbols.local_constants.required_modifiers = const
dotnet_naming_symbols.parameters.applicable_kinds = parameter
dotnet_naming_symbols.parameters.applicable_accessibilities = *
dotnet_naming_symbols.parameters.required_modifiers =
dotnet_naming_symbols.fields_not_private.applicable_kinds = field
dotnet_naming_symbols.fields_not_private.applicable_accessibilities = public, internal, protected, protected_internal
dotnet_naming_symbols.fields_not_private.required_modifiers =
dotnet_naming_symbols.instance_fields_private.applicable_kinds = field
dotnet_naming_symbols.instance_fields_private.applicable_accessibilities = private
dotnet_naming_symbols.instance_fields_private.required_modifiers =
dotnet_naming_symbols.static_fields_private.applicable_kinds = field
dotnet_naming_symbols.static_fields_private.applicable_accessibilities = private
dotnet_naming_symbols.static_fields_private.required_modifiers = static
dotnet_naming_symbols.constant_fields_not_private.applicable_kinds = field
dotnet_naming_symbols.constant_fields_not_private.applicable_accessibilities = public, internal, protected, protected_internal
dotnet_naming_symbols.constant_fields_not_private.required_modifiers = const
dotnet_naming_symbols.constant_fields_private.applicable_kinds = field
dotnet_naming_symbols.constant_fields_private.applicable_accessibilities = private
dotnet_naming_symbols.constant_fields_private.required_modifiers = const
dotnet_naming_symbols.static_readonly_fields_not_private.applicable_kinds = field
dotnet_naming_symbols.static_readonly_fields_not_private.applicable_accessibilities = public, internal, protected, protected_internal
dotnet_naming_symbols.static_readonly_fields_not_private.required_modifiers = static, readonly
dotnet_naming_symbols.static_readonly_fields_private.applicable_kinds = field
dotnet_naming_symbols.static_readonly_fields_private.applicable_accessibilities = private
dotnet_naming_symbols.static_readonly_fields_private.required_modifiers = static, readonly
dotnet_naming_symbols.local_functions.applicable_kinds = local_function
dotnet_naming_symbols.local_functions.applicable_accessibilities = *
dotnet_naming_symbols.local_functions.required_modifiers =
dotnet_naming_symbols.all_other_entities.applicable_kinds = *
dotnet_naming_symbols.all_other_entities.applicable_accessibilities = *
dotnet_naming_symbols.all_other_entities.required_modifiers =
# Naming styles
dotnet_naming_style.interfaces.required_prefix = I
dotnet_naming_style.interfaces.required_suffix =
dotnet_naming_style.interfaces.word_separator =
dotnet_naming_style.interfaces.capitalization = pascal_case
dotnet_naming_style.type_parameters.required_prefix = T
dotnet_naming_style.type_parameters.required_suffix =
dotnet_naming_style.type_parameters.word_separator =
dotnet_naming_style.type_parameters.capitalization = pascal_case
dotnet_naming_style.pascal_case.required_prefix =
dotnet_naming_style.pascal_case.required_suffix =
dotnet_naming_style.pascal_case.word_separator =
dotnet_naming_style.pascal_case.capitalization = pascal_case
dotnet_naming_style.underscore_camel_case.required_prefix = _
dotnet_naming_style.underscore_camel_case.required_suffix =
dotnet_naming_style.underscore_camel_case.word_separator =
dotnet_naming_style.underscore_camel_case.capitalization = camel_case
dotnet_naming_style.camel_case.required_prefix =
dotnet_naming_style.camel_case.required_suffix =
dotnet_naming_style.camel_case.word_separator =
dotnet_naming_style.camel_case.capitalization = camel_case
dotnet_naming_style.all_upper_underscore.required_prefix =
dotnet_naming_style.all_upper_underscore.required_suffix =
dotnet_naming_style.all_upper_underscore.word_separator = _
dotnet_naming_style.all_upper_underscore.capitalization = all_upper
# Other
dotnet_style_operator_placement_when_wrapping = beginning_of_line
dotnet_style_coalesce_expression = true:suggestion
dotnet_style_null_propagation = true:suggestion
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
dotnet_style_prefer_auto_properties = true:silent
dotnet_style_object_initializer = true:suggestion
dotnet_style_collection_initializer = true:suggestion
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
dotnet_style_prefer_conditional_expression_over_return = true:silent
dotnet_style_explicit_tuple_names = true:suggestion
dotnet_style_prefer_inferred_tuple_names = true:suggestion
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
dotnet_style_prefer_compound_assignment = true:suggestion
dotnet_style_prefer_simplified_interpolation = true:suggestion
dotnet_style_namespace_match_folder = true:suggestion
dotnet_style_readonly_field = true:error
dotnet_style_predefined_type_for_member_access = true:silent
dotnet_style_predefined_type_for_locals_parameters_members = true:silent
dotnet_style_require_accessibility_modifiers = for_non_interface_members:error
dotnet_style_allow_statement_immediately_after_block_experimental = false:error
dotnet_style_allow_multiple_blank_lines_experimental = false:error
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent
dotnet_code_quality_unused_parameters = non_public:error
dotnet_style_qualification_for_method = false:silent
dotnet_style_qualification_for_property = false:silent
dotnet_style_qualification_for_field = false:silent
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
dotnet_style_qualification_for_event = false:silent
dotnet_style_prefer_collection_expression = true:suggestion
tab_width = 4
indent_size = 4
end_of_line = crlf
insert_final_newline = true
[*.cs]
csharp_indent_labels = one_less_than_current
csharp_using_directive_placement = outside_namespace:error
csharp_prefer_simple_using_statement = true:suggestion
csharp_prefer_braces = true:error
csharp_style_namespace_declarations = block_scoped:error
csharp_style_prefer_method_group_conversion = true:silent
csharp_style_prefer_top_level_statements = true:silent
csharp_style_expression_bodied_methods = false:silent
csharp_style_expression_bodied_constructors = false:silent
csharp_style_expression_bodied_operators = false:silent
csharp_style_expression_bodied_properties = true:silent
csharp_style_expression_bodied_indexers = true:silent
csharp_style_expression_bodied_accessors = true:silent
csharp_style_expression_bodied_lambdas = true:silent
csharp_style_expression_bodied_local_functions = false:silent
csharp_style_throw_expression = true:suggestion
csharp_style_prefer_null_check_over_type_check = true:suggestion
csharp_prefer_simple_default_expression = true:suggestion
csharp_style_prefer_local_over_anonymous_function = true:suggestion
csharp_style_prefer_index_operator = true:suggestion
csharp_style_prefer_range_operator = true:suggestion
csharp_style_implicit_object_creation_when_type_is_apparent = true:suggestion
csharp_style_prefer_tuple_swap = true:suggestion
csharp_style_prefer_utf8_string_literals = true:suggestion
csharp_style_inlined_variable_declaration = true:suggestion
csharp_style_deconstructed_variable_declaration = true:suggestion
csharp_style_unused_value_assignment_preference = discard_variable:suggestion
csharp_style_unused_value_expression_statement_preference = discard_variable:silent
csharp_style_prefer_readonly_struct = true:suggestion
csharp_prefer_static_local_function = true:suggestion
csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = false:error
csharp_style_allow_blank_lines_between_consecutive_braces_experimental = false:error
csharp_style_allow_embedded_statements_on_same_line_experimental = false:error
csharp_style_prefer_readonly_struct_member = true:suggestion
csharp_style_conditional_delegate_call = true:suggestion
csharp_style_allow_blank_line_after_token_in_arrow_expression_clause_experimental = false:error
csharp_style_allow_blank_line_after_token_in_conditional_expression_experimental = false:error
csharp_style_prefer_extended_property_pattern = true:suggestion
csharp_style_prefer_not_pattern = true:suggestion
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
csharp_style_prefer_pattern_matching = true:silent
csharp_style_prefer_switch_expression = true:suggestion
csharp_style_var_elsewhere = true:error
csharp_style_var_when_type_is_apparent = true:error
csharp_style_var_for_built_in_types = true:error
csharp_space_around_binary_operators = before_and_after
csharp_style_prefer_primary_constructors = false:suggestion
# Analyzer rules
dotnet_analyzer_diagnostic.category-Style.severity = error
dotnet_diagnostic.IDE0003.severity = error #this
dotnet_diagnostic.IDE0007.severity = error #var
dotnet_diagnostic.IDE0008.severity = none #explicit type
dotnet_diagnostic.IDE0010.severity = none #switch statement cases
dotnet_diagnostic.IDE0019.severity = suggestion #null-check pattern matching
dotnet_diagnostic.IDE0022.severity = suggestion #block-body method
dotnet_diagnostic.IDE0028.severity = none #simplified collection initialization
dotnet_diagnostic.IDE0032.severity = suggestion #auto-property
dotnet_diagnostic.IDE0039.severity = suggestion #local method
dotnet_diagnostic.IDE0042.severity = suggestion #desconstruct tuple
dotnet_diagnostic.IDE0045.severity = suggestion #simplified if
dotnet_diagnostic.IDE0046.severity = none #simplified if return
dotnet_diagnostic.IDE0057.severity = suggestion #substring range operator
dotnet_diagnostic.IDE0058.severity = none #discard return value
dotnet_diagnostic.IDE0063.severity = suggestion #using statement
dotnet_diagnostic.IDE0066.severity = suggestion #switch expression instead of statement
dotnet_diagnostic.IDE0072.severity = suggestion #switch expression cases
dotnet_diagnostic.IDE0074.severity = suggestion #compound assignment
dotnet_diagnostic.IDE0078.severity = suggestion #pattern matching
dotnet_diagnostic.IDE0090.severity = suggestion #simplified new
dotnet_diagnostic.IDE0220.severity = suggestion #foreach explicit cast
dotnet_diagnostic.IDE0240.severity = silent #nullable directive
dotnet_diagnostic.IDE0270.severity = suggestion #simplified null-check
dotnet_diagnostic.IDE0290.severity = none #primary constructor
dotnet_diagnostic.IDE1006.severity = error #naming rules
dotnet_diagnostic.IDE2006.severity = none #blank line arrow expression
dotnet_diagnostic.CS1591.severity = none #documentation
dotnet_diagnostic.CA1024.severity = suggestion #property instead of method
dotnet_diagnostic.CA1051.severity = error #public variables
dotnet_diagnostic.CA1052.severity = error #static class
dotnet_diagnostic.CA1725.severity = error #base implementation names
dotnet_diagnostic.CA1849.severity = error #always async
dotnet_diagnostic.CA1851.severity = warning #multiple enumerations
dotnet_diagnostic.CA2000.severity = warning #always dispose