-
Notifications
You must be signed in to change notification settings - Fork 0
/
.editorconfig
2100 lines (1526 loc) · 68.3 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
# Remove the line below if you want to inherit .editorconfig settings from higher directories
root = true
# All files
#[*]
#charset = utf-8
#end_of_line = lf
#indent_style = space
#indent_size = 2
#insert_final_newline = true
#max_line_length = 120
#tab_width = 2
#trim_trailing_whitespace = true
# Analysers files
[*.{har,jsb2,jsb3,babelrc,babelrc.*,bowerrc,bowerrc.*,eslintrc,eslintrc.*,prettierrc,prettierrc.*,stylelintrc,stylelintrc.*}]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
tab_width = 2
trim_trailing_whitespace = true
# ASP.NET Web Page files
[*.{asp,apsx,cshtml,razor,vbhtml}]
charset = utf-8
end_of_line = crlf
indent_style = space
indent_size = 4
insert_final_newline = true
tab_width = 4
trim_trailing_whitespace = true
# Configuration Visual Studio files
[*.{config,feature,manifest,nuspec,props,resx,ruleset,targets,vsixmanifest,vsct}]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
tab_width = 2
trim_trailing_whitespace = true
# dotNET C#, VB files
[*.{cake,cs,csx,vb,vbx}]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
tab_width = 4
trim_trailing_whitespace = true
# Environment files
[*.env,.env.*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
tab_width = 2
trim_trailing_whitespace = true
# Embedded Ruby files
[*.erb]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
tab_width = 2
trim_trailing_whitespace = true
# JavaScript & TypeScript files
[*.{ajs,ajsx,ats,atsx,cjs,cjsx,coffee,cts,ctsx,d,js,jsm,jsx,litcoffee,mjs,mjsx,mts,mtsx,ng,ts,tsm,tsx,types,vue}]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
tab_width = 2
trim_trailing_whitespace = true
# JSON, JSON5 & WebManifest files
[*.{json,json.*,json5,json5.*,webmanifest,webmanifest.*}]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
tab_width = 2
trim_trailing_whitespace = true
# LaTeX files
[*.{aux,bst,cls,dtx,dvi,etx,fd,glo,ind,ins,ist,lat,latex,lof,lot,lp,ltx,mf,odvi,paux,pk,pkt,pool,pxl,sty,tex,texi,texinfo,tfm,toc,txss,vf,vpl,xfi}]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
tab_width = 2
trim_trailing_whitespace = true
# Linux Script & Configuration files
[*.{[Bb][Aa][Ss][Hh],[Cc][Oo][Nn][Ff],[Ss][Hh],[Zz][Ss][Hh]}]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
tab_width = 2
trim_trailing_whitespace = true
# Lua files
[*.lua]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
tab_width = 2
trim_trailing_whitespace = true
# Markdown files
[*.{markdn,markdown,md,mdown,mdtext,mdtxt,mdwn,mdx,mkd,mkdn,text}]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = tab
insert_final_newline = true
tab_width = 4
trim_trailing_whitespace = false
# Perl files
[*.{cgi,perl,pl,plx,pm,pod,t,xs}]
charset = utf-8
end_of_line = lf
indent_style = tab
indent_size = 2
insert_final_newline = true
tab_width = 2
trim_trailing_whitespace = true
# Python files
[*.{py,pyc,pyd,pyi,pyo,pyw,pyz}]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
tab_width = 2
trim_trailing_whitespace = true
# reStructuredText files
[*.rst]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = tab
insert_final_newline = true
tab_width = 4
trim_trailing_whitespace = false
# Ruby files
[*.rb]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
tab_width = 2
trim_trailing_whitespace = true
# Rust files
[*.{rs,rlib}]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
tab_width = 2
trim_trailing_whitespace = true
# Style files
[*.{css,cssx,less,pcss,sass,scss,sss,styl}]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
tab_width = 2
trim_trailing_whitespace = true
# SVG files
[*.svg]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
tab_width = 2
trim_trailing_whitespace = true
# Text files
[*.txt]
charset = utf-8
end_of_line = lf
indent_style = tab
indent_size = 4
insert_final_newline = true
max_line_length = 120
tab_width = 4
trim_trailing_whitespace = true
# VBScript files
[*.{vbe,vbs,wsc,wsf}]
charset = utf-8
end_of_line = crlf
indent_style = space
indent_size = 2
insert_final_newline = true
tab_width = 2
trim_trailing_whitespace = true
# Visual Studio Project files
[*.{asaproj,asaproj.*,ccproj,ccproj.*,csproj,csproj.*,dbproj,dbproj.*,dcproj,dcproj.*,deployproj,deployproj.*,edgeproj,edgeproj.*,esproj,esproj.*,fsproj,fsproj.*,hiveproj,hiveproj.*,lsproj,lsproj.*,modelproj,modelproj.*,msbuildproj,msbuildproj.*,njsproj,njsproj.*,pigproj,pigproj.*,proj,proj.*,projitems,projitems.*,sfproj,sfproj.*,shproj,shproj.*,sqlproj,sqlproj.*,vbproj,vbproj.*,vcproj,vcproj.*,vcxitems,vcxitems.*,vcxproj,vcxproj.*,vcxproj.filters,usqldbproj,usqldbproj.*,usqlproj,usqlproj.*,usqlutproj,usqlutproj.*,wapproj,wapproj.*,wixproj,wixproj.*,wwaproj,wwaproj.*,xproj,xproj.*}]
charset = utf-8
end_of_line = crlf
indent_style = space
indent_size = 4
insert_final_newline = true
tab_width = 4
trim_trailing_whitespace = true
# Visual Studio Solution files
[*.{sln,sln.*,slnf,slnf.*}]
charset = utf-8
end_of_line = crlf
indent_style = tab
indent_size = 4
insert_final_newline = true
tab_width = 4
trim_trailing_whitespace = true
# Web files
[*.{agp,ahtm,ahtml,as,chtm,chtml,fhtm,fhtml,fpxml,haml,hhtm,hhtml,hta,htc,htd,htm,html,html5,htmls,htm,htms,ihtm,ihtml,jhtm,jhtml,jsp,jspa,jspf,jspx,mht,mhtml,phar,php,php4,php5,phps,pht,phtm,phtml,rhtm,rhtml,sht,shtm,shtml,stm,stml,uhtm,uhtml,xht,xhtm,xhtml,xtml}]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
tab_width = 2
trim_trailing_whitespace = true
# Windows Script files
[*.{[Bb][Aa][Tt],[Cc][Oo][Mm],[Cc][Mm][Dd],[Pp][Ss]1}]
charset = utf-8
end_of_line = crlf
indent_style = space
indent_size = 2
insert_final_newline = true
tab_width = 2
trim_trailing_whitespace = true
# WSL Config files
[*.[Ww][Ss][Ll][Cc][Oo][Nn][Ff][Ii][Gg]]
charset = utf-8
end_of_line = crlf
indent_style = space
indent_size = 2
insert_final_newline = true
tab_width = 2
trim_trailing_whitespace = true
# XAML files
[*.{ant,fxml,jhm,jnlp,jrxml,jsp,jspx,rng,tld,wsdl,xaml,xml,xsd,xsl,xslt,xul}]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
tab_width = 2
trim_trailing_whitespace = true
# YAML files
[*.{yaml,yml}]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
tab_width = 2
trim_trailing_whitespace = true
# Dockerfiles
[*.[Dd]ocker[Ff]ile,[Dd]ocker[Ff]ile,[Dd]ocker[Ff]ile.*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 4
insert_final_newline = true
tab_width = 4
trim_trailing_whitespace = true
# Makefiles
[*.[Mm]ake[Ff]ile,[Mm]ake[Ff]ile,[Mm]ake[Ff]ile.*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = tab
insert_final_newline = true
tab_width = 4
trim_trailing_whitespace = true
# .dockerignore, .editorconfig, .gitattributes, .gitignore, .gitmodule, .gitmodules files
[*.{[Dd]ocker[Ii]gnore,[Ee]ditor[Cc]onfig,[Gg]it[Aa]ttributes,[Gg]it[Ii]gnore,[Gg]it[Mm]odule,[Gg]it[Mm]odules}]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 4
insert_final_newline = true
tab_width = 4
trim_trailing_whitespace = true
#####
##### dotNET C# files #####
#####
[*.{cake,cs,cshtml,csx,razor}]
### C# Coding Conventions ###
# var preferences
#csharp_style_var_elsewhere = false
csharp_style_var_elsewhere = true
#csharp_style_var_for_built_in_types = false
csharp_style_var_for_built_in_types = true
#csharp_style_var_when_type_is_apparent = false
csharp_style_var_when_type_is_apparent = true
# Expression-bodied members
csharp_style_expression_bodied_accessors = true
csharp_style_expression_bodied_constructors = false
csharp_style_expression_bodied_indexers = true
csharp_style_expression_bodied_lambdas = true
csharp_style_expression_bodied_local_functions = false
csharp_style_expression_bodied_methods = false
csharp_style_expression_bodied_operators = false
csharp_style_expression_bodied_properties = true
# Pattern matching preferences
csharp_style_pattern_matching_over_as_with_null_check = true
csharp_style_pattern_matching_over_is_with_cast_check = true
csharp_style_prefer_extended_property_pattern = true
csharp_style_prefer_not_pattern = true
csharp_style_prefer_pattern_matching = true
#csharp_style_prefer_switch_expression = true
csharp_style_prefer_switch_expression = false
# Null-checking preferences
csharp_style_conditional_delegate_call = true
# Modifier preferences
#csharp_prefer_static_local_function = true
csharp_prefer_static_local_function = false
csharp_preferred_modifier_order = public, private, protected, internal, static, extern, new, virtual, abstract, sealed, override, readonly, unsafe, required, volatile, async
# Code-block preferences
csharp_prefer_braces = true
#csharp_prefer_simple_using_statement = true
csharp_prefer_simple_using_statement = false
#csharp_style_namespace_declarations = block_scoped
csharp_style_namespace_declarations = file_scoped
csharp_style_prefer_method_group_conversion = true
csharp_style_prefer_top_level_statements = true
# Expression-level preferences
#csharp_prefer_simple_default_expression = true
csharp_prefer_simple_default_expression = false
csharp_style_deconstructed_variable_declaration = true
#csharp_style_implicit_object_creation_when_type_is_apparent = true
csharp_style_implicit_object_creation_when_type_is_apparent = false
csharp_style_inlined_variable_declaration = true
csharp_style_pattern_local_over_anonymous_function = true
csharp_style_prefer_index_operator = true
csharp_style_prefer_local_over_anonymous_function = true
csharp_style_prefer_null_check_over_type_check = true
csharp_style_prefer_range_operator = true
csharp_style_prefer_tuple_swap = true
csharp_style_prefer_utf8_string_literals = true
csharp_style_throw_expression = true
csharp_style_unused_value_assignment_preference = discard_variable : none
csharp_style_unused_value_expression_statement_preference = discard_variable : none
# 'using' directive preferences
csharp_using_directive_placement = outside_namespace
# New line preferences
#csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = true
csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = false
#csharp_style_allow_blank_lines_between_consecutive_braces_experimental = true
csharp_style_allow_blank_lines_between_consecutive_braces_experimental = false
#csharp_style_allow_embedded_statements_on_same_line_experimental = true
csharp_style_allow_embedded_statements_on_same_line_experimental = false
### C# Formatting Rules ###
# New line preferences
csharp_new_line_before_catch = true
csharp_new_line_before_else = true
csharp_new_line_before_finally = true
csharp_new_line_before_members_in_anonymous_types = true
csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_open_brace = all
csharp_new_line_between_query_expression_clauses = true
csharp_new_line_within_query_expression_clauses = true
# Indentation preferences
csharp_indent_block_contents = true
csharp_indent_braces = false
csharp_indent_case_contents = true
csharp_indent_case_contents_when_block = true
csharp_indent_labels = one_less_than_current
#csharp_indent_labels = flush_left
csharp_indent_switch_labels = true
# Space preferences
csharp_space_after_cast = false
csharp_space_after_colon_in_inheritance_clause = true
csharp_space_after_comma = true
csharp_space_after_dot = false
csharp_space_after_keywords_in_control_flow_statements = true
csharp_space_after_semicolon_in_for_statement = true
csharp_space_around_binary_operators = before_and_after
csharp_space_around_declaration_statements = false
#csharp_space_around_declaration_statements = do_not_ignore
csharp_space_before_colon_in_inheritance_clause = true
csharp_space_before_comma = false
csharp_space_before_dot = false
csharp_space_before_open_square_brackets = false
csharp_space_before_semicolon_in_for_statement = false
csharp_space_between_empty_square_brackets = false
csharp_space_between_method_call_empty_parameter_list_parentheses = false
csharp_space_between_method_call_name_and_opening_parenthesis = false
csharp_space_between_method_call_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_declaration_parameter_list_parentheses = false
csharp_space_between_parentheses = false
csharp_space_between_square_brackets = false
# Wrapping preferences
csharp_preserve_single_line_blocks = true
#csharp_preserve_single_line_statements = true
csharp_preserve_single_line_statements = false
### C# .NET Naming Styles ###
# Naming rules
dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
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 = suggestion
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 = suggestion
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
# 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.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 =
# Naming styles
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.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.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 VB files #####
#####
[*.{razor,vb,vbhtml,vbx}]
### VB Coding Conventions ###
# Modifier preferences
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, iterator
# Expression-level preferences
visual_basic_style_prefer_isnot_expression = true
visual_basic_style_prefer_simplified_object_creation = true
visual_basic_style_unused_value_assignment_preference = unused_local_variable
visual_basic_style_unused_value_expression_statement_preference = unused_local_variable
### VB .NET Naming Styles ###
# Naming rules
dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
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 = suggestion
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 = suggestion
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
# Symbol specifications
dotnet_naming_symbols.interface.applicable_kinds = interface
dotnet_naming_symbols.interface.applicable_accessibilities = public, friend, private, protected, protected_friend, private_protected
dotnet_naming_symbols.interface.required_modifiers =
dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
dotnet_naming_symbols.types.applicable_accessibilities = public, friend, private, protected, protected_friend, 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, friend, private, protected, protected_friend, private_protected
dotnet_naming_symbols.non_field_members.required_modifiers =
# Naming styles
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.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.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 C#, VB generated files ###
#####
[*.{[Dd]esigner,[Gg]enerated}.{cake,cs,cshtml,csx,razor,vb,vbhtml,vbx}]
generated_code = true
#####
##### dotNET C#, VB files #####
#####
[*.{cake,cs,cshtml,csx,razor,vb,vbhtml,vbx}]
### .NET Coding Conventions ###
# File header preferences
file_header_template = unset
# Organize usings
dotnet_separate_import_directive_groups = true
dotnet_sort_system_directives_first = true
# this. and Me. preferences
dotnet_style_qualification_for_event = false
dotnet_style_qualification_for_field = false
dotnet_style_qualification_for_method = false
dotnet_style_qualification_for_property = false
# Language keywords vs BCL types preferences
dotnet_style_predefined_type_for_locals_parameters_members = true
dotnet_style_predefined_type_for_member_access = true
# Parentheses preferences
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity
#dotnet_style_parentheses_in_other_operators = never_if_unnecessary
dotnet_style_parentheses_in_other_operators = always_for_clarity
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity
# Modifier preferences
dotnet_style_require_accessibility_modifiers = for_non_interface_members
# Expression-level preferences
dotnet_style_coalesce_expression = true
dotnet_style_collection_initializer = true
dotnet_style_explicit_tuple_names = true
#dotnet_style_namespace_match_folder = true
dotnet_style_namespace_match_folder = false
dotnet_style_null_propagation = true
dotnet_style_object_initializer = true
dotnet_style_operator_placement_when_wrapping = beginning_of_line
dotnet_style_prefer_auto_properties = true
dotnet_style_prefer_compound_assignment = true
#dotnet_style_prefer_conditional_expression_over_assignment = true
dotnet_style_prefer_conditional_expression_over_assignment = false
#dotnet_style_prefer_conditional_expression_over_return = true
dotnet_style_prefer_conditional_expression_over_return = false
dotnet_style_prefer_foreach_explicit_cast_in_source = when_strongly_typed
dotnet_style_prefer_inferred_anonymous_type_member_names = true
dotnet_style_prefer_inferred_tuple_names = true
dotnet_style_prefer_is_null_check_over_reference_equality_method = true
dotnet_style_prefer_simplified_boolean_expressions = true
dotnet_style_prefer_simplified_interpolation = true
# Field preferences
dotnet_style_readonly_field = true
# Parameter preferences
dotnet_code_quality_unused_parameters = all
# Suppression preferences
dotnet_remove_unnecessary_suppression_exclusions = none
# New line preferences
#dotnet_style_allow_multiple_blank_lines_experimental = true
dotnet_style_allow_multiple_blank_lines_experimental = false
#dotnet_style_allow_statement_immediately_after_block_experimental = true
dotnet_style_allow_statement_immediately_after_block_experimental = false
#####
##### dotNET C#, VB files #####
#####
[*.{cake,cs,cshtml,csx,vb,vbhtml,vbx}]
### Default severity configuration ###
# Default severity for all IDE code rules with category 'CodeQuality'
#dotnet_analyzer_diagnostic.category-CodeQuality.severity = warning
# Default severity for all IDE code rules with category 'Design'
#dotnet_analyzer_diagnostic.category-Design.severity = warning
# Default severity for all IDE code rules with category 'Documentation'
#dotnet_analyzer_diagnostic.category-Documentation.severity = warning
# Default severity for all IDE code rules with category 'Globalization'
#dotnet_analyzer_diagnostic.category-Globalization.severity = warning
# Default severity for all IDE code rules with category 'Interoperability'
#dotnet_analyzer_diagnostic.category-Interoperability.severity = warning
# Default severity for all IDE code rules with category 'Maintainability'
#dotnet_analyzer_diagnostic.category-Maintainability.severity = warning
# Default severity for all IDE code rules with category 'Naming'
#dotnet_analyzer_diagnostic.category-Naming.severity = warning
# Default severity for all IDE code rules with category 'Performance'
#dotnet_analyzer_diagnostic.category-Performance.severity = warning
# Default severity for all IDE code rules with category 'Reliability'
#dotnet_analyzer_diagnostic.category-Reliability.severity = warning
# Default severity for all IDE code rules with category 'Security'
#dotnet_analyzer_diagnostic.category-Security.severity = warning
# Default severity for all IDE code rules with category 'SingleFile'
#dotnet_analyzer_diagnostic.category-SingleFile.severity = warning
# Default severity for all IDE code rules with category 'Style'
#dotnet_analyzer_diagnostic.category-Style.severity = warning
# Default severity for all IDE code rules with category 'Usage'
#dotnet_analyzer_diagnostic.category-Usage.severity = warning
#####
##### dotNET C#, VB files #####
#####
[*.{cake,cs,cshtml,csx,vb,vbhtml,vbx}]
### Default severity configuration ###
###
### roslyn.diagnostics.analyzers.3.3.4-beta1.22362.3
### + microsoft.codeanalysis.publicapianalyzers.3.3.4-beta1.22362.3
### + microsoft.codeanalysis.bannedapianalyzers.3.3.4-beta1.22362.3
###
# NOTE: Requires **VS2019 16.3** or later
# All Rules with default severity. Rules with IsEnabledByDefault = false are disabled.
# RS0001: Use 'SpecializedCollections.EmptyEnumerable()'
dotnet_diagnostic.RS0001.severity = warning
# RS0002: Use 'SpecializedCollections.SingletonEnumerable()'
dotnet_diagnostic.RS0002.severity = warning
# RS0004: Invoke the correct property to ensure correct use site diagnostics
dotnet_diagnostic.RS0004.severity = none
# RS0006: Do not mix attributes from different versions of MEF
dotnet_diagnostic.RS0006.severity = warning
# RS0016: Add public types and members to the declared API
dotnet_diagnostic.RS0016.severity = warning
# RS0017: Remove deleted types and members from the declared API
dotnet_diagnostic.RS0017.severity = warning
# RS0019: 'SymbolDeclaredEvent' must be generated for source symbols
dotnet_diagnostic.RS0019.severity = none
# RS0022: Constructor make noninheritable base class inheritable
dotnet_diagnostic.RS0022.severity = warning
# RS0023: Parts exported with MEFv2 must be marked with 'SharedAttribute'
dotnet_diagnostic.RS0023.severity = warning
# RS0024: The contents of the public API files are invalid
dotnet_diagnostic.RS0024.severity = warning
# RS0025: Do not duplicate symbols in public API files
dotnet_diagnostic.RS0025.severity = warning
# RS0026: Do not add multiple public overloads with optional parameters
dotnet_diagnostic.RS0026.severity = warning
# RS0027: Public API with optional parameter(s) should have the most parameters amongst its public overloads
dotnet_diagnostic.RS0027.severity = warning
# RS0030: Do not used banned APIs
dotnet_diagnostic.RS0030.severity = warning
# RS0031: The list of banned symbols contains a duplicate
dotnet_diagnostic.RS0031.severity = warning
# RS0032: Test exports should not be discoverable
dotnet_diagnostic.RS0032.severity = none
# RS0033: Importing constructor should be marked with 'ObsoleteAttribute'
dotnet_diagnostic.RS0033.severity = warning
# RS0034: Exported parts should be marked with 'ImportingConstructorAttribute'
dotnet_diagnostic.RS0034.severity = warning
# RS0035: External access to internal symbols outside the restricted namespace(s) is prohibited
dotnet_diagnostic.RS0035.severity = error
# RS0036: Annotate nullability of public types and members in the declared API
dotnet_diagnostic.RS0036.severity = warning
# RS0037: Enable tracking of nullability of reference types in the declared API
dotnet_diagnostic.RS0037.severity = warning
# RS0038: Prefer null literal
dotnet_diagnostic.RS0038.severity = warning
# RS0040: Defaultable types should have defaultable fields
dotnet_diagnostic.RS0040.severity = warning
# RS0041: Public members should not use oblivious types
dotnet_diagnostic.RS0041.severity = warning
# RS0042: Do not copy value
dotnet_diagnostic.RS0042.severity = warning
# RS0043: Do not call 'GetTestAccessor()'
dotnet_diagnostic.RS0043.severity = warning
# RS0046: Avoid the 'Opt' suffix
dotnet_diagnostic.RS0046.severity = warning
# RS0048: Missing shipped or unshipped public API file
dotnet_diagnostic.RS0048.severity = warning
# RS0049: Instance of TemporaryArray<T>.AsRef() must be a 'using' variable
dotnet_diagnostic.RS0049.severity = warning
# RS0050: Public API is marked as removed but it exists in source code
dotnet_diagnostic.RS0050.severity = warning
###
### microsoft.codeanalysis.analyzers.3.3.4-beta1.22362.3
###
# NOTE: Requires **VS2019 16.3** or later
# All Rules with default severity. Rules with IsEnabledByDefault = false are disabled.
# RS1001: Missing diagnostic analyzer attribute
dotnet_diagnostic.RS1001.severity = warning
# RS1002: Missing kind argument when registering an analyzer action
dotnet_diagnostic.RS1002.severity = warning
# RS1003: Unsupported SymbolKind argument when registering a symbol analyzer action
dotnet_diagnostic.RS1003.severity = warning
# RS1004: Recommend adding language support to diagnostic analyzer
dotnet_diagnostic.RS1004.severity = warning
# RS1005: ReportDiagnostic invoked with an unsupported DiagnosticDescriptor
dotnet_diagnostic.RS1005.severity = warning
# RS1006: Invalid type argument for DiagnosticAnalyzer's Register method
dotnet_diagnostic.RS1006.severity = warning
# RS1007: Provide localizable arguments to diagnostic descriptor constructor
dotnet_diagnostic.RS1007.severity = none
# RS1008: Avoid storing per-compilation data into the fields of a diagnostic analyzer
dotnet_diagnostic.RS1008.severity = warning
# RS1009: Only internal implementations of this interface are allowed
#dotnet_diagnostic.RS1009.severity = error
dotnet_diagnostic.RS1009.severity = warning
# RS1010: Create code actions should have a unique EquivalenceKey for FixAll occurrences support
dotnet_diagnostic.RS1010.severity = warning
# RS1011: Use code actions that have a unique EquivalenceKey for FixAll occurrences support
dotnet_diagnostic.RS1011.severity = warning
# RS1012: Start action has no registered actions
dotnet_diagnostic.RS1012.severity = warning
# RS1013: Start action has no registered non-end actions
dotnet_diagnostic.RS1013.severity = warning
# RS1014: Do not ignore values returned by methods on immutable objects.
dotnet_diagnostic.RS1014.severity = warning
# RS1015: Provide non-null 'helpLinkUri' value to diagnostic descriptor constructor
dotnet_diagnostic.RS1015.severity = none
# RS1016: Code fix providers should provide FixAll support
dotnet_diagnostic.RS1016.severity = warning
# RS1017: DiagnosticId for analyzers must be a non-null constant
dotnet_diagnostic.RS1017.severity = warning
# RS1018: DiagnosticId for analyzers must be in specified format
dotnet_diagnostic.RS1018.severity = warning
# RS1019: DiagnosticId must be unique across analyzers
dotnet_diagnostic.RS1019.severity = warning
# RS1020: Category for analyzers must be from the specified values
dotnet_diagnostic.RS1020.severity = none
# RS1021: Invalid entry in analyzer category and diagnostic ID range specification file
dotnet_diagnostic.RS1021.severity = warning
# RS1022: Do not use types from Workspaces assembly in an analyzer
dotnet_diagnostic.RS1022.severity = warning
# RS1023: Upgrade MSBuildWorkspace
dotnet_diagnostic.RS1023.severity = warning
# RS1024: Symbols should be compared for equality
dotnet_diagnostic.RS1024.severity = warning
# RS1025: Configure generated code analysis
dotnet_diagnostic.RS1025.severity = warning
# RS1026: Enable concurrent execution
dotnet_diagnostic.RS1026.severity = warning
# RS1027: Types marked with DiagnosticAnalyzerAttribute(s) should inherit from DiagnosticAnalyzer
dotnet_diagnostic.RS1027.severity = warning
# RS1028: Provide non-null 'customTags' value to diagnostic descriptor constructor
dotnet_diagnostic.RS1028.severity = none
# RS1029: Do not use reserved diagnostic IDs
dotnet_diagnostic.RS1029.severity = warning
# RS1030: Do not invoke Compilation.GetSemanticModel() method within a diagnostic analyzer
dotnet_diagnostic.RS1030.severity = warning
# RS1031: Define diagnostic title correctly
dotnet_diagnostic.RS1031.severity = warning
# RS1032: Define diagnostic message correctly
dotnet_diagnostic.RS1032.severity = warning
# RS1033: Define diagnostic description correctly
dotnet_diagnostic.RS1033.severity = warning
# RS1034: Prefer 'IsKind' for checking syntax kinds
dotnet_diagnostic.RS1034.severity = warning
# RS2000: Add analyzer diagnostic IDs to analyzer release
dotnet_diagnostic.RS2000.severity = warning
# RS2001: Ensure up-to-date entry for analyzer diagnostic IDs are added to analyzer release
dotnet_diagnostic.RS2001.severity = warning
# RS2002: Do not add removed analyzer diagnostic IDs to unshipped analyzer release
dotnet_diagnostic.RS2002.severity = warning
# RS2003: Shipped diagnostic IDs that are no longer reported should have an entry in the 'Removed Rules' table in unshipped file
dotnet_diagnostic.RS2003.severity = warning
# RS2004: Diagnostic IDs marked as removed in analyzer release file should not be reported by analyzers
dotnet_diagnostic.RS2004.severity = warning
# RS2005: Remove duplicate entries for diagnostic ID in the same analyzer release
dotnet_diagnostic.RS2005.severity = warning
# RS2006: Remove duplicate entries for diagnostic ID between analyzer releases
dotnet_diagnostic.RS2006.severity = warning
# RS2007: Invalid entry in analyzer release file
dotnet_diagnostic.RS2007.severity = warning
# RS2008: Enable analyzer release tracking
dotnet_diagnostic.RS2008.severity = warning
###
### microsoft.codeanalysis.csharp.codestyle.4.4.0-1.final
### + microsoft.codeanalysis.visualbasic.codestyle.4.4.0-1.final
###
# NOTE: Requires **VS2019 16.7** or later
# Style rules with 'All' analysis mode + Extra rules from 'None' analysis mode converted to warnings
# IDE0004: Remove Unnecessary Cast
dotnet_diagnostic.IDE0004.severity = warning
# IDE0005: Using directive is unnecessary.
dotnet_diagnostic.IDE0005.severity = warning
# IDE0005_gen: Using directive is unnecessary.
dotnet_diagnostic.IDE0005_gen.severity = silent
# IDE0007: Use implicit type
dotnet_diagnostic.IDE0007.severity = warning
# IDE0008: Use explicit type
dotnet_diagnostic.IDE0008.severity = warning
# IDE0009: Member access should be qualified.
dotnet_diagnostic.IDE0009.severity = warning
# IDE0010: Add missing cases
dotnet_diagnostic.IDE0010.severity = warning
# IDE0011: Add braces
dotnet_diagnostic.IDE0011.severity = warning
# IDE0016: Use 'throw' expression
dotnet_diagnostic.IDE0016.severity = warning
# IDE0017: Simplify object initialization
dotnet_diagnostic.IDE0017.severity = warning
# IDE0018: Inline variable declaration
dotnet_diagnostic.IDE0018.severity = warning
# IDE0019: Use pattern matching
dotnet_diagnostic.IDE0019.severity = warning
# IDE0020: Use pattern matching
dotnet_diagnostic.IDE0020.severity = warning
# IDE0021: Use expression body for constructors
dotnet_diagnostic.IDE0021.severity = warning
# IDE0022: Use expression body for methods
dotnet_diagnostic.IDE0022.severity = warning
# IDE0023: Use expression body for conversion operators
dotnet_diagnostic.IDE0023.severity = warning
# IDE0024: Use expression body for operators
dotnet_diagnostic.IDE0024.severity = warning
# IDE0025: Use expression body for properties
dotnet_diagnostic.IDE0025.severity = warning
# IDE0026: Use expression body for indexers
dotnet_diagnostic.IDE0026.severity = warning
# IDE0027: Use expression body for accessors
dotnet_diagnostic.IDE0027.severity = warning