-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.editorconfig
4278 lines (3350 loc) · 196 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
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Version: 9.0.0 (Using https://semver.org/)
# Updated: 2024-11-14
# See http://EditorConfig.org for more information about .editorconfig files.
##########################################
# Common Settings
##########################################
# This file is the top-most EditorConfig file
root = true
# All Files
[*]
charset = utf-8
indent_style = space
indent_size = 4
tab_width = 4
insert_final_newline = true
trim_trailing_whitespace = true
##########################################
# File Extension Settings
##########################################
# Visual Studio Solution Files
[*.sln]
indent_style = tab
# Visual Studio xml Solution Files
[*.slnx]
indent_size = 2
# Visual Studio XML Project Files
[*.{csproj,vbproj,vcxproj.filters,proj,projitems,shproj}]
indent_size = 2
# XML Configuration Files
[*.{xml,config,props,targets,nuspec,resx,ruleset,vsixmanifest,vsct}]
indent_size = 2
# JSON Files
[*.{json,json5,webmanifest}]
indent_size = 2
# YAML Files
[*.{yml,yaml}]
indent_size = 2
# Markdown Files
[*.{md,mdx}]
trim_trailing_whitespace = false
# Web Files
[*.{htm,html,js,jsm,ts,tsx,cjs,cts,ctsx,mjs,mts,mtsx,css,sass,scss,less,pcss,svg,vue}]
indent_size = 2
# Batch Files
[*.{cmd,bat}]
end_of_line = crlf
# Bash Files
[*.sh]
end_of_line = lf
# Makefiles
[Makefile]
indent_style = tab
# WIX files
[*.{wxi,wxl,wxs,wixobj}]
indent_size = 2
##########################################
# Visual Studio Spell Checker
# https://learn.microsoft.com/visualstudio/ide/text-spell-checker
##########################################
[*]
# Note that you must have the relevant Windows language pack installed on your machine for this to work.
spelling_languages = en-us,en-gb
spelling_error_severity = information
spelling_checkable_types = strings,identifiers,comments
spelling_use_default_exclusion_dictionary = true
##########################################
# Default .NET Code Style Severities
# https://learn.microsoft.com/dotnet/fundamentals/code-analysis/configuration-options#scope
##########################################
[*.{cs,csx,cake,vb,vbx}]
# Default Severity for all .NET Code Style rules below
dotnet_analyzer_diagnostic.severity = warning
##########################################
# using directive preferences
# .NET style rules (C# and Visual Basic)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/language-rules#using-directive-preferences
##########################################
[*.{cs,csx,cake,vb,vbx}]
# Require file header (IDE0073)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0073
# dotnet_diagnostic.IDE0073.severity = none
# file_header_template = <copyright file="{fileName}" company="PROJECT-AUTHOR">\n© PROJECT-AUTHOR\n</copyright>
# If you use StyleCop, you'll need to disable SA1636: File header copyright text should match.
# Remove unnecessary using directives (IDE0005)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0005
# dotnet_diagnostic.IDE0005.severity = default
# 'using' directive placement (IDE0065)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0065
# dotnet_diagnostic.IDE0065.severity = default
csharp_using_directive_placement = outside_namespace
##########################################
# Code-block preferences
# .NET style rules (C# and Visual Basic)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/language-rules#code-block-preferences
##########################################
[*.{cs,csx,cake,vb,vbx}]
# Add braces (IDE0011)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0011
# dotnet_diagnostic.IDE0011.severity = default
csharp_prefer_braces = true
# Use simple 'using' statement (IDE0063)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0063
dotnet_diagnostic.IDE0063.severity = error
csharp_style_prefer_simple_using_statement = true
# Namespace declaration preferences (IDE0160 and IDE0161)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0160-ide0161
# dotnet_diagnostic.IDE0160.severity = default
# dotnet_diagnostic.IDE0161.severity = default
csharp_style_namespace_declarations = file_scoped
# Remove unnecessary lambda expression (IDE0200)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0200
# dotnet_diagnostic.IDE0200.severity = default
csharp_style_prefer_method_group_conversion = true
# Convert to top-level statements (IDE0210)
# Convert to 'Program.Main' style program (IDE0211)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0210
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0211
# dotnet_diagnostic.IDE0210.severity = default
# dotnet_diagnostic.IDE0211.severity = default
csharp_style_prefer_top_level_statements = true
# Use primary constructor (IDE0290)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0290
# dotnet_diagnostic.IDE0290.severity = default
csharp_style_prefer_primary_constructors = true
# Prefer 'System.Threading.Lock' (IDE0330)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0330
# dotnet_diagnostic.IDE0330.severity = default
csharp_prefer_system_threading_lock = true
##########################################
# Expression-bodied members
# .NET style rules (C# and Visual Basic)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/language-rules#expression-bodied-members
##########################################
[*.{cs,csx,cake,vb,vbx}]
# Use expression body for constructors (IDE0021)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0021
# dotnet_diagnostic.IDE0021.severity = default
csharp_style_expression_bodied_constructors = true
# Use expression body for methods (IDE0022)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0022
# dotnet_diagnostic.IDE0022.severity = default
csharp_style_expression_bodied_methods = true
# Use expression body for operators (IDE0023 and IDE0024)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0023-ide0024
# dotnet_diagnostic.IDE0023.severity = default
# dotnet_diagnostic.IDE0024.severity = default
csharp_style_expression_bodied_operators = true
# Use expression body for properties (IDE0025)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0025
# dotnet_diagnostic.IDE0025.severity = default
csharp_style_expression_bodied_properties = true
# Use expression body for indexers (IDE0026)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0026
# dotnet_diagnostic.IDE0026.severity = default
csharp_style_expression_bodied_indexers = true
# Use expression body for accessors (IDE0027)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0027
# dotnet_diagnostic.IDE0027.severity = default
csharp_style_expression_bodied_accessors = true
# Use expression body for lambdas (IDE0053)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0053
# dotnet_diagnostic.IDE0053.severity = default
csharp_style_expression_bodied_lambdas = true
# Use expression body for local functions (IDE0061)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0061
# dotnet_diagnostic.IDE0061.severity = default
csharp_style_expression_bodied_local_functions = true
##########################################
# Expression-level preferences
# .NET style rules (C# and Visual Basic)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/language-rules#expression-level-preferences
##########################################
[*.{cs,csx,cake,vb,vbx}]
# Simplify name (IDE0001)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0001
# dotnet_diagnostic.IDE0001.severity = default
# Simplify member access (IDE0002)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0002
# dotnet_diagnostic.IDE0002.severity = default
# Remove unnecessary cast (IDE0004)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0004
# dotnet_diagnostic.IDE0004.severity = default
# Add missing cases to switch statement (IDE0010)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0010
# dotnet_diagnostic.IDE0010.severity = default
# Use object initializers (IDE0017)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0017
# dotnet_diagnostic.IDE0017.severity = default
dotnet_style_object_initializer = true
# Use collection initializers or expressions (IDE0028)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0028
# dotnet_diagnostic.IDE0028.severity = default
dotnet_style_collection_initializer = true
# Null check can be simplified (IDE0029, IDE0030, and IDE0270)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0029-ide0030-ide0270
# dotnet_diagnostic.IDE0029.severity = default
# dotnet_diagnostic.IDE0030.severity = default
# dotnet_diagnostic.IDE0270.severity = default
dotnet_style_coalesce_expression = true
# Use null propagation (IDE0031)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0031
# dotnet_diagnostic.IDE0031.severity = default
dotnet_style_null_propagation = true
# Use auto-implemented property (IDE0032)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0032
# dotnet_diagnostic.IDE0032.severity = default
dotnet_style_prefer_auto_properties = true
# Use explicitly provided tuple name (IDE0033)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0033
# dotnet_diagnostic.IDE0033.severity = default
dotnet_style_explicit_tuple_names = true
# Remove unreachable code (IDE0035)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0035
# dotnet_diagnostic.IDE0035.severity = default
# Use inferred member names (IDE0037)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0037
# dotnet_diagnostic.IDE0037.severity = default
dotnet_style_prefer_inferred_tuple_names = true
dotnet_style_prefer_inferred_anonymous_type_member_names = true
# Use 'is null' check (IDE0041)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0041
# dotnet_diagnostic.IDE0041.severity = default
dotnet_style_prefer_is_null_check_over_reference_equality_method = true
# Use conditional expression for assignment (IDE0045)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0045
# dotnet_diagnostic.IDE0045.severity = default
dotnet_style_prefer_conditional_expression_over_assignment = true
# Use conditional expression for return (IDE0046)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0046
# dotnet_diagnostic.IDE0045.severity = default
dotnet_style_prefer_conditional_expression_over_return = false
# Convert anonymous type to tuple (IDE0050)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0050
# dotnet_diagnostic.IDE0050.severity = default
# Remove unused private member (IDE0051)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0051
# dotnet_diagnostic.IDE0051.severity = default
# Remove unread private member (IDE0052)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0052
# dotnet_diagnostic.IDE0052.severity = default
# Use compound assignment (IDE0054 and IDE0074)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0054-ide0074
# dotnet_diagnostic.IDE0054.severity = default
# dotnet_diagnostic.IDE0074.severity = default
dotnet_style_prefer_compound_assignment = true
# Remove unnecessary expression value (IDE0058)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0058
# dotnet_diagnostic.IDE0058.severity = default
csharp_style_unused_value_expression_statement_preference = discard_variable
visual_basic_style_unused_value_expression_statement_preference = unused_local_variable
# Remove unnecessary value assignment (IDE0059)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0059
# dotnet_diagnostic.IDE0059.severity = default
csharp_style_unused_value_assignment_preference = discard_variable
visual_basic_style_unused_value_assignment_preference = unused_local_variable
# Use 'System.HashCode.Combine' (IDE0070)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0070
# dotnet_diagnostic.IDE0070.severity = default
# Simplify interpolation (IDE0071)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0071
# dotnet_diagnostic.IDE0071.severity = default
dotnet_style_prefer_simplified_interpolation = true
# Simplify conditional expression (IDE0075)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0075
# dotnet_diagnostic.IDE0075.severity = default
dotnet_style_prefer_simplified_boolean_expressions = true
# Convert typeof to nameof (IDE0082)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0082
# dotnet_diagnostic.IDE0082.severity = default
# Remove unnecessary equality operator (IDE0100)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0100
# dotnet_diagnostic.IDE0100.severity = default
# Simplify LINQ expression (IDE0120)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0120
# dotnet_diagnostic.IDE0120.severity = default
# Namespace does not match folder structure (IDE0130)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0130
# dotnet_diagnostic.IDE0130.severity = default
dotnet_style_namespace_match_folder = true
##########################################
# Expression-level preferences
# C# style rules
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/language-rules#expression-level-preferences
##########################################
[*.{cs,csx,cake}]
# Use throw expression (IDE0016)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0016
# dotnet_diagnostic.IDE0016.severity = default
csharp_style_throw_expression = true
# Inline variable declaration (IDE0018)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0018
# dotnet_diagnostic.IDE0018.severity = default
csharp_style_inlined_variable_declaration = true
# Simplify 'default' expression (IDE0034)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0034
# dotnet_diagnostic.IDE0034.severity = default
csharp_prefer_simple_default_expression = true
# Use local function instead of lambda (IDE0039)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0039
# dotnet_diagnostic.IDE0039.severity = default
csharp_style_prefer_local_over_anonymous_function = true
# Deconstruct variable declaration (IDE0042)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0042
# dotnet_diagnostic.IDE0042.severity = default
csharp_style_deconstructed_variable_declaration = true
# Use index operator (IDE0056)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0056
# dotnet_diagnostic.IDE0056.severity = default
csharp_style_prefer_index_operator = true
# Use range operator (IDE0057)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0057
# dotnet_diagnostic.IDE0057.severity = default
csharp_style_prefer_range_operator = true
# Add missing cases to switch expression (IDE0072)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0072
# dotnet_diagnostic.IDE0072.severity = default
# Remove unnecessary suppression operator (IDE0080)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0080
# dotnet_diagnostic.IDE0080.severity = default
# Simplify new expression (IDE0090)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0090
# dotnet_diagnostic.IDE0090.severity = default
csharp_style_implicit_object_creation_when_type_is_apparent = true
# Remove unnecessary discard (IDE0110)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0110
# dotnet_diagnostic.IDE0110.severity = default
# Prefer 'null' check over type check (IDE0150)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0150
# dotnet_diagnostic.IDE0150.severity = default
csharp_style_prefer_null_check_over_type_check = true
# Use tuple to swap values (IDE0180)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0180
# dotnet_diagnostic.IDE0180.severity = default
csharp_style_prefer_tuple_swap = true
# Add explicit cast in foreach loop (IDE0220)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0220
# dotnet_diagnostic.IDE0220.severity = default
dotnet_style_prefer_foreach_explicit_cast_in_source = when_strongly_typed
# Use UTF-8 string literal (IDE0230)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0230
# dotnet_diagnostic.IDE0230.severity = default
csharp_style_prefer_utf8_string_literals = true
# Nullable directive is redundant (IDE0240)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0240
# dotnet_diagnostic.IDE0240.severity = default
# Nullable directive is unnecessary (IDE0241)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0241
# dotnet_diagnostic.IDE0241.severity = default
# Use collection expression for array (IDE0300)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0300
# dotnet_diagnostic.IDE0300.severity = default
# Use collection expression for empty (IDE0301)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0301
# dotnet_diagnostic.IDE0301.severity = default
# Use collection expression for stackalloc (IDE0302)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0302
# dotnet_diagnostic.IDE0302.severity = default
# Use collection expression for Create() (IDE0303)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0303
# dotnet_diagnostic.IDE0303.severity = default
# Use collection expression for builder (IDE0304)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0304
# dotnet_diagnostic.IDE0304.severity = default
# Use collection expression for fluent (IDE0305)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0305
# dotnet_diagnostic.IDE0305.severity = default
dotnet_style_prefer_collection_expression = when_types_exactly_match
##########################################
# Expression-level preferences
# C# style rules
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/language-rules#expression-level-preferences
##########################################
[*.{vb,vbx}]
# Remove ByVal (IDE0081)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0081
# dotnet_diagnostic.IDE0081.severity = default
# Use pattern matching (IsNot operator) (IDE0084)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0084
# dotnet_diagnostic.IDE0084.severity = default
visual_basic_style_prefer_isnot_expression = true
# Simplify object creation (IDE0140)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0140
# dotnet_diagnostic.IDE0140.severity = default
visual_basic_style_prefer_simplified_object_creation = true
##########################################
# Field preferences
# .NET style rules (C# and Visual Basic)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/language-rules#field-preferences
##########################################
[*.{cs,csx,cake,vb,vbx}]
# Add readonly modifier (IDE0044)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0044
# dotnet_diagnostic.IDE0044.severity = default
dotnet_style_readonly_field = true
##########################################
# Language keyword vs. framework types preferences
# .NET style rules (C# and Visual Basic)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/language-rules#language-keyword-vs-framework-types-preferences
##########################################
[*.{cs,csx,cake,vb,vbx}]
# Use language keywords instead of framework type names for type references (IDE0049)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0049
# dotnet_diagnostic.IDE0049.severity = default
dotnet_style_predefined_type_for_locals_parameters_members = true
dotnet_style_predefined_type_for_member_access = true
##########################################
# Modifier preferences
# .NET style rules (C# and Visual Basic)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/language-rules#modifier-preferences
##########################################
[*.{cs,csx,cake,vb,vbx}]
# Order modifiers (IDE0036)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0036
# dotnet_diagnostic.IDE0036.severity = default
csharp_preferred_modifier_order = public, private, protected, internal, static, extern, new, virtual, abstract, sealed, override, readonly, unsafe, required, volatile, async
visual_basic_preferred_modifier_order = Partial, Default, Private, Protected, Public, Friend, NotOverridable, Overridable, MustOverride, Overloads, Overrides, MustInherit, NotInheritable, Static, Shared, Shadows, ReadOnly, WriteOnly, Dim, Const, WithEvents, Widening, Narrowing, Custom, Async
# Add accessibility modifiers (IDE0040)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0040
# dotnet_diagnostic.IDE0040.severity = default
dotnet_style_require_accessibility_modifiers = always
##########################################
# Modifier preferences
# C# style rules
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/language-rules#modifier-preferences
##########################################
[*.{cs,csx,cake}]
# Make local function static (IDE0062)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0062
# dotnet_diagnostic.IDE0062.severity = default
csharp_prefer_static_local_function = true
# Make struct fields writable (IDE0064)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0064
# dotnet_diagnostic.IDE0064.severity = default
# Struct can be made 'readonly' (IDE0250)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0250
# dotnet_diagnostic.IDE0250.severity = default
csharp_style_prefer_readonly_struct = true
# Member can be made 'readonly' (IDE0251)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0251
# dotnet_diagnostic.IDE0251.severity = default
csharp_style_prefer_readonly_struct_member = true
# Make anonymous function static (IDE0320)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0320
# dotnet_diagnostic.IDE0320.severity = default
csharp_prefer_static_anonymous_function = true
##########################################
# New-line preferences
# .NET style rules (C# and Visual Basic)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/language-rules#new-line-preferences
##########################################
[*.{cs,csx,cake,vb,vbx}]
# Allow multiple blank lines (IDE2000)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide2000
dotnet_diagnostic.IDE2000.severity = none
dotnet_style_allow_multiple_blank_lines_experimental = false
# Allow embedded statements on same line (IDE2001)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide2001
dotnet_diagnostic.IDE2001.severity = none
csharp_style_allow_embedded_statements_on_same_line_experimental = false
# Allow blank lines between consecutive braces (IDE2002)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide2002
dotnet_diagnostic.IDE2002.severity = none
csharp_style_allow_blank_lines_between_consecutive_braces_experimental = false
# Allow statement immediately after block (IDE2003)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide2003
dotnet_diagnostic.IDE2003.severity = none
dotnet_style_allow_statement_immediately_after_block_experimental = false
# Allow blank line after colon in constructor initializer (IDE2004)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide2004
dotnet_diagnostic.IDE2004.severity = none
csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = false
# Allow blank line after token in conditional expression (IDE2005)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide2005
dotnet_diagnostic.IDE2005.severity = none
# Allow blank line after token in arrow expression (IDE2006)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide2006
dotnet_diagnostic.IDE2006.severity = none
##########################################
# Null-checking preferences
# C# style rules
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/language-rules#null-checking-preferences
##########################################
[*.{cs,csx,cake}]
# Use conditional delegate call (IDE1005)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide1005
# dotnet_diagnostic.IDE1005.severity = default
csharp_style_conditional_delegate_call = true
##########################################
# Parameter preferences
# .NET style rules (C# and Visual Basic)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/language-rules#parameter-preferences
##########################################
[*.{cs,csx,cake,vb,vbx}]
# Remove unused parameter (IDE0060)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0060
# dotnet_diagnostic.IDE0060.severity = default
dotnet_code_quality_unused_parameters = all
# Use 'nameof' (IDE0280)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0280
# dotnet_diagnostic.IDE0280.severity = default
##########################################
# Parentheses preferences
# .NET style rules (C# and Visual Basic)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/language-rules#parentheses-preferences
##########################################
[*.{cs,csx,cake,vb,vbx}]
# Parentheses preferences (IDE0047 and IDE0048)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0047-ide0048
# dotnet_diagnostic.IDE0047.severity = default
# dotnet_diagnostic.IDE0048.severity = default
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 = never_if_unnecessary
##########################################
# Pattern-matching preferences
# .NET style rules (C# and Visual Basic)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/language-rules#pattern-matching-preferences
##########################################
[*.{cs,csx,cake,vb,vbx}]
# Use pattern matching to avoid 'as' followed by a 'null' check (IDE0019)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0019
# dotnet_diagnostic.IDE0019.severity = default
csharp_style_pattern_matching_over_as_with_null_check = true
# Use pattern matching to avoid 'is' check followed by a cast (IDE0020 and IDE0038)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0020-ide0038
# dotnet_diagnostic.IDE0020.severity = default
# dotnet_diagnostic.IDE0038.severity = default
csharp_style_pattern_matching_over_is_with_cast_check = true
# Use switch expression (IDE0066)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0066
# dotnet_diagnostic.IDE0066.severity = default
csharp_style_prefer_switch_expression = true
# Use pattern matching (IDE0078 and IDE0260)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0078-ide0260
# dotnet_diagnostic.IDE0078.severity = default
# dotnet_diagnostic.IDE0260.severity = default
csharp_style_prefer_pattern_matching = true
# Use pattern matching (not operator) (IDE0083)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0083
# dotnet_diagnostic.IDE0083.severity = default
csharp_style_prefer_not_pattern = true
# Simplify property pattern (IDE0170)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0170
# dotnet_diagnostic.IDE0170.severity = default
csharp_style_prefer_extended_property_pattern = true
##########################################
# Suppression preferences
# .NET style rules (C# and Visual Basic)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/language-rules#suppression-preferences
##########################################
[*.{cs,csx,cake,vb,vbx}]
# Remove unnecessary suppression (IDE0079)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0079
# dotnet_diagnostic.IDE0079.severity = default
dotnet_remove_unnecessary_suppression_exclusions = none
##########################################
# This. and me. preferences
# .NET style rules (C# and Visual Basic)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/language-rules#this-and-me-preferences
##########################################
[*.{cs,csx,cake,vb,vbx}]
# this and Me preferences (IDE0003 and IDE0009)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0003-ide0009
# dotnet_diagnostic.IDE0003.severity = default
# dotnet_diagnostic.IDE0009.severity = default
dotnet_style_qualification_for_field = false
dotnet_style_qualification_for_property = false
dotnet_style_qualification_for_method = false
dotnet_style_qualification_for_event = false
##########################################
# var preferences
# C# style rules
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/language-rules#this-and-me-preferences
##########################################
[*.{cs,csx,cake,vb,vbx}]
# 'var' preferences (IDE0007 and IDE0008)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0007-ide0008
# dotnet_diagnostic.IDE0007.severity = default
# dotnet_diagnostic.IDE0008.severity = default
csharp_style_var_for_built_in_types = true
csharp_style_var_when_type_is_apparent = true
csharp_style_var_elsewhere = true
##########################################
# Formatting rules
# .NET formatting options
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/dotnet-formatting-options
##########################################
[*.{cs,csx,cake,vb,vbx}]
# Formatting rule (IDE0055)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0055
# dotnet_diagnostic.IDE0055.severity = default
# Using directive options
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/dotnet-formatting-options#using-directive-options
dotnet_sort_system_directives_first = true
dotnet_separate_import_directive_groups = false
##########################################
# Formatting rules
# C# Formatting options
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/csharp-formatting-options
##########################################
[*.{cs,csx,cake}]
# New-line options
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/csharp-formatting-options#new-line-options
csharp_new_line_before_open_brace = all
csharp_new_line_before_else = true
csharp_new_line_before_catch = true
csharp_new_line_before_finally = true
csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_members_in_anonymous_types = true
csharp_new_line_between_query_expression_clauses = true
# Indentation options
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/csharp-formatting-options#indentation-options
csharp_indent_case_contents = true
csharp_indent_switch_labels = true
csharp_indent_labels = no_change
csharp_indent_block_contents = true
csharp_indent_braces = false
csharp_indent_case_contents_when_block = false
# Spacing options
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/csharp-formatting-options#spacing-options
csharp_space_after_cast = false
csharp_space_after_keywords_in_control_flow_statements = true
csharp_space_between_parentheses = false
csharp_space_before_colon_in_inheritance_clause = true
csharp_space_after_colon_in_inheritance_clause = true
csharp_space_around_binary_operators = before_and_after
csharp_space_between_method_declaration_parameter_list_parentheses = false
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
csharp_space_between_method_declaration_name_and_open_parenthesis = false
csharp_space_between_method_call_parameter_list_parentheses = false
csharp_space_between_method_call_empty_parameter_list_parentheses = false
csharp_space_between_method_call_name_and_opening_parenthesis = false
csharp_space_after_comma = true
csharp_space_before_comma = false
csharp_space_after_dot = false
csharp_space_before_dot = false
csharp_space_after_semicolon_in_for_statement = true
csharp_space_before_semicolon_in_for_statement = false
csharp_space_around_declaration_statements = false
csharp_space_before_open_square_brackets = false
csharp_space_between_empty_square_brackets = false
csharp_space_between_square_brackets = false
# Wrap options
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/csharp-formatting-options#wrap-options
csharp_preserve_single_line_statements = false
csharp_preserve_single_line_blocks = false
##########################################
# Naming rules
# .NET naming rules
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/naming-rules
##########################################
[*.{cs,csx,cake,vb,vbx}]
# Naming rule violation (IDE1006)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/naming-rules#rule-id-ide1006-naming-rule-violation
# dotnet_diagnostic.IDE1006.severity = default
##########################################
# Styles
##########################################
# camel_case_style - Define the camelCase style
dotnet_naming_style.camel_case_style.capitalization = camel_case
# pascal_case_style - Define the PascalCase style
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
# first_upper_style - The first character must start with an upper-case character
dotnet_naming_style.first_upper_style.capitalization = first_word_upper
# prefix_interface_with_i_style - Interfaces must be PascalCase and the first character of an interface must be an 'I'
dotnet_naming_style.prefix_interface_with_i_style.capitalization = pascal_case
dotnet_naming_style.prefix_interface_with_i_style.required_prefix = I
# prefix_type_parameters_with_t_style - Generic Type Parameters must be PascalCase and the first character must be a 'T'
dotnet_naming_style.prefix_type_parameters_with_t_style.capitalization = pascal_case
dotnet_naming_style.prefix_type_parameters_with_t_style.required_prefix = T
# async methods should end with 'Async'
dotnet_naming_style.async_suffix_style.required_suffix = Async
dotnet_naming_style.async_suffix_style.word_separator =
dotnet_naming_style.async_suffix_style.capitalization = pascal_case
# disallowed_style - Anything that has this style applied is marked as disallowed
dotnet_naming_style.disallowed_style.capitalization = pascal_case
dotnet_naming_style.disallowed_style.required_prefix = ____RULE_VIOLATION____
dotnet_naming_style.disallowed_style.required_suffix = ____RULE_VIOLATION____
# internal_error_style - This style should never occur... if it does, it indicates a bug in file or in the parser using the file
dotnet_naming_style.internal_error_style.capitalization = pascal_case
dotnet_naming_style.internal_error_style.required_prefix = ____INTERNAL_ERROR____
dotnet_naming_style.internal_error_style.required_suffix = ____INTERNAL_ERROR____
##########################################
# .NET Design Guideline Field Naming Rules
# Naming rules for fields follow the .NET Framework design guidelines
# https://learn.microsoft.com/dotnet/standard/design-guidelines/
##########################################
# All public/protected/protected_internal constant fields must be PascalCase
# https://learn.microsoft.com/dotnet/standard/design-guidelines/field
dotnet_naming_symbols.public_protected_constant_fields_group.applicable_accessibilities = public, protected, protected_internal
dotnet_naming_symbols.public_protected_constant_fields_group.required_modifiers = const
dotnet_naming_symbols.public_protected_constant_fields_group.applicable_kinds = field
dotnet_naming_rule.public_protected_constant_fields_must_be_pascal_case_rule.symbols = public_protected_constant_fields_group
dotnet_naming_rule.public_protected_constant_fields_must_be_pascal_case_rule.style = pascal_case_style
dotnet_naming_rule.public_protected_constant_fields_must_be_pascal_case_rule.severity = warning
# All public/protected/protected_internal static readonly fields must be PascalCase
# https://learn.microsoft.com/dotnet/standard/design-guidelines/field
dotnet_naming_symbols.public_protected_static_readonly_fields_group.applicable_accessibilities = public, protected, protected_internal
dotnet_naming_symbols.public_protected_static_readonly_fields_group.required_modifiers = static, readonly
dotnet_naming_symbols.public_protected_static_readonly_fields_group.applicable_kinds = field
dotnet_naming_rule.public_protected_static_readonly_fields_must_be_pascal_case_rule.symbols = public_protected_static_readonly_fields_group
dotnet_naming_rule.public_protected_static_readonly_fields_must_be_pascal_case_rule.style = pascal_case_style
dotnet_naming_rule.public_protected_static_readonly_fields_must_be_pascal_case_rule.severity = warning
# No other public/protected/protected_internal fields are allowed
# https://learn.microsoft.com/dotnet/standard/design-guidelines/field
dotnet_naming_symbols.other_public_protected_fields_group.applicable_accessibilities = public, protected, protected_internal
dotnet_naming_symbols.other_public_protected_fields_group.applicable_kinds = field
dotnet_naming_rule.other_public_protected_fields_disallowed_rule.symbols = other_public_protected_fields_group
dotnet_naming_rule.other_public_protected_fields_disallowed_rule.style = disallowed_style
dotnet_naming_rule.other_public_protected_fields_disallowed_rule.severity = error
##########################################
# StyleCop Field Naming Rules
# Naming rules for fields follow the StyleCop analyzers
# This does not override any rules using disallowed_style above
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers
##########################################
# All constant fields must be PascalCase
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1303.md
dotnet_naming_symbols.stylecop_constant_fields_group.applicable_accessibilities = public, internal, protected_internal, protected, private_protected, private
dotnet_naming_symbols.stylecop_constant_fields_group.required_modifiers = const
dotnet_naming_symbols.stylecop_constant_fields_group.applicable_kinds = field
dotnet_naming_rule.stylecop_constant_fields_must_be_pascal_case_rule.symbols = stylecop_constant_fields_group
dotnet_naming_rule.stylecop_constant_fields_must_be_pascal_case_rule.style = pascal_case_style
dotnet_naming_rule.stylecop_constant_fields_must_be_pascal_case_rule.severity = warning
# All static readonly fields must be PascalCase
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1311.md
dotnet_naming_symbols.stylecop_static_readonly_fields_group.applicable_accessibilities = public, internal, protected_internal, protected, private_protected, private
dotnet_naming_symbols.stylecop_static_readonly_fields_group.required_modifiers = static, readonly
dotnet_naming_symbols.stylecop_static_readonly_fields_group.applicable_kinds = field
dotnet_naming_rule.stylecop_static_readonly_fields_must_be_pascal_case_rule.symbols = stylecop_static_readonly_fields_group
dotnet_naming_rule.stylecop_static_readonly_fields_must_be_pascal_case_rule.style = pascal_case_style
dotnet_naming_rule.stylecop_static_readonly_fields_must_be_pascal_case_rule.severity = warning
# No non-private instance fields are allowed
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1401.md
dotnet_naming_symbols.stylecop_fields_must_be_private_group.applicable_accessibilities = public, internal, protected_internal, protected, private_protected
dotnet_naming_symbols.stylecop_fields_must_be_private_group.applicable_kinds = field
dotnet_naming_rule.stylecop_instance_fields_must_be_private_rule.symbols = stylecop_fields_must_be_private_group
dotnet_naming_rule.stylecop_instance_fields_must_be_private_rule.style = disallowed_style
dotnet_naming_rule.stylecop_instance_fields_must_be_private_rule.severity = error
# Private fields must be camelCase
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1306.md
dotnet_naming_symbols.stylecop_private_fields_group.applicable_accessibilities = private
dotnet_naming_symbols.stylecop_private_fields_group.applicable_kinds = field
dotnet_naming_rule.stylecop_private_fields_must_be_camel_case_rule.symbols = stylecop_private_fields_group
dotnet_naming_rule.stylecop_private_fields_must_be_camel_case_rule.style = camel_case_style
dotnet_naming_rule.stylecop_private_fields_must_be_camel_case_rule.severity = warning
# Local variables must be camelCase
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1312.md
dotnet_naming_symbols.stylecop_local_fields_group.applicable_accessibilities = local
dotnet_naming_symbols.stylecop_local_fields_group.applicable_kinds = local
dotnet_naming_rule.stylecop_local_fields_must_be_camel_case_rule.symbols = stylecop_local_fields_group
dotnet_naming_rule.stylecop_local_fields_must_be_camel_case_rule.style = camel_case_style
dotnet_naming_rule.stylecop_local_fields_must_be_camel_case_rule.severity = silent
# This rule should never fire. However, it's included for at least two purposes:
# First, it helps to understand, reason about, and root-case certain types of issues, such as bugs in .editorconfig parsers.
# Second, it helps to raise immediate awareness if a new field type is added (as occurred recently in C#).
dotnet_naming_symbols.sanity_check_uncovered_field_case_group.applicable_accessibilities = *
dotnet_naming_symbols.sanity_check_uncovered_field_case_group.applicable_kinds = field
dotnet_naming_rule.sanity_check_uncovered_field_case_rule.symbols = sanity_check_uncovered_field_case_group
dotnet_naming_rule.sanity_check_uncovered_field_case_rule.style = internal_error_style
dotnet_naming_rule.sanity_check_uncovered_field_case_rule.severity = error
##########################################
# Naming rules for fields follow the StyleCop analyzers
##########################################
dotnet_naming_symbols.async_methods_group.applicable_accessibilities = *
dotnet_naming_symbols.async_methods_group.applicable_kinds = method
dotnet_naming_symbols.async_methods_group.required_modifiers = async
dotnet_naming_rule.async_methods_must_have_async_suffix_rule.symbols = async_methods_group
dotnet_naming_rule.async_methods_must_have_async_suffix_rule.style = async_suffix_style
dotnet_naming_rule.async_methods_must_have_async_suffix_rule.severity = error
##########################################
# Other Naming Rules
##########################################
# All of the following must be PascalCase:
# - Namespaces
# https://learn.microsoft.com/dotnet/standard/design-guidelines/names-of-namespaces
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1300.md
# - Classes and Enumerations
# https://learn.microsoft.com/dotnet/standard/design-guidelines/names-of-classes-structs-and-interfaces
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1300.md
# - Delegates
# https://learn.microsoft.com/dotnet/standard/design-guidelines/names-of-classes-structs-and-interfaces#names-of-common-types
# - Constructors, Properties, Events, Methods
# https://learn.microsoft.com/dotnet/standard/design-guidelines/names-of-type-members
dotnet_naming_symbols.element_group.applicable_kinds = namespace, class, enum, struct, delegate, event, method, property
dotnet_naming_rule.element_rule.symbols = element_group
dotnet_naming_rule.element_rule.style = pascal_case_style
dotnet_naming_rule.element_rule.severity = warning
# Interfaces use PascalCase and are prefixed with uppercase 'I'
# https://learn.microsoft.com/dotnet/standard/design-guidelines/names-of-classes-structs-and-interfaces
dotnet_naming_symbols.interface_group.applicable_kinds = interface
dotnet_naming_rule.interface_rule.symbols = interface_group
dotnet_naming_rule.interface_rule.style = prefix_interface_with_i_style
dotnet_naming_rule.interface_rule.severity = warning
# Generics Type Parameters use PascalCase and are prefixed with uppercase 'T'
# https://learn.microsoft.com/dotnet/standard/design-guidelines/names-of-classes-structs-and-interfaces
dotnet_naming_symbols.type_parameter_group.applicable_kinds = type_parameter
dotnet_naming_rule.type_parameter_rule.symbols = type_parameter_group
dotnet_naming_rule.type_parameter_rule.style = prefix_type_parameters_with_t_style
dotnet_naming_rule.type_parameter_rule.severity = warning
# Function parameters use camelCase
# https://learn.microsoft.com/dotnet/standard/design-guidelines/naming-parameters
dotnet_naming_symbols.parameters_group.applicable_kinds = parameter
dotnet_naming_rule.parameters_rule.symbols = parameters_group
dotnet_naming_rule.parameters_rule.style = camel_case_style
dotnet_naming_rule.parameters_rule.severity = warning
##########################################
# Miscellaneous rules
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/miscellaneous-rules
##########################################
[*.{cs,csx,cake,vb,vbx}]
# Remove invalid global 'SuppressMessageAttribute' (IDE0076)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0076
# dotnet_diagnostic.IDE0076.severity = default
# Avoid legacy format target in global 'SuppressMessageAttribute' (IDE0077)
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0077
# dotnet_diagnostic.IDE0077.severity = default
##########################################
# .NET Coding Conventions - .NET
# https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/dotnet-formatting-options
##########################################
[*.{cs,csx,cake,vb,vbx}]
# .NET code refactoring options
# https://learn.microsoft.com/visualstudio/ide/reference/code-styles-refactoring-options
dotnet_style_operator_placement_when_wrapping = end_of_line
##########################################
# Code Quality rules
# Design rules
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/design-warnings