forked from knightcrawler-stremio/knightcrawler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.editorconfig
1319 lines (965 loc) · 46.8 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
###############################
# Core EditorConfig Options #
###############################
# All files
[*]
indent_style = space
trim_trailing_whitespace = false
# Front-end dev
[*.{tsx,ts,js,jsx,json,css,scss,sass}]
max_line_length = 130
quote_type = single
# Back-end dev
[*.{cs,csx,vb,vbx}]
max_line_length = 130
# XML project files
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}]
# XML config files
[*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}]
# dot rc config files
[.*rc]
# Migrations
[**/Migrations/*]
generated_code = true
############################
# .NET Coding Conventions #
############################
# See rules documentation - https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/language-rules
# Based on: https://github.com/dotnet/roslyn-analyzers/blob/master/.editorconfig
[*.{cs,vb}]
# Organize usings
dotnet_separate_import_directive_groups = false
dotnet_sort_system_directives_first = true
# this. preferences
# Language keywords vs BCL types preferences
# Parentheses preferences
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
# Modifier preferences
# Field preferences
dotnet_style_readonly_field = true:warning
# Parameter preferences
dotnet_code_quality_unused_parameters = all:warning
# Expression-level preferences
dotnet_style_coalesce_expression = true:suggestion
dotnet_style_collection_initializer = true:suggestion
dotnet_style_explicit_tuple_names = true:suggestion
dotnet_style_null_propagation = true:suggestion
dotnet_style_object_initializer = true:suggestion
dotnet_style_prefer_auto_properties = true:suggestion
dotnet_style_prefer_compound_assignment = true:warning
dotnet_style_prefer_conditional_expression_over_assignment = true:suggestion
dotnet_style_prefer_conditional_expression_over_return = true:suggestion
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
dotnet_style_prefer_inferred_tuple_names = true:suggestion
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
dotnet_style_prefer_simplified_interpolation = true:suggestion
###########################
# Naming Conventions #
###########################
# Style Definitions
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
# Use PascalCase for constant fields
dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
dotnet_naming_symbols.constant_fields.applicable_kinds = field
dotnet_naming_symbols.constant_fields.applicable_accessibilities = *
dotnet_naming_symbols.constant_fields.required_modifiers = const
# Instance fields are camelCase and start with _
# https://github.com/dotnet/roslyn/blob/c9aa4bee022f2c03f741842432cbf563183d9c2c/.editorconfig#L110
dotnet_naming_rule.instance_fields_should_be_camel_case.severity = suggestion
dotnet_naming_rule.instance_fields_should_be_camel_case.symbols = instance_fields
dotnet_naming_rule.instance_fields_should_be_camel_case.style = instance_field_style
dotnet_naming_symbols.instance_fields.applicable_kinds = field
dotnet_naming_style.instance_field_style.capitalization = camel_case
dotnet_naming_style.instance_field_style.required_prefix = _
###########################
# C# Coding Conventions #
###########################
# See rules documentation - https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/language-rules
# Based on: https://github.com/dotnet/roslyn-analyzers/blob/master/.editorconfig
[*.cs]
# var preferences
# Expression-bodied members
csharp_style_expression_bodied_methods = true:suggestion
csharp_style_expression_bodied_constructors = true:suggestion
csharp_style_expression_bodied_operators = true:suggestion
csharp_style_expression_bodied_properties = true:suggestion
csharp_style_expression_bodied_indexers = true:suggestion
csharp_style_expression_bodied_accessors = true:suggestion
# IDE0160: Convert to file-scoped namespace
csharp_style_namespace_declarations = file_scoped:none
# Pattern matching preferences
csharp_style_pattern_matching_over_as_with_null_check = true:warning
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
csharp_style_prefer_switch_expression = true:suggestion
# Null-checking preferences
csharp_style_conditional_delegate_call = true:suggestion
# Modifier preferences
csharp_prefer_static_local_function = true:suggestion
# Code-block preferences
csharp_prefer_braces = true:warning
csharp_prefer_simple_using_statement = true:warning
# Expression-level preferences
csharp_style_unused_value_assignment_preference = discard_variable:warning
csharp_prefer_simple_default_expression = true:suggestion
csharp_style_deconstructed_variable_declaration = true:suggestion
csharp_style_inlined_variable_declaration = true:suggestion
csharp_style_pattern_local_over_anonymous_function = true:suggestion
csharp_style_prefer_index_operator = true:suggestion
csharp_style_prefer_range_operator = true:suggestion
csharp_style_throw_expression = true:suggestion
csharp_style_unused_value_expression_statement_preference = discard_variable:silent
# 'using' directive preferences
csharp_using_directive_placement = outside_namespace:silent
###########################
# C# Formatting Rules #
###########################
# New line preferences
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_anonymous_types = true
csharp_new_line_between_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 = flush_left
csharp_indent_switch_labels = true
# Space preferences
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
# Wrapping preferences
csharp_preserve_single_line_statements = true
csharp_preserve_single_line_blocks = true
###########################################
# Default severity for NET Analyzer rules #
###########################################
# https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/overview#enable-on-build
[*]
# Default severity for analyzer diagnostics with category 'Style' (escalated to build warnings)
dotnet_analyzer_diagnostic.category-style.severity = warning
# Default severity for all IDE code quality rules with category 'CodeQuality' (escalated to build warnings)
dotnet_analyzer_diagnostic.category-codequality.severity = warning
###########################
# Code Style #
###########################
dotnet_diagnostic.asp0020.severity = none
# IDE0005: Remove unnecessary import
dotnet_diagnostic.ide0005.severity = suggestion
# IDE0007: Use 'var' instead of explicit type
dotnet_diagnostic.ide0007.severity = none
# IDE0008: Use explicit type instead of 'var'
dotnet_diagnostic.ide0008.severity = suggestion
# IDE0010: Add missing cases in switch statement
dotnet_diagnostic.ide0010.severity = suggestion
# IDE0021: Use expression body for constructors
dotnet_diagnostic.ide0021.severity = none
# IDE0050: Convert anonymous type to tuple
dotnet_diagnostic.ide0050.severity = suggestion
# IDE0055: Fix formatting
dotnet_diagnostic.ide0055.severity = error
# IDE0058: Remove unnecessary expression value / csharp_style_unused_value_expression_statement_preference
dotnet_diagnostic.ide0058.severity = none
# IDE0063: Use simple 'using' statement / csharp_prefer_simple_using_statement
dotnet_diagnostic.ide0063.severity = suggestion
# IDE0066: Convert switch statement to expression
dotnet_diagnostic.ide0066.severity = suggestion
# IDE0071: Simplify interpolation / dotnet_style_prefer_simplified_interpolation
dotnet_diagnostic.ide0071.severity = suggestion
# IDE1006: Naming rule violation
dotnet_diagnostic.ide1006.severity = error
###########################
# Compiler Messages #
###########################
# CS0168: Compiler Warning (level 3) - The variable 'var' is declared but never used
dotnet_diagnostic.cs0168.severity = error
# CS0219: Compiler Warning (level 3) - The variable 'variable' is assigned but its value is never used
dotnet_diagnostic.cs0219.severity = error
# CS0618: Usage of Obsolette methods
dotnet_diagnostic.cs0618.severity = none
# CS1591: Compiler Warning (level 4) - Missing XML comment for publicly visible type or member
dotnet_diagnostic.cs1591.severity = none
# CS8019: Unnecessary using directive
dotnet_diagnostic.cs8019.severity = suggestion
#==========================
# Nullable Reference types
#==========================
# CS8600: Converting null literal or possible null value to non-nullable type.
dotnet_diagnostic.cs8600.severity = none
# CS8602: Dereference of a possibly null reference.
dotnet_diagnostic.cs8601.severity = none
# CS8602: Dereference of a possibly null reference.
dotnet_diagnostic.cs8602.severity = none
# CS8603: Possible null reference return.
dotnet_diagnostic.cs8603.severity = none
# CS8604: Possible null reference argument.
dotnet_diagnostic.cs8604.severity = none
# CS8605: Unboxing a possibly null value.
dotnet_diagnostic.cs8605.severity = error
# CS8606: Possible null reference assignment to iteration variable
dotnet_diagnostic.cs8606.severity = error
# CS8607: A possible null value may not be passed to a target marked with the [DisallowNull] attribute
dotnet_diagnostic.cs8607.severity = error
# CS8608: Nullability of reference types in type doesn't match overridden member.
dotnet_diagnostic.cs8608.severity = error
# CS8609: Nullability of reference types in return type doesn't match overridden member.
dotnet_diagnostic.cs8609.severity = error
# CS8610: Nullability of reference types in type of parameter doesn't match overridden member.
dotnet_diagnostic.cs8610.severity = error
# CS8611: Nullability of reference types in type of parameter doesn't match partial method declaration.
dotnet_diagnostic.cs8611.severity = error
# CS8612: Nullability of reference types in type doesn't match implicitly implemented member.
dotnet_diagnostic.cs8612.severity = error
# CS8613: Nullability of reference types in return type doesn't match implicitly implemented member.
dotnet_diagnostic.cs8613.severity = error
# CS8614: Nullability of reference types in type of parameter doesn't match implicitly implemented member.
dotnet_diagnostic.cs8614.severity = error
# CS8615: Nullability of reference types in type doesn't match implemented member.
dotnet_diagnostic.cs8615.severity = error
# CS8616: Nullability of reference types in return type doesn't match implemented member.
dotnet_diagnostic.cs8616.severity = error
# CS8617: Nullability of reference types in type of parameter doesn't match implemented member.
dotnet_diagnostic.cs8617.severity = error
# CS8618: Non-nullable property 'LastName' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
dotnet_diagnostic.cs8618.severity = error
# CS8619: Nullability of reference types in value doesn't match target type.
dotnet_diagnostic.cs8619.severity = error
# CS8620: Argument cannot be used for parameter due to differences in the nullability of reference types.
dotnet_diagnostic.cs8620.severity = error
# CS8621: Nullability of reference types in return type doesn't match the target delegate.
dotnet_diagnostic.cs8621.severity = error
# CS8622: Nullability of reference types in type of parameter doesn't match the target delegate.
dotnet_diagnostic.cs8622.severity = error
# CS8624: Argument cannot be used as an output for parameter due to differences in the nullability of reference types.
dotnet_diagnostic.cs8624.severity = error
# CS8625: Cannot convert null literal to non-nullable reference type.
dotnet_diagnostic.cs8625.severity = error
# CS8626: The 'as' operator may produce a null value for a type parameter.
dotnet_diagnostic.cs8626.severity = error
# CS8629: Nullable value type may be null.
dotnet_diagnostic.cs8629.severity = error
# CS8631: The type cannot be used as type parameter in the generic type or method. Nullability of type argument doesn't match constraint type.
dotnet_diagnostic.cs8631.severity = error
# CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
dotnet_diagnostic.cs8632.severity = error
# CS8633: Nullability in constraints for type parameter doesn't match the constraints for type parameter in implicitly implemented interface method.
dotnet_diagnostic.cs8633.severity = error
# CS8634: The type cannot be used as type parameter in the generic type or method. Nullability of type argument doesn't match 'class' constraint.
dotnet_diagnostic.cs8634.severity = error
# CS8638: Conditional access may produce a null value for a type parameter.
dotnet_diagnostic.cs8638.severity = error
# CS8643: Nullability of reference types in explicit interface specifier doesn't match interface implemented by the type.
dotnet_diagnostic.cs8643.severity = error
# CS8644: Type does not implement interface member. Nullability of reference types in interface implemented by the base type doesn't match.
dotnet_diagnostic.cs8644.severity = error
# CS8645: Interface is already listed in the interface list with different nullability of reference types.
dotnet_diagnostic.cs8645.severity = error
# CS8653: A default expression introduces a null value for a type parameter.
dotnet_diagnostic.cs8653.severity = error
# CS8654: A null literal introduces a null value for a type parameter.
dotnet_diagnostic.cs8654.severity = error
# CS8655: The switch expression does not handle some null inputs.
dotnet_diagnostic.cs8655.severity = error
# CS8667: Partial method declarations have inconsistent nullability in constraints for type parameter
dotnet_diagnostic.cs8667.severity = error
# CS8714: The type cannot be used as type parameter in the generic type or method. Nullability of type argument doesn't match 'notnull' constraint.
dotnet_diagnostic.cs8714.severity = error
###########################
# Code Quality #
###########################
# Default analyzed API surface = 'all' (public APIs + non-public APIs)
dotnet_code_quality.api_surface = all
# CA1002: Do not expose generic lists
dotnet_diagnostic.ca1002.severity = suggestion
# CA1024: Use properties where appropriate
dotnet_diagnostic.ca1024.severity = suggestion
# CA1033: Interface methods should be callable by child types
dotnet_diagnostic.ca1033.severity = suggestion
# CA1043: Use integral or string argument for indexers
# Restrict the analyzed API surface for certain analyzers to 'public' (public APIs only).
dotnet_code_quality.ca1043.api_surface = public
# CA1062: Validate arguments of public/protected methods
# An externally visible method dereferences one of its reference arguments without verifying whether that argument is null
# This predates the Nullable Reference Type language features.
dotnet_diagnostic.ca1062.severity = none
# CA1303: Do not pass literals as localized parameters
dotnet_diagnostic.ca1303.severity = none
# CA1307: Specify StringComparison for clarity
dotnet_diagnostic.ca1307.severity = suggestion
# CA1309: Use ordinal string comparison
dotnet_diagnostic.ca1309.severity = suggestion
# CA1707: Identifiers should not contain underscores
dotnet_code_quality.ca1707.api_surface = public
# CA1711: Identifiers should not have incorrect suffix
dotnet_diagnostic.ca1711.severity = suggestion
# CA1715: Identifiers should have correct prefix
# But exclude single letter type parameter names
dotnet_code_quality.ca1715.exclude_single_letter_type_parameters = true
# CA1720: Identifiers should not contain type names
dotnet_code_quality.ca1720.api_surface = public
# CA1725: Parameter names should match base declaration
dotnet_diagnostic.ca1725.severity = suggestion
# CA1801: Unused parameters / IDE0060 / RCS1163
dotnet_diagnostic.ca1801.severity = suggestion
# CA2227: Collection properties should be read only
dotnet_diagnostic.ca2227.severity = suggestion
###########################
# Roslynator Analysers #
###########################
# Formatting analyzers (RCS0xxx) - http://pihrt.net/Roslynator/Analyzers?Query=RCS0
# Common analyzers (RCS1xxx) - http://pihrt.net/Roslynator/Analyzers?Query=RCS1
dotnet_diagnostic.rcs1007.severity = error
# Covered by IDE0007
# RCS1010: Use 'var' instead of explicit type
dotnet_diagnostic.rcs1010.severity = none
dotnet_diagnostic.rcs1013.severity = error
dotnet_diagnostic.rcs1014.severity = error
dotnet_diagnostic.rcs1015.severity = error
dotnet_diagnostic.rcs1019.severity = error
dotnet_diagnostic.rcs1020.severity = error
dotnet_diagnostic.rcs1021.severity = error
dotnet_diagnostic.rcs1024.severity = error
dotnet_diagnostic.rcs1027.severity = error
dotnet_diagnostic.rcs1028.severity = error
dotnet_diagnostic.rcs1032.severity = error
dotnet_diagnostic.rcs1033.severity = error
dotnet_diagnostic.rcs1035.severity = none
dotnet_diagnostic.rcs1036.severity = error
dotnet_diagnostic.rcs1037.severity = error
dotnet_diagnostic.rcs1038.severity = error
dotnet_diagnostic.rcs1039.severity = error
dotnet_diagnostic.rcs1040.severity = error
dotnet_diagnostic.rcs1041.severity = error
dotnet_diagnostic.rcs1044.severity = error
dotnet_diagnostic.rcs1045.severity = error
dotnet_diagnostic.rcs1046.severity = error
dotnet_diagnostic.rcs1047.severity = error
dotnet_diagnostic.rcs1048.severity = error
dotnet_diagnostic.rcs1049.severity = error
dotnet_diagnostic.rcs1052.severity = error
dotnet_diagnostic.rcs1055.severity = error
dotnet_diagnostic.rcs1057.severity = error
dotnet_diagnostic.rcs1058.severity = error
dotnet_diagnostic.rcs1059.severity = error
dotnet_diagnostic.rcs1061.severity = error
dotnet_diagnostic.rcs1062.severity = error
dotnet_diagnostic.rcs1063.severity = error
dotnet_diagnostic.rcs1064.severity = error
dotnet_diagnostic.rcs1066.severity = error
dotnet_diagnostic.rcs1068.severity = error
dotnet_diagnostic.rcs1069.severity = error
dotnet_diagnostic.rcs1070.severity = error
dotnet_diagnostic.rcs1071.severity = error
dotnet_diagnostic.rcs1072.severity = error
dotnet_diagnostic.rcs1073.severity = error
dotnet_diagnostic.rcs1074.severity = error
dotnet_diagnostic.rcs1075.severity = error
dotnet_diagnostic.rcs1076.severity = error
dotnet_diagnostic.rcs1077.severity = error
dotnet_diagnostic.rcs1079.severity = error
dotnet_diagnostic.rcs1081.severity = error
dotnet_diagnostic.rcs1084.severity = error
dotnet_diagnostic.rcs1085.severity = error
dotnet_diagnostic.rcs1088.severity = error
dotnet_diagnostic.rcs1091.severity = error
dotnet_diagnostic.rcs1093.severity = error
dotnet_diagnostic.rcs1094.severity = error
dotnet_diagnostic.rcs1097.severity = error
dotnet_diagnostic.rcs1098.severity = error
dotnet_diagnostic.rcs1099.severity = error
dotnet_diagnostic.rcs1103.severity = error
dotnet_diagnostic.rcs1104.severity = error
dotnet_diagnostic.rcs1105.severity = error
dotnet_diagnostic.rcs1106.severity = error
dotnet_diagnostic.rcs1107.severity = error
dotnet_diagnostic.rcs1110.severity = error
dotnet_diagnostic.rcs1112.severity = error
dotnet_diagnostic.rcs1113.severity = error
dotnet_diagnostic.rcs1114.severity = error
dotnet_diagnostic.rcs1123.severity = error
dotnet_diagnostic.rcs1126.severity = error
dotnet_diagnostic.rcs1127.severity = error
dotnet_diagnostic.rcs1128.severity = error
dotnet_diagnostic.rcs1132.severity = error
# RCS1138: Add summary to documentation comment
dotnet_diagnostic.rcs1138.severity = none
# RCS1139: Add summary element to documentation comment
dotnet_diagnostic.rcs1139.severity = none
dotnet_diagnostic.rcs1146.severity = error
dotnet_diagnostic.rcs1151.severity = error
dotnet_diagnostic.rcs1153.severity = error
dotnet_diagnostic.rcs1154.severity = error
dotnet_diagnostic.rcs1155.severity = error
dotnet_diagnostic.rcs1160.severity = error
dotnet_diagnostic.rcs1162.severity = error
# Covered by CA1801: Unused parameters
dotnet_diagnostic.rcs1163.severity = none
dotnet_diagnostic.rcs1164.severity = error
dotnet_diagnostic.rcs1166.severity = error
# RCS1168: Parameter name differs from base name
dotnet_diagnostic.rcs1168.severity = suggestion
dotnet_diagnostic.rcs1171.severity = error
dotnet_diagnostic.rcs1172.severity = error
dotnet_diagnostic.rcs1173.severity = error
dotnet_diagnostic.rcs1174.severity = error
dotnet_diagnostic.rcs1175.severity = error
dotnet_diagnostic.rcs1179.severity = error
dotnet_diagnostic.rcs1182.severity = error
dotnet_diagnostic.rcs1186.severity = error
dotnet_diagnostic.rcs1187.severity = error
dotnet_diagnostic.rcs1188.severity = error
dotnet_diagnostic.rcs1190.severity = error
dotnet_diagnostic.rcs1191.severity = error
dotnet_diagnostic.rcs1192.severity = error
dotnet_diagnostic.rcs1193.severity = error
dotnet_diagnostic.rcs1194.severity = error
dotnet_diagnostic.rcs1195.severity = error
dotnet_diagnostic.rcs1196.severity = error
dotnet_diagnostic.rcs1197.severity = error
dotnet_diagnostic.rcs1198.severity = error
dotnet_diagnostic.rcs1199.severity = error
dotnet_diagnostic.rcs1201.severity = error
dotnet_diagnostic.rcs1202.severity = error
dotnet_diagnostic.rcs1203.severity = error
dotnet_diagnostic.rcs1204.severity = error
dotnet_diagnostic.rcs1205.severity = error
dotnet_diagnostic.rcs1206.severity = error
dotnet_diagnostic.rcs1208.severity = error
dotnet_diagnostic.rcs1209.severity = error
dotnet_diagnostic.rcs1210.severity = error
dotnet_diagnostic.rcs1211.severity = error
dotnet_diagnostic.rcs1212.severity = error
dotnet_diagnostic.rcs1213.severity = error
dotnet_diagnostic.rcs1214.severity = error
dotnet_diagnostic.rcs1215.severity = error
dotnet_diagnostic.rcs1216.severity = error
dotnet_diagnostic.rcs1218.severity = error
dotnet_diagnostic.rcs1224.severity = error
dotnet_diagnostic.rcs1225.severity = error
dotnet_diagnostic.rcs1229.severity = error
dotnet_diagnostic.rcs1230.severity = error
dotnet_diagnostic.rcs1234.severity = error
dotnet_diagnostic.rcs1235.severity = error
dotnet_diagnostic.rcs1236.severity = error
dotnet_diagnostic.rcs1239.severity = error
dotnet_diagnostic.rcs1240.severity = error
dotnet_diagnostic.rcs1243.severity = error
dotnet_diagnostic.rcs1244.severity = error
# StyleCop.Analyzers.SpecialRules
# XML comment analysis disabled
dotnet_diagnostic.sa0001.severity = none
# Invalid settings file
dotnet_diagnostic.sa0002.severity = none
# StyleCop.Analyzers.SpacingRules
# Keywords should be spaced correctly
dotnet_diagnostic.sa1000.severity = warning
# Commas should be spaced correctly
dotnet_diagnostic.sa1001.severity = warning
# Semicolons should be spaced correctly
dotnet_diagnostic.sa1002.severity = warning
# Symbols should be spaced correctly
dotnet_diagnostic.sa1003.severity = warning
# Documentation lines should begin with single space
dotnet_diagnostic.sa1004.severity = warning
# Single line comments should begin with single space
dotnet_diagnostic.sa1005.severity = warning
# Preprocessor keywords should not be preceded by space
dotnet_diagnostic.sa1006.severity = warning
# Operator keyword should be followed by space
dotnet_diagnostic.sa1007.severity = warning
# Opening parenthesis should be spaced correctly
dotnet_diagnostic.sa1008.severity = warning
# Closing parenthesis should be spaced correctly
dotnet_diagnostic.sa1009.severity = warning
# Opening square brackets should be spaced correctly
dotnet_diagnostic.sa1010.severity = warning
# Closing square brackets should be spaced correctly
dotnet_diagnostic.sa1011.severity = warning
# Opening braces should be spaced correctly
dotnet_diagnostic.sa1012.severity = none
# Closing braces should be spaced correctly
dotnet_diagnostic.sa1013.severity = none
# Opening generic brackets should be spaced correctly
dotnet_diagnostic.sa1014.severity = warning
# Closing generic brackets should be spaced correctly
dotnet_diagnostic.sa1015.severity = warning
# Opening attribute brackets should be spaced correctly
dotnet_diagnostic.sa1016.severity = warning
# Closing attribute brackets should be spaced correctly
dotnet_diagnostic.sa1017.severity = warning
# Nullable type symbols should be spaced correctly
dotnet_diagnostic.sa1018.severity = warning
# Member access symbols should be spaced correctly
dotnet_diagnostic.sa1019.severity = warning
# Increment decrement symbols should be spaced correctly
dotnet_diagnostic.sa1020.severity = warning
# Negative signs should be spaced correctly
dotnet_diagnostic.sa1021.severity = warning
# Positive signs should be spaced correctly
dotnet_diagnostic.sa1022.severity = warning
# Dereference and access of symbols should be spaced correctly
dotnet_diagnostic.sa1023.severity = warning
# Colons should be spaced correctly
dotnet_diagnostic.sa1024.severity = warning
# Code should not contain multiple whitespace in a row
dotnet_diagnostic.sa1025.severity = warning
# Code should not contain space after new or stackalloc keyword in implicitly typed array allocation
dotnet_diagnostic.sa1026.severity = warning
# Use tabs correctly
dotnet_diagnostic.sa1027.severity = warning
# Code should not contain trailing whitespace
dotnet_diagnostic.sa1028.severity = warning
# StyleCop.Analyzers.ReadabilityRules
# Do not prefix calls with base unless local implementation exists
dotnet_diagnostic.sa1100.severity = warning
# Prefix local calls with this
dotnet_diagnostic.sa1101.severity = none
# Query clause should follow previous clause
dotnet_diagnostic.sa1102.severity = warning
# Query clauses should be on separate lines or all on one line
dotnet_diagnostic.sa1103.severity = none
# Query clause should begin on new line when previous clause spans multiple lines
dotnet_diagnostic.sa1104.severity = none
# Query clauses spanning multiple lines should begin on own line
dotnet_diagnostic.sa1105.severity = warning
# Code should not contain empty statements
dotnet_diagnostic.sa1106.severity = warning
# Code should not contain multiple statements on one line
dotnet_diagnostic.sa1107.severity = warning
# Block statements should not contain embedded comments
dotnet_diagnostic.sa1108.severity = warning
# Block statements should not contain embedded regions
dotnet_diagnostic.sa1109.severity = warning
# Opening parenthesis or bracket should be on declaration line
dotnet_diagnostic.sa1110.severity = warning
# Closing parenthesis should be on line of last parameter
dotnet_diagnostic.sa1111.severity = warning
# Closing parenthesis should be on line of opening parenthesis
dotnet_diagnostic.sa1112.severity = warning
# Comma should be on the same line as previous parameter
dotnet_diagnostic.sa1113.severity = warning
# Parameter list should follow declaration
dotnet_diagnostic.sa1114.severity = warning
# Parameter should follow comma
dotnet_diagnostic.sa1115.severity = warning
# Split parameters should start on line after declaration
dotnet_diagnostic.sa1116.severity = warning
# Parameters should be on same line or separate lines
dotnet_diagnostic.sa1117.severity = warning
# Parameter should not span multiple lines
dotnet_diagnostic.sa1118.severity = none
# Comments should contain text
dotnet_diagnostic.sa1120.severity = warning
# Use built-in type alias
dotnet_diagnostic.sa1121.severity = warning
# Use string.Empty for empty strings
dotnet_diagnostic.sa1122.severity = none
# Do not place regions within elements
dotnet_diagnostic.sa1123.severity = warning
# Do not use regions
dotnet_diagnostic.sa1124.severity = warning
# Use shorthand for nullable types
dotnet_diagnostic.sa1125.severity = warning
# Prefix calls correctly
dotnet_diagnostic.sa1126.severity = none
# Generic type constraints should be on their own line
dotnet_diagnostic.sa1127.severity = none
# Put constructor initializers on their own line
dotnet_diagnostic.sa1128.severity = none
# Do not use default value type constructor
dotnet_diagnostic.sa1129.severity = warning
# Use lambda syntax
dotnet_diagnostic.sa1130.severity = warning
# Use readable conditions
dotnet_diagnostic.sa1131.severity = warning
# Do not combine fields
dotnet_diagnostic.sa1132.severity = none
# Do not combine attributes
dotnet_diagnostic.sa1133.severity = warning
# Attributes should not share line
dotnet_diagnostic.sa1134.severity = warning
# Using directives should be qualified
dotnet_diagnostic.sa1135.severity = warning
# Enum values should be on separate lines
dotnet_diagnostic.sa1136.severity = warning
# Elements should have the same indentation
dotnet_diagnostic.sa1137.severity = warning
# Use literal suffix notation instead of casting
dotnet_diagnostic.sa1139.severity = none
# Do not prefix local calls with 'this.'
dotnet_diagnostic.sx1101.severity = none
# StyleCop.Analyzers.OrderingRules
# Using directives should be placed correctly
dotnet_diagnostic.sa1200.severity = none
# Elements should appear in the correct order
dotnet_diagnostic.sa1201.severity = warning
# Elements should be ordered by access
dotnet_diagnostic.sa1202.severity = warning
# Constants should appear before fields
dotnet_diagnostic.sa1203.severity = warning
# Static elements should appear before instance elements
dotnet_diagnostic.sa1204.severity = warning
# Partial elements should declare access
dotnet_diagnostic.sa1205.severity = warning
# Declaration keywords should follow order
dotnet_diagnostic.sa1206.severity = warning
# Protected should come before internal
dotnet_diagnostic.sa1207.severity = warning
# System using directives should be placed before other using directives
dotnet_diagnostic.sa1208.severity = warning
# Using alias directives should be placed after other using directives
dotnet_diagnostic.sa1209.severity = warning
# Using directives should be ordered alphabetically by namespace
dotnet_diagnostic.sa1210.severity = warning
# Using alias directives should be ordered alphabetically by alias name
dotnet_diagnostic.sa1211.severity = warning
# Property accessors should follow order
dotnet_diagnostic.sa1212.severity = warning
# Event accessors should follow order
dotnet_diagnostic.sa1213.severity = warning
# Readonly fields should appear before non-readonly fields
dotnet_diagnostic.sa1214.severity = warning
# Using static directives should be placed at the correct location
dotnet_diagnostic.sa1216.severity = warning
# Using static directives should be ordered alphabetically
dotnet_diagnostic.sa1217.severity = warning
# StyleCop.Analyzers.NamingRules
# Element should begin with upper-case letter
dotnet_diagnostic.sa1300.severity = warning
# Element should begin with lower-case letter
dotnet_diagnostic.sa1301.severity = none
# Interface names should begin with I
dotnet_diagnostic.sa1302.severity = warning
# Const field names should begin with upper-case letter
dotnet_diagnostic.sa1303.severity = warning
# Non-private readonly fields should begin with upper-case letter
dotnet_diagnostic.sa1304.severity = warning
# Field names should not use Hungarian notation
dotnet_diagnostic.sa1305.severity = none
# Field names should begin with lower-case letter
dotnet_diagnostic.sa1306.severity = warning
# Accessible fields should begin with upper-case letter
dotnet_diagnostic.sa1307.severity = warning
# Variable names should not be prefixed
dotnet_diagnostic.sa1308.severity = warning
# Field names should not begin with underscore
dotnet_diagnostic.sa1309.severity = none
# Field names should not contain underscore
dotnet_diagnostic.sa1310.severity = warning
# Static readonly fields should begin with upper-case letter
dotnet_diagnostic.sa1311.severity = warning
# Variable names should begin with lower-case letter
dotnet_diagnostic.sa1312.severity = warning
# Parameter names should begin with lower-case letter
dotnet_diagnostic.sa1313.severity = warning
# Type parameter names should begin with T
dotnet_diagnostic.sa1314.severity = warning
# Field names should begin with underscore
dotnet_diagnostic.sx1309.severity = none
# Static field names should begin with underscore
dotnet_diagnostic.sx1309s.severity = none
# StyleCop.Analyzers.MaintainabilityRules
# Statement should not use unnecessary parenthesis
dotnet_diagnostic.sa1119.severity = warning
# Access modifier should be declared
dotnet_diagnostic.sa1400.severity = warning
# Fields should be private
dotnet_diagnostic.sa1401.severity = none
# File may only contain a single type
dotnet_diagnostic.sa1402.severity = warning
# File may only contain a single namespace
dotnet_diagnostic.sa1403.severity = warning
# Code analysis suppression should have justification
dotnet_diagnostic.sa1404.severity = warning
# Debug.Assert should provide message text
dotnet_diagnostic.sa1405.severity = warning
# Debug.Fail should provide message text
dotnet_diagnostic.sa1406.severity = warning
# Arithmetic expressions should declare precedence
dotnet_diagnostic.sa1407.severity = warning
# Conditional expressions should declare precedence
dotnet_diagnostic.sa1408.severity = warning
# Remove unnecessary code
dotnet_diagnostic.sa1409.severity = warning
# Remove delegate parenthesis when possible
dotnet_diagnostic.sa1410.severity = warning
# Attribute constructor should not use unnecessary parenthesis
dotnet_diagnostic.sa1411.severity = warning
# Store files as UTF-8 with byte order mark
dotnet_diagnostic.sa1412.severity = none
# Use trailing comma in multi-line initializers
dotnet_diagnostic.sa1413.severity = none
# StyleCop.Analyzers.LayoutRules
# Braces for multi-line statements should not share line
dotnet_diagnostic.sa1500.severity = none
# Statement should not be on a single line
dotnet_diagnostic.sa1501.severity = warning
# Element should not be on a single line
dotnet_diagnostic.sa1502.severity = warning
# Braces should not be omitted
dotnet_diagnostic.sa1503.severity = none