-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.editorconfig
479 lines (429 loc) · 14.7 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
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
# To learn more about .editorconfig see https://aka.ms/editorconfigdocs
# https://editorconfig.org
# https://www.idesign.net/Resources/Standards
root = true
# All files
[*]
indent_style = space
# Verify settings
[*.{received,verified}.{txt,xml,json,html}]
charset = "utf-8-bom"
end_of_line = lf
indent_size = unset
indent_style = unset
insert_final_newline = false
tab_width = unset
trim_trailing_whitespace = false
# XML project files
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}]
indent_size = 2
# XML config files
[*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}]
indent_size = 2
# Custom C#
[*.cs]
# License header
file_header_template=Copyright (c) Kaylumah, 2025. All rights reserved.\nSee LICENSE file in the project root for full license information.
# IDE0073: The file header does not match the required text
dotnet_diagnostic.IDE0073.severity = error
# C# files
[*.cs]
spelling_languages = en-us
spelling_checkable_types = strings,identifiers,comments
spelling_error_severity = warning
csharp_indent_labels = one_less_than_current
csharp_space_around_binary_operators = before_and_after
csharp_using_directive_placement = outside_namespace:error
csharp_prefer_simple_using_statement = false:error
csharp_prefer_braces = true:error
csharp_style_namespace_declarations = block_scoped:error
csharp_style_prefer_method_group_conversion = true:error
csharp_style_prefer_top_level_statements = false:error
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 = false: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:hint
csharp_style_unused_value_expression_statement_preference = discard_variable:hint
csharp_style_allow_blank_lines_between_consecutive_braces_experimental = false:error
csharp_style_allow_embedded_statements_on_same_line_experimental = false:error
csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = true:error
csharp_style_allow_blank_line_after_token_in_conditional_expression_experimental = true:silent
csharp_style_allow_blank_line_after_token_in_arrow_expression_clause_experimental = true:silent
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:error
csharp_style_var_when_type_is_apparent = false:error
csharp_style_prefer_switch_expression = true:suggestion
csharp_indent_case_contents_when_block = false
csharp_indent_case_contents = false
csharp_indent_switch_labels = true
csharp_style_var_for_built_in_types = false:error
csharp_style_var_elsewhere = false:error
csharp_style_prefer_extended_property_pattern = false:warning
[*.{cs,vb}]
#### Naming styles ####
# Naming rules
dotnet_naming_rule.interface_should_be_begins_with_i.severity = error
dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
dotnet_naming_rule.types_should_be_pascal_case.severity = error
dotnet_naming_rule.types_should_be_pascal_case.symbols = types
dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = error
dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
dotnet_naming_rule.const_field_members_should_be_pascal_case.severity = error
dotnet_naming_rule.const_field_members_should_be_pascal_case.symbols = const_field_members
dotnet_naming_rule.const_field_members_should_be_pascal_case.style = pascal_case
dotnet_naming_rule.local_var_and_method_args.severity = error
dotnet_naming_rule.local_var_and_method_args.symbols = local_var_and_method_args
dotnet_naming_rule.local_var_and_method_args.style = camel_case
dotnet_naming_rule.private_member_variables.severity = error
dotnet_naming_rule.private_member_variables.symbols = private_member_variables
dotnet_naming_rule.private_member_variables.style = pascal_case_with_underscore_prefix
# Symbol specifications
dotnet_naming_symbols.interface.applicable_kinds = interface
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.interface.required_modifiers =
dotnet_naming_symbols.const_field_members.applicable_kinds = field
dotnet_naming_symbols.const_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.const_field_members.required_modifiers = const
dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.types.required_modifiers =
dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.non_field_members.required_modifiers =
dotnet_naming_symbols.private_member_variables.applicable_kinds = field
dotnet_naming_symbols.private_member_variables.applicable_accessibilities = private, private_protected
dotnet_naming_symbols.private_member_variables.required_modifiers =
dotnet_naming_symbols.local_var_and_method_args.applicable_kinds = parameter, local
# Naming styles
dotnet_naming_style.begins_with_i.required_prefix = I
dotnet_naming_style.begins_with_i.required_suffix =
dotnet_naming_style.begins_with_i.word_separator =
dotnet_naming_style.begins_with_i.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.pascal_case_with_underscore_prefix.required_prefix = _
dotnet_naming_style.pascal_case_with_underscore_prefix.required_suffix =
dotnet_naming_style.pascal_case_with_underscore_prefix.word_separator =
dotnet_naming_style.pascal_case_with_underscore_prefix.capitalization = pascal_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_style_operator_placement_when_wrapping = beginning_of_line
tab_width = 4
indent_size = 4
end_of_line = crlf
indent_style = space
max_line_length = 150
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 = false:error
dotnet_style_collection_initializer = false:error
dotnet_style_prefer_simplified_boolean_expressions = true:error
dotnet_style_prefer_conditional_expression_over_assignment = false:error
dotnet_style_prefer_conditional_expression_over_return = false:error
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:error
dotnet_style_namespace_match_folder = true:suggestion
dotnet_style_allow_multiple_blank_lines_experimental = false:error
dotnet_style_allow_statement_immediately_after_block_experimental = false:error
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
dotnet_style_require_accessibility_modifiers = omit_if_default:error
dotnet_style_predefined_type_for_locals_parameters_members = true:silent
dotnet_code_quality_unused_parameters = all:error
dotnet_diagnostic.CS1998.severity = error
dotnet_diagnostic.CA1028.severity = none
dotnet_diagnostic.CA1031.severity = warning
dotnet_diagnostic.CA1040.severity = none
dotnet_diagnostic.CA1051.severity = error
dotnet_diagnostic.CA1062.severity = none
dotnet_diagnostic.CA1707.severity = none
dotnet_diagnostic.CA1710.severity = error
dotnet_diagnostic.CA1715.severity = none
dotnet_diagnostic.CA1716.severity = none
dotnet_diagnostic.CA1724.severity = none
dotnet_diagnostic.CA1810.severity = none
dotnet_diagnostic.CA1812.severity = none
dotnet_diagnostic.CA1815.severity = none
dotnet_diagnostic.CA1822.severity = none
dotnet_diagnostic.CA2007.severity = none
dotnet_diagnostic.CA2016.severity = error
dotnet_diagnostic.CA2201.severity = error
dotnet_diagnostic.CA2207.severity = error
dotnet_diagnostic.CA2213.severity = error
dotnet_diagnostic.CA5394.severity = none
dotnet_diagnostic.IDE0001.severity = error
dotnet_diagnostic.IDE0002.severity = error
dotnet_diagnostic.IDE0003.severity = error
dotnet_diagnostic.IDE0011.severity = error
dotnet_diagnostic.IDE0038.severity = none
dotnet_diagnostic.IDE0039.severity = none
dotnet_diagnostic.IDE0065.severity = error
dotnet_diagnostic.IDE0090.severity = silent
dotnet_diagnostic.IDE0270.severity = none
# VSTHRD*** Only apply when Microsoft.VisualStudio.Threading.Analyzers is installed.
dotnet_diagnostic.VSTHRD002.severity = error
dotnet_diagnostic.VSTHRD100.severity = error
dotnet_diagnostic.VSTHRD200.severity = none #error not active pending "using Task as return type in DD discussion"
# IDesign Coding Standard 3.0.1 coverage
# 1.1.1.1 Yes
# 1.1.1.2 Yes
# 1.1.1.3 Yes
# 1.1.1.4 Yes
# 1.1.1.5 Yes, only with public access modifier.
# 1.1.1.6 Yes, only with public access modifier.
# 1.1.1.7 No
# 1.1.1.8 No
# 1.1.1.9 No
# 1.1.1.10 No
# 1.1.1.11 No
# 1.1.1.12 No, only suppress suggestion to prefix with T. (CA1715, https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1715)
# 1.1.1.13 No
# 1.2.1 No
# 1.2.2 Yes
# 1.2.3 Yes
# 1.2.4 No
# 1.2.5 No
# 1.3.1 No
# 1.3.2 No
# 1.3.3 No
# 1.3.4 No
# 1.3.5 Yes, 4 spaces applied to all .cs and .vb files.
# 1.3.6 No
# 1.3.7 No
# 1.3.8 Yes
# 1.3.9 Yes
# 1.3.10 Yes
# 1.3.11 No, the IDE will not mess with the layout if spaces are allowed like { get; set; }.
# 1.3.12 No
# 1.3.13 No
# 1.3.14 No
# 1.3.15 No, cannot enforce brances. Only formatted correctly when using braces.
# 1.4.1 Yes, IDE provides confusing message but highlights the error correctly and will only compile if fixed.
# 1.4.2 Yes, IDE provides confusing message but highlights the error correctly and will only compile if fixed.
# 1.4.3 No
# 1.5.1 No
# 1.5.2 No
# 1.5.3 No - Can be done with Roslynator.
# 1.5.4 No - Can be done with Roslynator.
# 2.1.1 No
# 2.1.2 No
# 2.1.3 No
# 2.1.4 No
# 2.1.5 No
# 2.1.6 No
# 2.1.7 No
# 2.1.8 No, not yet, currently in preview but added to this .editorconfig. Set to en-us.
# 2.1.9 No
# 2.1.10 No
# 2.1.11 No
# 2.1.12 No
# 2.1.13 No
# 2.1.14 No
# 2.2.1 Yes
# 2.2.2 No
# 2.2.3 No
# 2.2.4 No
# 2.2.5 No
# 2.2.6 No
# 2.2.7 No
# 2.2.8 No
# 2.3.1 No
# 2.3.2 No
# 2.3.3 No
# 2.3.4 No
# 2.3.5 No
# 2.3.6 No
# 2.3.7 No
# 2.3.8 No
# 2.3.9 No
# 2.3.10 No
# 2.3.11 No
# 2.3.12 No
# 2.3.13 No
# 2.4.1 No
# 2.4.2 No
# 2.4.3 No
# 2.4.4 No
# 2.4.5 No
# 2.4.6 No
# 2.5.1 No
# 2.5.2 Yes
# 2.5.3 Yes
# 2.5.4 No
# 2.5.5 No
# 2.5.6 No
# 2.5.7 No
# 2.6.1 No, turned off CA1810 to not discourage use of static ctor.
# 2.6.2 No
# 2.6.3 No
# 2.6.4 No
# 2.6.5 No
# 2.6.6 No
# 2.6.7 No
# 2.6.8 No
# 2.6.9 No
# 2.7.1 No
# 2.7.2 No
# 2.7.3 No, turn off on project level.
# 2.7.4 No
# 2.7.5 No
# 2.7.6 No
# 2.7.7 No
# 2.7.8 No
# 2.7.9 No
# 2.7.10 No
# 2.7.11 No
# 2.7.12 No
# 2.7.13 No
# 2.7.14 No
# 2.7.15 No
# 2.7.16 Yes
# 2.7.17 No
# 2.7.18 No
# 2.7.19 No
# 2.7.20 No
# 2.7.21 No
# 2.7.22 No
# 2.7.23 No
# 2.7.24 No
# 2.7.25 No
# 2.7.26 No
# 2.7.27 No, handle using Banned API analyzer.
# 2.7.28 No, handle using Banned API analyzer.
# 2.7.29 No
# 2.7.30 No
# 2.7.31 No
# 2.7.32 No
# 2.7.33 No
# 2.7.34 No
# 2.7.35 No
# 2.7.36 No
# 2.7.37 Yes
# 2.7.38 No
# 2.7.39 Yes
# 2.7.40 No
# 2.7.41 No
# 2.7.42 No
# 3.1 No
# 3.2 No
# 3.3 No
# 3.4 No
# 3.5 No
# 3.6 No
# 3.7 No
# 3.8 No
# 3.9 No
# 3.10 No
# 3.11 No
# 3.12 No
# 3.13 No
# 3.14 No
# 3.15 No
# 3.16 No
# 3.17 No
# 3.18 No
# 3.19 No
# 3.20 No
# 3.21 No
# 3.22 No
# 3.23 No
# 3.24 No
# 3.25 No
# 3.26 No
# 3.27 No
# 3.28 No
# 3.29 No
# 3.30 No
# 3.31 No
# This section assumes that the following Analyzer is installed. https://www.nuget.org/packages/microsoft.visualstudio.threading.analyzers
# 4.1 Yes, through Microsoft.VisualStudio.Threading.Analyzers.
# 4.2 No
# 4.3 No
# 4.4 No
# 4.5 Yes, NOTE: enforcement awaits guidance on DD and use of Tasks as return type for service interface methods.
# 4.6 Yes, through Microsoft.VisualStudio.Threading.Analyzers.
# 4.7 Yes
# 4.8 Yes, through Microsoft.VisualStudio.Threading.Analyzers.
# 4.9 No
# 4.10 No
# 4.11 No
# 4.12 No
# 4.13 No
# 4.14 No
# 4.15 No
# 4.16 No
# 4.17 No
# 4.18 No
# 4.19 No
# 4.20 No
# 4.21 No
# 4.22 No
# 4.23 No
# 4.24 No
# 4.25 No
# 4.26 No
# 4.27 No
# 4.28 No
# 4.29 No
# 4.30 Yes
# 4.31 No
# 4.32 No
# 4.33 No
# 4.34 No
# 5.1 No
# 5.2 No
# 5.3 No
# 5.4 No
# 5.5 No
# 5.6 No
# 5.7 No
# 5.8 No
# 5.9 No
# 5.10 No
# 5.11 No
# 5.12 No
# 5.13 No
# 5.14 No
# 5.15 No
# 5.16 No
# 5.17 No
# 5.18 No
# 5.19 No
# 5.20 No
# 6.1 Yes
# 6.2 No
# 6.3 No
# 6.4 No
# 6.5 No
# 6.6 No
# 6.7 No
# 6.8 No