-
-
Notifications
You must be signed in to change notification settings - Fork 177
/
Copy path.editorconfig
2815 lines (2266 loc) · 118 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
root = true
# EditorConfig is awesome:http://EditorConfig.org
# Don't use tabs for indentation.
[*]
indent_style = space
# Code files
[*.{cs,csx,vb,vbx}]
indent_size = 4
insert_final_newline = true
charset = utf-8
# CSharp code style settings:
[*.cs]
csharp_indent_labels = one_less_than_current
csharp_using_directive_placement = outside_namespace:silent
csharp_prefer_simple_using_statement = true:suggestion
csharp_prefer_braces = true:silent
csharp_style_namespace_declarations = file_scoped:silent
csharp_style_prefer_method_group_conversion = true:silent
csharp_style_prefer_top_level_statements = true:silent
csharp_style_prefer_primary_constructors = true:suggestion
# Prefer method-like constructs to have a block body
csharp_style_expression_bodied_methods = false:silent
csharp_style_expression_bodied_constructors = false:silent
csharp_style_expression_bodied_operators = false:silent
# Prefer property-like constructs to have an expression-body
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_index_operator = true:suggestion
csharp_style_prefer_local_over_anonymous_function = true:suggestion
csharp_style_prefer_range_operator = true:suggestion
csharp_style_implicit_object_creation_when_type_is_apparent = true:suggestion
csharp_style_prefer_tuple_swap = true:suggestion
csharp_style_prefer_utf8_string_literals = true:suggestion
csharp_style_inlined_variable_declaration = true:suggestion
csharp_style_deconstructed_variable_declaration = true:suggestion
csharp_style_unused_value_assignment_preference = discard_variable:suggestion
csharp_style_unused_value_expression_statement_preference = discard_variable:silent
csharp_prefer_static_local_function = true:suggestion
csharp_style_prefer_readonly_struct = true:suggestion
csharp_prefer_static_anonymous_function = true:suggestion
csharp_style_prefer_readonly_struct_member = true:suggestion
csharp_style_allow_embedded_statements_on_same_line_experimental = true:silent
csharp_style_allow_blank_lines_between_consecutive_braces_experimental = true:silent
csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = true:silent
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_style_conditional_delegate_call = true:suggestion
csharp_style_prefer_switch_expression = true:suggestion
csharp_style_prefer_pattern_matching = true:silent
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
# Sort using and Import directives with System.* appearing first
dotnet_sort_system_directives_first = true
dotnet_style_require_accessibility_modifiers = always:warning
# Put a blank line between System.* and Microsoft.*
dotnet_separate_import_directive_groups = true
dotnet_naming_rule.externally_visible_members_must_be_pascal_cased.symbols = externally_visible_symbols
dotnet_naming_rule.externally_visible_members_must_be_pascal_cased.style = pascal_case_style
dotnet_naming_rule.externally_visible_members_must_be_pascal_cased.severity = warning
dotnet_naming_symbols.externally_visible_symbols.applicable_kinds = class, struct, enum, property, method, field, event, delegate
dotnet_naming_symbols.externally_visible_symbols.applicable_accessibilities = public, internal, protected, protected_internal, private_protected
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
# Interfaces
dotnet_naming_rule.interfaces_must_be_pascal_cased_and_prefixed_with_i.symbols = interface_symbols
dotnet_naming_rule.interfaces_must_be_pascal_cased_and_prefixed_with_i.style = pascal_case_and_prefix_with_I_style
dotnet_naming_rule.interfaces_must_be_pascal_cased_and_prefixed_with_i.severity = warning
dotnet_naming_style.pascal_case_and_prefix_with_i_style.required_prefix = I
dotnet_naming_style.pascal_case_and_prefix_with_i_style.capitalization = pascal_case
dotnet_naming_symbols.interface_symbols.applicable_kinds = interface
dotnet_naming_symbols.interface_symbols.applicable_accessibilities = *
# Parameters
dotnet_naming_rule.parameters_must_be_camel_cased.symbols = parameter_symbols
dotnet_naming_rule.parameters_must_be_camel_cased.style = camel_case_style
dotnet_naming_rule.parameters_must_be_camel_cased.severity = warning
dotnet_naming_style.camel_case_style.capitalization = camel_case
dotnet_naming_symbols.parameter_symbols.applicable_kinds = parameter
dotnet_naming_symbols.parameter_symbols.applicable_accessibilities = *
# Constants
dotnet_naming_rule.constants_must_be_snake_cased.symbols = constant_symbols
dotnet_naming_rule.constants_must_be_snake_cased.style = snake_case
dotnet_naming_rule.constants_must_be_snake_cased.severity = warning
dotnet_naming_style.snake_case.capitalization = all_upper
dotnet_naming_style.snake_case.word_separator = _
dotnet_naming_symbols.constant_symbols.applicable_kinds = field
dotnet_naming_symbols.constant_symbols.required_modifiers = const
dotnet_naming_symbols.constant_symbols.applicable_accessibilities = *
# Xml project files
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}]
indent_size = 4
dotnet_style_operator_placement_when_wrapping = beginning_of_line
tab_width = 4
end_of_line = crlf
dotnet_style_coalesce_expression = true:suggestion
dotnet_style_null_propagation = true:suggestion
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
dotnet_style_prefer_auto_properties = true:silent
dotnet_style_object_initializer = true:suggestion
dotnet_style_collection_initializer = true:suggestion
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
dotnet_style_prefer_conditional_expression_over_return = true:silent
dotnet_style_explicit_tuple_names = true:suggestion
dotnet_style_prefer_inferred_tuple_names = true:suggestion
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
dotnet_style_prefer_compound_assignment = true:suggestion
dotnet_style_prefer_simplified_interpolation = true:suggestion
dotnet_style_prefer_collection_expression = when_types_loosely_match:suggestion
dotnet_style_namespace_match_folder = true:suggestion
dotnet_style_readonly_field = true:suggestion
dotnet_style_predefined_type_for_locals_parameters_members = true:silent
dotnet_style_predefined_type_for_member_access = true:silent
dotnet_code_quality_unused_parameters = all:suggestion
dotnet_style_allow_multiple_blank_lines_experimental = true:silent
dotnet_style_allow_statement_immediately_after_block_experimental = true:silent
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
# Xml config files
[*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}]
indent_size = 2
# JSON files
[*.json]
indent_size = 2
# File header
dotnet_diagnostic.IDE0073.severity = error
file_header_template = Copyright (c) Ugo Lattanzi. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
# ReSharper properties
resharper_align_multiline_binary_expressions_chain = false
resharper_blank_lines_after_multiline_statements = 1
resharper_blank_lines_before_block_statements = 1
resharper_csharp_max_line_length = 300
resharper_csharp_wrap_before_binary_opsign = true
resharper_instance_members_qualify_declared_in = base_class
resharper_max_attribute_length_for_same_line = 0
resharper_parentheses_redundancy_style = remove
resharper_wrap_chained_binary_expressions = chop_if_long
resharper_csharp_wrap_before_comma = false
resharper_csharp_keep_user_linebreaks = true
resharper_csharp_keep_existing_arrangement = true
resharper_csharp_keep_existing_linebreaks = true
# (Please don't specify an indent_size here; that has too many unintended consequences.)
[*.{cs,vb}]
##################################################################
###################### AspNetCoreAnalyzers #######################
##################################################################
# Title : Do not use model binding attributes with route handlers
# Category : Usage
# Help Link: https://aka.ms/aspnet/analyzers
dotnet_diagnostic.ASP0003.severity = error
# Title : Do not use action results with route handlers
# Category : Usage
# Help Link: https://aka.ms/aspnet/analyzers
dotnet_diagnostic.ASP0004.severity = error
# Title : Do not place attribute on method called by route handler lambda
# Category : Usage
# Help Link: https://aka.ms/aspnet/analyzers
dotnet_diagnostic.ASP0005.severity = error
# Title : Do not use non-literal sequence numbers
# Category : Usage
# Help Link: https://aka.ms/aspnet/analyzers
dotnet_diagnostic.ASP0006.severity = error
# Title : Route parameter and argument optionality is mismatched
# Category : Usage
# Help Link: https://aka.ms/aspnet/analyzers
dotnet_diagnostic.ASP0007.severity = error
# Title : Do not use ConfigureWebHost with WebApplicationBuilder.Host
# Category : Usage
# Help Link: https://aka.ms/aspnet/analyzers
dotnet_diagnostic.ASP0008.severity = error
# Title : Do not use Configure with WebApplicationBuilder.WebHost
# Category : Usage
# Help Link: https://aka.ms/aspnet/analyzers
dotnet_diagnostic.ASP0009.severity = error
# Title : Do not use UseStartup with WebApplicationBuilder.WebHost
# Category : Usage
# Help Link: https://aka.ms/aspnet/analyzers
dotnet_diagnostic.ASP0010.severity = error
# Title : Suggest using builder.Logging over Host.ConfigureLogging or WebHost.ConfigureLogging
# Category : Usage
# Help Link: https://aka.ms/aspnet/analyzers
dotnet_diagnostic.ASP0011.severity = warning
# Title : Suggest using builder.Services over Host.ConfigureServices or WebHost.ConfigureServices
# Category : Usage
# Help Link: https://aka.ms/aspnet/analyzers
dotnet_diagnostic.ASP0012.severity = warning
# Title : Suggest switching from using Configure methods to WebApplicationBuilder.Configuration
# Category : Usage
# Help Link: https://aka.ms/aspnet/analyzers
dotnet_diagnostic.ASP0013.severity = warning
# Title : Suggest using top level route registrations
# Category : Usage
# Help Link: https://aka.ms/aspnet/analyzers
dotnet_diagnostic.ASP0014.severity = error
# Title : Suggest using IHeaderDictionary properties
# Category : Usage
# Help Link: https://aka.ms/aspnet/analyzers
dotnet_diagnostic.ASP0015.severity = error
# Title : Do not return a value from RequestDelegate
# Category : Usage
# Help Link: https://aka.ms/aspnet/analyzers
dotnet_diagnostic.ASP0016.severity = warning
# Title : Invalid route pattern
# Category : Usage
# Help Link: https://aka.ms/aspnet/analyzers
dotnet_diagnostic.ASP0017.severity = error
# Title : Unused route parameter
# Category : Usage
# Help Link: https://aka.ms/aspnet/analyzers
dotnet_diagnostic.ASP0018.severity = error
# Title : Suggest using IHeaderDictionary.Append or the indexer
# Category : Usage
# Help Link: https://aka.ms/aspnet/analyzers
dotnet_diagnostic.ASP0019.severity = error
# Title : Complex types referenced by route parameters must be parsable
# Category : Usage
# Help Link: https://aka.ms/aspnet/analyzers
dotnet_diagnostic.ASP0020.severity = error
# Title : The return type of the BindAsync method must be ValueTask<T>
# Category : Usage
# Help Link: https://aka.ms/aspnet/analyzers
dotnet_diagnostic.ASP0021.severity = error
# Title : Route conflict detected between route handlers
# Category : Usage
# Help Link: https://aka.ms/aspnet/analyzers
dotnet_diagnostic.ASP0022.severity = error
# Title : Route conflict detected between route handlers
# Category : Usage
# Help Link: https://aka.ms/aspnet/analyzers
dotnet_diagnostic.ASP0023.severity = error
# Title : Route handler has multiple parameters with the [FromBody] attribute
# Category : Usage
# Help Link: https://aka.ms/aspnet/analyzers
dotnet_diagnostic.ASP0024.severity = error
# Title : Use AddAuthorizationBuilder to register authorization services and construct policies
# Category : Usage
# Help Link: https://aka.ms/aspnet/analyzers
dotnet_diagnostic.ASP0025.severity = error
##################################################################
########## Microsoft.VisualStudio.Threading.Analyzers ############
##################################################################
# Title : Avoid legacy thread switching APIs
# Category : Usage
# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD001.md
dotnet_diagnostic.VSTHRD001.severity = warning
# Title : Avoid problematic synchronous waits
# Category : Usage
# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD002.md
dotnet_diagnostic.VSTHRD002.severity = warning
# Title : Avoid awaiting foreign Tasks
# Category : Usage
# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD003.md
dotnet_diagnostic.VSTHRD003.severity = warning
# Title : Await SwitchToMainThreadAsync
# Category : Usage
# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD004.md
dotnet_diagnostic.VSTHRD004.severity = error
# Title : Invoke single-threaded types on Main thread
# Category : Usage
# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD010.md
dotnet_diagnostic.VSTHRD010.severity = warning
# Title : Use AsyncLazy<T>
# Category : Usage
# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD011.md
dotnet_diagnostic.VSTHRD011.severity = error
# Title : Provide JoinableTaskFactory where allowed
# Category : Usage
# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD012.md
dotnet_diagnostic.VSTHRD012.severity = warning
# Title : Avoid async void methods
# Category : Usage
# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD100.md
dotnet_diagnostic.VSTHRD100.severity = error
# Title : Avoid unsupported async delegates
# Category : Usage
# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD101.md
dotnet_diagnostic.VSTHRD101.severity = error
# Title : Implement internal logic asynchronously
# Category : Usage
# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD102.md
dotnet_diagnostic.VSTHRD102.severity = suggestion
# Title : Call async methods when in an async method
# Category : Usage
# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD103.md
# Redundant: CA1849
dotnet_diagnostic.VSTHRD103.severity = none
# Title : Offer async methods
# Category : Usage
# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD104.md
dotnet_diagnostic.VSTHRD104.severity = none
# Title : Avoid method overloads that assume TaskScheduler.Current
# Category : Usage
# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD105.md
dotnet_diagnostic.VSTHRD105.severity = warning
# Title : Use InvokeAsync to raise async events
# Category : Usage
# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD106.md
dotnet_diagnostic.VSTHRD106.severity = warning
# Title : Await Task within using expression
# Category : Usage
# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD107.md
dotnet_diagnostic.VSTHRD107.severity = error
# Title : Assert thread affinity unconditionally
# Category : Usage
# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD108.md
dotnet_diagnostic.VSTHRD108.severity = warning
# Title : Switch instead of assert in async methods
# Category : Usage
# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD109.md
dotnet_diagnostic.VSTHRD109.severity = error
# Title : Observe result of async calls
# Category : Usage
# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD110.md
# Redundant: CS4014, IDE0058
dotnet_diagnostic.VSTHRD110.severity = none
# Title : Use ConfigureAwait(bool)
# Category : Usage
# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD111.md
# Redundant: CA2007
dotnet_diagnostic.VSTHRD111.severity = none
# Title : Implement System.IAsyncDisposable
# Category : Usage
# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD112.md
dotnet_diagnostic.VSTHRD112.severity = suggestion
# Title : Check for System.IAsyncDisposable
# Category : Usage
# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD113.md
dotnet_diagnostic.VSTHRD113.severity = suggestion
# Title : Avoid returning a null Task
# Category : Usage
# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD114.md
dotnet_diagnostic.VSTHRD114.severity = error
# Title : Avoid returning a null Task
# Category : Usage
# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD114.md
dotnet_diagnostic.VSTHRD114.severity = error
# Title : Use "Async" suffix for async methods
# Category : Style
# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD200.md
dotnet_diagnostic.VSTHRD200.severity = none
##################################################################
########### Microsoft.Analyzers.ManagedCodeAnalysis ##############
##################################################################
# .editorconfig file
# Title : Types that own disposable fields should be disposable
# Category : Design
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1001
dotnet_diagnostic.CA1001.severity = error
# Title : Mark assemblies with AssemblyVersionAttribute
# Category : Design
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1016
dotnet_diagnostic.CA1016.severity = error
# Title : Avoid explicitly implementing interfaces on public types
# Category : Design
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1033
dotnet_diagnostic.CA1033.severity = error
# Title : Use base types where appropriate
# Category : Design
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1049
dotnet_diagnostic.CA1049.severity = error
# Title : Do not pinvoke to methods with varargs
# Category : Design
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1060
dotnet_diagnostic.CA1060.severity = error
# Title : Implement IDisposable correctly
# Category : Design
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1063
dotnet_diagnostic.CA1063.severity = error
# Title : Do not raise exceptions in unexpected locations
# Category : Design
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1065
dotnet_diagnostic.CA1065.severity = error
# Title : Avoid duplicate string literals
# Category : Performance
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1301
dotnet_diagnostic.CA1301.severity = error
# Title : Avoid specifying types for members
# Category : Performance
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1311
dotnet_diagnostic.CA1311.severity = error
# Title : Use a correct exception message
# Category : Design
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1400
dotnet_diagnostic.CA1400.severity = error
# Title : Declare P/Invokes correctly
# Category : Design
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1401
dotnet_diagnostic.CA1401.severity = error
# Title : Mark methods as security critical or transparent
# Category : Security
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2100
dotnet_diagnostic.CA2100.severity = error
# Title : Review SQL queries for security vulnerabilities
# Category : Security
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2101
dotnet_diagnostic.CA2101.severity = error
# Title : Avoid unsafe type casts
# Category : Design
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2213
dotnet_diagnostic.CA2213.severity = error
# Title : Types should not extend certain base types
# Category : Design
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2220
dotnet_diagnostic.CA2220.severity = error
# Title : Implement serialization correctly
# Category : Usage
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2231
dotnet_diagnostic.CA2231.severity = error
# Title : Ensure XML comments are accurate
# Category : Documentation
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2237
dotnet_diagnostic.CA2237.severity = error
# Title : Provide XML comments for public members
# Category : Documentation
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2240
dotnet_diagnostic.CA2240.severity = error
# Title : Provide a proper Dispose method
# Category : Design
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2241
dotnet_diagnostic.CA2241.severity = error
##################################################################
########### Microsoft.CodeAnalysis.CSharp.CodeStyle ##############
##################################################################
# .editorconfig file
# Title : Unnecessary using directive
# Category : Style
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0005
dotnet_diagnostic.IDE0005.severity = error
# Title : Use explicit type instead of 'var'
# Category : Style
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0008
dotnet_diagnostic.IDE0008.severity = none
# Title : Add braces for single-line control statements
# Category : Style
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0011
dotnet_diagnostic.IDE0011.severity = none
# Title : Simplify object initialization
# Category : Style
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0017
dotnet_diagnostic.IDE0017.severity = none
# Title : Make field readonly
# Category : Style
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0044
dotnet_diagnostic.IDE0044.severity = error
# Title : Remove unread private members
# Category : Style
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0052
dotnet_diagnostic.IDE0052.severity = error
# Title : Fix formatting
# Category : Style
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055
dotnet_diagnostic.IDE0055.severity = error
dotnet_style_namespace_match_folder = true
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_method_parameters = true
csharp_new_line_between_query_expression_clauses = true
csharp_indent_block_contents = true
csharp_indent_braces = false
csharp_indent_case_contents = true
csharp_indent_case_contents_when_block = false
csharp_indent_labels = flush_left
csharp_indent_switch_labels = true
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_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
csharp_preserve_single_line_blocks = true
csharp_preserve_single_line_statements = false
# Title : Use 'using' statement instead of 'using' declaration
# Category : Style
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0063
dotnet_diagnostic.IDE0063.severity = error
# Title : Convert switch statement to expression
# Category : Style
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0066
dotnet_diagnostic.IDE0066.severity = none
# Title : Simplify conditional expression
# Category : Style
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0071
dotnet_diagnostic.IDE0071.severity = none
##################################################################
############ Microsoft.CodeAnalysis.CSharp.Features ##############
##################################################################
# Title : Remove 'this' qualification
# Category : Style
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0003
dotnet_diagnostic.IDE0003.severity = none
# Title : Collection initialization can be simplified
# Category : Style
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0028
dotnet_diagnostic.IDE0028.severity = none
# Title : Remove unused parameter
# Category : Style
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0060
dotnet_diagnostic.IDE0060.severity = none
##################################################################
############ Microsoft.CodeAnalysis.CSharp.Features ##############
##################################################################
# Title : Declare types in namespaces
# Category : Design
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1050
dotnet_diagnostic.CA1050.severity = error
# Title : Consider using 'StringBuilder.Append(char)' instead of 'StringBuilder.Append(string)' for single character strings
# Category : Performance
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1834
dotnet_diagnostic.CA1834.severity = error
# Title : Instantiate argument exceptions correctly
# Category : Usage
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2208
dotnet_diagnostic.CA2208.severity = none
##################################################################
############ Microsoft.CodeAnalysis.CSharp.Features ##############
##################################################################
# Title : Do not use types from Workspaces assembly in an analyzer
# Category : MicrosoftCodeAnalysisCorrectness
# Help Link: https://github.com/dotnet/roslyn-analyzers/blob/main/docs/rules/RS1022.md
dotnet_diagnostic.RS1022.severity = none
##################################################################
################# Roslynator.CSharp.Analyzers ####################
##################################################################
# Title : Add braces (when expression spans over multiple lines)
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1001
dotnet_diagnostic.RCS1001.severity = error
# Title : Remove braces
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1002
dotnet_diagnostic.RCS1002.severity = error
# Title : Remove braces from if-else
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1004
dotnet_diagnostic.RCS1004.severity = error
# Title : Simplify nested using statement
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1005
dotnet_diagnostic.RCS1005.severity = error
# Title : Merge 'else' with nested 'if'
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1006
dotnet_diagnostic.RCS1006.severity = none
# Title : Convert lambda expression body to expression body
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1010
dotnet_diagnostic.RCS1010.severity = error
# Title : Use nameof operator
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1015
dotnet_diagnostic.RCS1015.severity = error
# Title : Use block body or expression body
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1016
dotnet_diagnostic.RCS1016a.severity = error
# Title : Use block body or expression body
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1016
dotnet_diagnostic.RCS1016b.severity = error
# Title : Convert anonymous method to lambda expression
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1021
dotnet_diagnostic.RCS1021.severity = error
# Title : Remove unnecessary braces in switch section
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1031
dotnet_diagnostic.RCS1031.severity = error
# Title : Remove redundant boolean literal
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1033
dotnet_diagnostic.RCS1033.severity = error
# Title : Remove redundant 'sealed' modifier
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1034
dotnet_diagnostic.RCS1034.severity = error
# Title : Remove unnecessary blank line
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1036
dotnet_diagnostic.RCS1036.severity = error
# Title : Remove trailing white-space
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1037
dotnet_diagnostic.RCS1037.severity = error
# Title : Remove argument list from attribute
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1039
dotnet_diagnostic.RCS1039.severity = error
# Title : Remove enum default underlying type
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1042
dotnet_diagnostic.RCS1042.severity = error
# Title : Remove 'partial' modifier from type with a single part
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1043
dotnet_diagnostic.RCS1043.severity = error
# Title : Asynchronous method name should end with 'Async'
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1046
dotnet_diagnostic.RCS1046.severity = error
# Title : Non-asynchronous method name should not end with 'Async'
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1047
dotnet_diagnostic.RCS1047.severity = error
# Title : Avoid locking on publicly accessible instance
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1059
dotnet_diagnostic.RCS1059.severity = error
# Title : Use coalesce expression instead of conditional expression
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1064
dotnet_diagnostic.RCS1064.severity = error
# Title : Simplify logical negation
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1069
dotnet_diagnostic.RCS1069.severity = error
# Title : Remove redundant default switch section
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1070
dotnet_diagnostic.RCS1070.severity = error
# Title : Remove redundant base constructor call
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1071
dotnet_diagnostic.RCS1071.severity = error
# Title : Convert 'if' to 'return' statement
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1073
dotnet_diagnostic.RCS1073.severity = error
# Title : Remove redundant constructor
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1074
dotnet_diagnostic.RCS1074.severity = error
# Title : Avoid empty catch clause that catches System.Exception
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1075
dotnet_diagnostic.RCS1075.severity = error
# Title : Use '' or 'string.Empty'
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1078
dotnet_diagnostic.RCS1078i.severity = error
# Title : Use 'Count/Length' property instead of 'Any' method
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1080
dotnet_diagnostic.RCS1080.severity = error
# Title : Use auto-implemented property
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1085
dotnet_diagnostic.RCS1085.severity = error
# Title : Declare using directive on top level
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1094
dotnet_diagnostic.RCS1094.severity = error
# Title : Use nameof operator
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1110
dotnet_diagnostic.RCS1110.severity = none
# Title : Use auto-implemented property
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1118
dotnet_diagnostic.RCS1118.severity = error
# Title : Use block body or expression body
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1124
dotnet_diagnostic.RCS1124.severity = error
# Title : Use 'null-coalescing' assignment operator
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1129
dotnet_diagnostic.RCS1129.severity = error
# Title : Use coalesce expression instead of conditional expression
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1134
dotnet_diagnostic.RCS1134.severity = error
# Title : Use block body or expression body
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1143
dotnet_diagnostic.RCS1143.severity = error
# Title : Remove redundant 'as' operator
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1145
dotnet_diagnostic.RCS1145.severity = error
# Title : Use 'string.IsNullOrEmpty'
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1146
dotnet_diagnostic.RCS1146.severity = error
# Title : Use 'null-coalescing' assignment operator
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1151
dotnet_diagnostic.RCS1151.severity = error
# Title : Avoid locking on publicly accessible instance
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1163
dotnet_diagnostic.RCS1163.severity = none
# Title : Simplify boolean comparison
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1168
dotnet_diagnostic.RCS1168.severity = none
# Title : Remove redundant case label
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1169
dotnet_diagnostic.RCS1169.severity = error
# Title : Remove unnecessary parentheses
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1172
dotnet_diagnostic.RCS1172.severity = error
# Title : Convert method to property
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1174
dotnet_diagnostic.RCS1174.severity = error
# Title : Use block body or expression body
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1175
dotnet_diagnostic.RCS1175.severity = none
# Title : Convert method to local function
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1176
dotnet_diagnostic.RCS1176.severity = error
# Title : Use auto-implemented property
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1177
dotnet_diagnostic.RCS1177.severity = error
# Title : Remove redundant argument
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1181
dotnet_diagnostic.RCS1181.severity = none
# Title : Simplify logical negation
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1182
dotnet_diagnostic.RCS1182.severity = error
# Title : Remove redundant 'sealed' modifier
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1187
dotnet_diagnostic.RCS1187.severity = error
# Title : Use 'null-coalescing' assignment operator
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1188
dotnet_diagnostic.RCS1188.severity = error
# Title : Convert lambda expression body to expression body
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1192
dotnet_diagnostic.RCS1192.severity = error
# Title : Use 'null-coalescing' assignment operator
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1194
dotnet_diagnostic.RCS1194.severity = none
# Title : Use block body or expression body
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1198
dotnet_diagnostic.RCS1198.severity = error
# Title : Convert anonymous method to lambda expression
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1203
dotnet_diagnostic.RCS1203.severity = none
# Title : Simplify nested using statement
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1208
dotnet_diagnostic.RCS1208.severity = warning
# Title : Convert 'if' to 'return' statement
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1211
dotnet_diagnostic.RCS1211.severity = error
# Title : Simplify nested using statement
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1248
dotnet_diagnostic.RCS1248a.severity = error
##################################################################
############### Roslynator.Formatting.Analyzers ##################
##################################################################
# Title : Add blank line after embedded statement
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS0001
dotnet_diagnostic.RCS0001.severity = error
# Title : Add blank line after #region
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS0002
dotnet_diagnostic.RCS0002.severity = error
# Title : Add blank line after using directive list
# Category : Analyzer
# Help Link: https://josefpihrt.github.io/docs/roslynator/analyzers/RCS0003
dotnet_diagnostic.RCS0003.severity = error
# Title : Add blank line before #endregion
# Category : Analyzer