forked from Kentico/KInspector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.editorconfig
1245 lines (828 loc) · 42.5 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
[*.cs]
# ===== Active SonarLint rules =====
# [Category: Bug]
# S2757: "=+" should not be used instead of "+="
dotnet_diagnostic.S2757.severity = warning
# S3168: "async" methods should not return "void"
dotnet_diagnostic.S3168.severity = warning
# S3397: "base.Equals" should not be used to check for reference equality in "Equals" if "base" is not "object"
dotnet_diagnostic.S3397.severity = warning
# S1206: "Equals(Object)" and "GetHashCode()" should be overridden in pairs
dotnet_diagnostic.S1206.severity = warning
# S2328: "GetHashCode" should not reference mutable fields
dotnet_diagnostic.S2328.severity = warning
# S2997: "IDisposables" created in a "using" statement should not be returned
dotnet_diagnostic.S2997.severity = warning
# S2930: "IDisposables" should be disposed
dotnet_diagnostic.S2930.severity = warning
# S2688: "NaN" should not be used in comparisons
dotnet_diagnostic.S2688.severity = warning
# S2995: "Object.ReferenceEquals" should not be used for value types
dotnet_diagnostic.S2995.severity = warning
# S3869: "SafeHandle.DangerousGetHandle" should not be called
dotnet_diagnostic.S3869.severity = warning
# S3456: "string.ToCharArray()" should not be called redundantly
dotnet_diagnostic.S3456.severity = warning
# S2996: "ThreadStatic" fields should not be initialized
dotnet_diagnostic.S2996.severity = warning
# S3005: "ThreadStatic" should not be used on non-static fields
dotnet_diagnostic.S3005.severity = warning
# S2225: "ToString()" method should not return null
dotnet_diagnostic.S2225.severity = warning
# S2251: A "for" loop update clause should move the counter in the right direction
dotnet_diagnostic.S2251.severity = warning
# S3923: All branches in a conditional structure should not have exactly the same implementation
dotnet_diagnostic.S3923.severity = warning
# S3244: Anonymous delegates should not be used to unsubscribe from Events
dotnet_diagnostic.S3244.severity = warning
# S3343: Caller information parameters should come at the end of the parameter list
dotnet_diagnostic.S3343.severity = warning
# S4583: Calls to delegate's method "BeginInvoke" should be paired with calls to "EndInvoke"
dotnet_diagnostic.S4583.severity = warning
# S3249: Classes directly extending "object" should not call "base" in "GetHashCode" or "Equals"
dotnet_diagnostic.S3249.severity = warning
# S3453: Classes should not have only "private" constructors
dotnet_diagnostic.S3453.severity = warning
# S4143: Collection elements should not be replaced unconditionally
dotnet_diagnostic.S4143.severity = warning
# S3981: Collection sizes and array length comparisons should make sense
dotnet_diagnostic.S3981.severity = warning
# S2114: Collections should not be passed as arguments to their own methods
dotnet_diagnostic.S2114.severity = warning
# S2275: Composite format strings should not lead to unexpected behavior at runtime
dotnet_diagnostic.S2275.severity = warning
# S2583: Conditionally executed code should be reachable
dotnet_diagnostic.S2583.severity = warning
# S3172: Delegates should not be subtracted
dotnet_diagnostic.S3172.severity = warning
# S3926: Deserialization methods should be provided for "OptionalField" members
dotnet_diagnostic.S3926.severity = warning
# S1048: Destructors should not throw exceptions
dotnet_diagnostic.S1048.severity = warning
# S2761: Doubled prefix operators "!!" and "~~" should not be used
dotnet_diagnostic.S2761.severity = warning
# S4158: Empty collections should not be accessed or iterated
dotnet_diagnostic.S4158.severity = warning
# S3655: Empty nullable value should not be accessed
dotnet_diagnostic.S3655.severity = warning
# S3984: Exceptions should not be created without being thrown
dotnet_diagnostic.S3984.severity = warning
# S3346: Expressions used in "Debug.Assert" should not produce side effects
dotnet_diagnostic.S3346.severity = warning
# S2345: Flags enumerations should explicitly initialize all their members
dotnet_diagnostic.S2345.severity = warning
# S2252: For-loop conditions should be true at least once
dotnet_diagnostic.S2252.severity = warning
# S4275: Getters and setters should access the expected fields
dotnet_diagnostic.S4275.severity = warning
# S1764: Identical expressions should not be used on both sides of a binary operator
dotnet_diagnostic.S1764.severity = warning
# S2183: Integral numbers should not be shifted by zero or more than their number of bits-1
dotnet_diagnostic.S2183.severity = warning
# S1751: Loops with at most one iteration should be refactored
dotnet_diagnostic.S1751.severity = warning
# S3603: Methods with "Pure" attribute should return a value
dotnet_diagnostic.S3603.severity = warning
# S3887: Mutable, non-private fields should not be "readonly"
dotnet_diagnostic.S3887.severity = warning
# S3889: Neither "Thread.Resume" nor "Thread.Suspend" should be used
dotnet_diagnostic.S3889.severity = warning
# S4586: Non-async "Task/Task<T>" methods should not return null
dotnet_diagnostic.S4586.severity = warning
# S2259: Null pointers should not be dereferenced
dotnet_diagnostic.S2259.severity = warning
# S3610: Nullable type comparison should not be redundant
dotnet_diagnostic.S3610.severity = warning
# S1848: Objects should not be created to be dropped immediately without being used
dotnet_diagnostic.S1848.severity = warning
# S3598: One-way "OperationContract" methods should have "void" return type
dotnet_diagnostic.S3598.severity = warning
# S3466: Optional parameters should be passed to "base" calls
dotnet_diagnostic.S3466.severity = warning
# S2934: Property assignments should not be made for "readonly" fields not constrained to reference types
dotnet_diagnostic.S2934.severity = warning
# S2190: Recursion should not be infinite
dotnet_diagnostic.S2190.severity = warning
# S1862: Related "if/else if" statements should not have the same condition
dotnet_diagnostic.S1862.severity = warning
# S2184: Results of integer division should not be assigned to floating point variables
dotnet_diagnostic.S2184.severity = warning
# S2201: Return values from functions without side effects should not be ignored
dotnet_diagnostic.S2201.severity = warning
# S3449: Right operands of shift operators should be integers
dotnet_diagnostic.S3449.severity = warning
# S3927: Serialization event handlers should be implemented correctly
dotnet_diagnostic.S3927.severity = warning
# S2551: Shared resources should not be used for locking
dotnet_diagnostic.S2551.severity = warning
# S2857: SQL keywords should be delimited by whitespace
dotnet_diagnostic.S2857.severity = warning
# S3263: Static fields should appear in the order they must be initialized
dotnet_diagnostic.S3263.severity = warning
# S3464: Type inheritance should not be recursive
dotnet_diagnostic.S3464.severity = warning
# S3903: Types should be defined in named namespaces
dotnet_diagnostic.S3903.severity = warning
# S2123: Values should not be uselessly incremented
dotnet_diagnostic.S2123.severity = warning
# S1656: Variables should not be self-assigned
dotnet_diagnostic.S1656.severity = warning
# S2306: "async" and "await" should not be used as identifiers
dotnet_diagnostic.S2306.severity = warning
# [Category: Security]
# S3884: "CoSetProxyBlanket" and "CoInitializeSecurity" should not be used
dotnet_diagnostic.S3884.severity = warning
# S2115: A secure password should be used when connecting to a database
dotnet_diagnostic.S2115.severity = warning
# S5547: Cipher algorithms should be robust
dotnet_diagnostic.S5547.severity = warning
# S3329: Cipher Block Chaining IVs should be unpredictable
dotnet_diagnostic.S3329.severity = warning
# S5542: Encryption algorithms should be used with secure mode and padding scheme
dotnet_diagnostic.S5542.severity = warning
# S5445: Insecure temporary file creation methods should not be used
dotnet_diagnostic.S5445.severity = warning
# S5659: JWT should be signed and verified with strong cipher algorithms
dotnet_diagnostic.S5659.severity = warning
# S4433: LDAP connections should be authenticated
dotnet_diagnostic.S4433.severity = warning
# S4211: Members should not have conflicting transparency annotations
dotnet_diagnostic.S4211.severity = warning
# S4423: Weak SSL/TLS protocols should not be used
dotnet_diagnostic.S4423.severity = warning
# S2755: XML parsers should not be vulnerable to XXE attacks
dotnet_diagnostic.S2755.severity = warning
# S2053: Hashes should include an unpredictable salt
dotnet_diagnostic.S2053.severity = warning
# S4830: Server certificates should be verified during SSL/TLS connections
dotnet_diagnostic.S4830.severity = warning
# S4426: Cryptographic keys should be robust
dotnet_diagnostic.S4426.severity = warning
# S5773: Types allowed to be deserialized should be restricted
dotnet_diagnostic.S5773.severity = warning
# [Category: Security Hotspot]
# S5693: Allowing requests with excessive content length is security-sensitive
dotnet_diagnostic.S5693.severity = warning
# S4792: Configuring loggers is security-sensitive
dotnet_diagnostic.S4792.severity = warning
# S3330: Creating cookies without the "HttpOnly" flag is security-sensitive
dotnet_diagnostic.S3330.severity = warning
# S2092: Creating cookies without the "secure" flag is security-sensitive
dotnet_diagnostic.S2092.severity = warning
# S4507: Delivering code in production with debug features activated is security-sensitive
dotnet_diagnostic.S4507.severity = warning
# S5766: Deserializing objects without performing data validation is security-sensitive
dotnet_diagnostic.S5766.severity = warning
# S5753: Disabling ASP.NET "Request Validation" feature is security-sensitive
dotnet_diagnostic.S5753.severity = warning
# S4502: Disabling CSRF protections is security-sensitive
dotnet_diagnostic.S4502.severity = warning
# S5042: Expanding archive files without controlling resource consumption is security-sensitive
dotnet_diagnostic.S5042.severity = warning
# S2077: Formatting SQL queries is security-sensitive
dotnet_diagnostic.S2077.severity = warning
# S2068: Hard-coded credentials are security-sensitive
dotnet_diagnostic.S2068.severity = warning
# S5122: Having a permissive Cross-Origin Resource Sharing policy is security-sensitive
dotnet_diagnostic.S5122.severity = warning
# S4036: Searching OS commands in PATH is security-sensitive
dotnet_diagnostic.S4036.severity = warning
# S2612: Setting loose file permissions is security-sensitive
dotnet_diagnostic.S2612.severity = warning
# S5332: Using clear-text protocols is security-sensitive
dotnet_diagnostic.S5332.severity = warning
# S1313: Using hardcoded IP addresses is security-sensitive
dotnet_diagnostic.S1313.severity = warning
# S2257: Using non-standard cryptographic algorithms is security-sensitive
dotnet_diagnostic.S2257.severity = warning
# S2245: Using pseudorandom number generators (PRNGs) is security-sensitive
dotnet_diagnostic.S2245.severity = warning
# S5443: Using publicly writable directories is security-sensitive
dotnet_diagnostic.S5443.severity = warning
# S4790: Using weak hashing algorithms is security-sensitive
dotnet_diagnostic.S4790.severity = warning
# [Category: Code Smell]
# S3451: "[DefaultValue]" should not be used when "[DefaultParameterValue]" is meant
dotnet_diagnostic.S3451.severity = warning
# S3447: "[Optional]" should not be used on "ref" or "out" parameters
dotnet_diagnostic.S3447.severity = warning
# S1155: "Any()" should be used to test for emptiness
dotnet_diagnostic.S1155.severity = warning
# S2737: "catch" clauses should do more than rethrow
dotnet_diagnostic.S2737.severity = warning
# S4524: "default" clauses should be first or last
dotnet_diagnostic.S4524.severity = warning
# S3217: "Explicit" conversions of "foreach" loops should not be used
dotnet_diagnostic.S3217.severity = warning
# S3971: "GC.SuppressFinalize" should not be called
dotnet_diagnostic.S3971.severity = warning
# S907: "goto" statement should not be used
dotnet_diagnostic.S907.severity = warning
# S2692: "IndexOf" checks should not be for positive numbers
dotnet_diagnostic.S2692.severity = warning
# S3060: "is" should not be used with "this"
dotnet_diagnostic.S3060.severity = warning
# S1123: "Obsolete" attributes should include explanations
dotnet_diagnostic.S1123.severity = warning
# S4214: "P/Invoke" methods should not be visible
dotnet_diagnostic.S4214.severity = warning
# S4061: "params" should be used instead of "varargs"
dotnet_diagnostic.S4061.severity = warning
# S3262: "params" should be used on overrides
dotnet_diagnostic.S3262.severity = warning
# S3600: "params" should not be introduced on overrides
dotnet_diagnostic.S3600.severity = warning
# S3597: "ServiceContract" and "OperationContract" attributes should be used together
dotnet_diagnostic.S3597.severity = warning
# S3963: "static" fields should be initialized inline
dotnet_diagnostic.S3963.severity = warning
# S3256: "string.IsNullOrEmpty" should be used
dotnet_diagnostic.S3256.severity = warning
# S1479: "switch" statements should not have too many "case" clauses
dotnet_diagnostic.S1479.severity = warning
# S5034: "ValueTask" should be consumed correctly
dotnet_diagnostic.S5034.severity = warning
# S1264: A "while" loop should be used instead of a "for" loop
dotnet_diagnostic.S1264.severity = warning
# S3973: A conditionally executed single line should be denoted by indentation
dotnet_diagnostic.S3973.severity = warning
# S3904: Assemblies should have version information
dotnet_diagnostic.S3904.severity = warning
# S3415: Assertion arguments should be passed in the correct order
dotnet_diagnostic.S3415.severity = warning
# S4019: Base class methods should not be hidden
dotnet_diagnostic.S4019.severity = warning
# S1940: Boolean checks should not be inverted
dotnet_diagnostic.S1940.severity = warning
# S3236: Caller information arguments should not be provided explicitly
dotnet_diagnostic.S3236.severity = warning
# S3897: Classes that provide "Equals(<T>)" should implement "IEquatable<T>"
dotnet_diagnostic.S3897.severity = warning
# S3457: Composite format strings should be used correctly
dotnet_diagnostic.S3457.severity = warning
# S3972: Conditionals should start on new lines
dotnet_diagnostic.S3972.severity = warning
# S1116: Empty statements should be removed
dotnet_diagnostic.S1116.severity = warning
# S3264: Events should be invoked
dotnet_diagnostic.S3264.severity = warning
# S3445: Exceptions should not be explicitly rethrown
dotnet_diagnostic.S3445.severity = warning
# S1163: Exceptions should not be thrown in finally blocks
dotnet_diagnostic.S1163.severity = warning
# S2290: Field-like events should not be virtual
dotnet_diagnostic.S2290.severity = warning
# S2346: Flags enumerations zero-value members should be named "warning"
dotnet_diagnostic.S2346.severity = warning
# S3251: Implementations should be provided for "partial" methods
dotnet_diagnostic.S3251.severity = warning
# S1944: Inappropriate casts should not be made
dotnet_diagnostic.S1944.severity = warning
# S4015: Inherited member visibility should not be decreased
dotnet_diagnostic.S4015.severity = warning
# S3444: Interfaces should not simply inherit from base interfaces with colliding members
dotnet_diagnostic.S3444.severity = warning
# S818: Literal suffixes should be upper case
dotnet_diagnostic.S818.severity = warning
# S3400: Methods should not return constants
dotnet_diagnostic.S3400.severity = warning
# S2681: Multiline blocks should be enclosed in curly braces
dotnet_diagnostic.S2681.severity = warning
# S3169: Multiple "OrderBy" calls should not be used
dotnet_diagnostic.S3169.severity = warning
# S3261: Namespaces should not be empty
dotnet_diagnostic.S3261.severity = warning
# S4200: Native methods should be wrapped
dotnet_diagnostic.S4200.severity = warning
# S1199: Nested code blocks should not be used
dotnet_diagnostic.S1199.severity = warning
# S4070: Non-flags enums should not be marked with "FlagsAttribute"
dotnet_diagnostic.S4070.severity = warning
# S3265: Non-flags enums should not be used in bitwise operations
dotnet_diagnostic.S3265.severity = warning
# S4201: Null checks should not be used with "is"
dotnet_diagnostic.S4201.severity = warning
# S3966: Objects should not be disposed more than once
dotnet_diagnostic.S3966.severity = warning
# S2291: Overflow checking should not be disabled for "Enumerable.Sum"
dotnet_diagnostic.S2291.severity = warning
# S1185: Overriding members should do more than simply call the same member in the base class
dotnet_diagnostic.S1185.severity = warning
# S2234: Parameters should be passed in the correct order
dotnet_diagnostic.S2234.severity = warning
# S3450: Parameters with "[DefaultParameterValue]" attributes should also be marked "[Optional]"
dotnet_diagnostic.S3450.severity = warning
# S1905: Redundant casts should not be used
dotnet_diagnostic.S1905.severity = warning
# S1110: Redundant pairs of parentheses should be removed
dotnet_diagnostic.S1110.severity = warning
# S2437: Silly bit operations should not be performed
dotnet_diagnostic.S2437.severity = warning
# S3010: Static fields should not be updated in constructors
dotnet_diagnostic.S3010.severity = warning
# S4635: String offset-based methods should be preferred for finding substrings from offsets
dotnet_diagnostic.S4635.severity = warning
# S3998: Threads should not lock on objects with weak identity
dotnet_diagnostic.S3998.severity = warning
# S1134: Track uses of "FIXME" tags
dotnet_diagnostic.S1134.severity = warning
# S1135: Track uses of "TODO" tags
dotnet_diagnostic.S1135.severity = warning
# S1871: Two branches in a conditional structure should not have exactly the same implementation
dotnet_diagnostic.S1871.severity = warning
# S3443: Type should not be examined on "System.Type" instances
dotnet_diagnostic.S3443.severity = warning
# S3459: Unassigned members should be removed
dotnet_diagnostic.S3459.severity = warning
# S3440: Variables should not be checked against the values they're about to be assigned
dotnet_diagnostic.S3440.severity = warning
# S2479: Whitespace and control characters in string literals should be explicit
dotnet_diagnostic.S2479.severity = warning
# S2376: Write-only properties should not be used
dotnet_diagnostic.S2376.severity = warning
# S3442: "abstract" classes should not have "public" constructors
dotnet_diagnostic.S3442.severity = warning
# S3885: "Assembly.Load" should be used
dotnet_diagnostic.S3885.severity = warning
# S1210: "Equals" and the comparison operators should be overridden when implementing "IComparable"
dotnet_diagnostic.S1210.severity = warning
# S1215: "GC.Collect" should not be called
dotnet_diagnostic.S1215.severity = warning
# S3881: "IDisposable" should be implemented correctly
dotnet_diagnostic.S3881.severity = warning
# S2971: "IEnumerable" LINQs should be simplified
dotnet_diagnostic.S2971.severity = warning
# S3925: "ISerializable" should be implemented correctly
dotnet_diagnostic.S3925.severity = warning
# S4581: "new Guid()" should not be used
dotnet_diagnostic.S4581.severity = warning
# S3875: "operator==" should not be overloaded on reference types
dotnet_diagnostic.S3875.severity = warning
# S3237: "value" parameters should be used
dotnet_diagnostic.S3237.severity = warning
# S1121: Assignments should not be made from within sub-expressions
dotnet_diagnostic.S1121.severity = warning
# S3376: Attribute, EventArgs, and Exception type names should end with the type being extended
dotnet_diagnostic.S3376.severity = warning
# S2589: Boolean expressions should not be gratuitous
dotnet_diagnostic.S2589.severity = warning
# S4035: Classes implementing "IEquatable<T>" should be sealed
dotnet_diagnostic.S4035.severity = warning
# S3776: Cognitive Complexity of methods should not be too high
dotnet_diagnostic.S3776.severity = warning
# S1066: Collapsible "if" statements should be merged
dotnet_diagnostic.S1066.severity = warning
# S1699: Constructors should only call non-overridable methods
dotnet_diagnostic.S1699.severity = warning
# S2372: Exceptions should not be thrown from property getters
dotnet_diagnostic.S2372.severity = warning
# S3877: Exceptions should not be thrown from unexpected methods
dotnet_diagnostic.S3877.severity = warning
# S1104: Fields should not have public accessibility
dotnet_diagnostic.S1104.severity = warning
# S2933: Fields that are only assigned in the constructor should be "readonly"
dotnet_diagnostic.S2933.severity = warning
# S112: General exceptions should never be thrown
dotnet_diagnostic.S112.severity = warning
# S2486: Generic exceptions should not be ignored
dotnet_diagnostic.S2486.severity = warning
# S3246: Generic type parameters should be co/contravariant when possible
dotnet_diagnostic.S3246.severity = warning
# S1939: Inheritance list should not be redundant
dotnet_diagnostic.S1939.severity = warning
# S110: Inheritance tree of classes should not be too deep
dotnet_diagnostic.S110.severity = warning
# S3218: Inner class members should not shadow outer class "static" or type members
dotnet_diagnostic.S3218.severity = warning
# S2696: Instance members should not write to "static" fields
dotnet_diagnostic.S2696.severity = warning
# S3626: Jump statements should not be redundant
dotnet_diagnostic.S3626.severity = warning
# S1117: Local variables should not shadow class fields
dotnet_diagnostic.S1117.severity = warning
# S3267: Loops should be simplified with "LINQ" expressions
dotnet_diagnostic.S3267.severity = warning
# S3604: Member initializer values should not be redundant
dotnet_diagnostic.S3604.severity = warning
# S3220: Method calls should not resolve ambiguously to overloads with "params"
dotnet_diagnostic.S3220.severity = warning
# S4136: Method overloads should be grouped together
dotnet_diagnostic.S4136.severity = warning
# S3427: Method overloads with default parameter values should not overlap
dotnet_diagnostic.S3427.severity = warning
# S1006: Method overrides should not change parameter defaults
dotnet_diagnostic.S1006.severity = warning
# S2953: Methods named "Dispose" should implement "IDisposable.Dispose"
dotnet_diagnostic.S2953.severity = warning
# S1186: Methods should not be empty
dotnet_diagnostic.S1186.severity = warning
# S4144: Methods should not have identical implementations
dotnet_diagnostic.S4144.severity = warning
# S107: Methods should not have too many parameters
dotnet_diagnostic.S107.severity = warning
# S3241: Methods should not return values that are never used
dotnet_diagnostic.S3241.severity = warning
# S2386: Mutable fields should not be "public static"
dotnet_diagnostic.S2386.severity = warning
# S108: Nested blocks of code should not be left empty
dotnet_diagnostic.S108.severity = warning
# S2223: Non-constant static fields should not be visible
dotnet_diagnostic.S2223.severity = warning
# S3260: Non-derived "private" classes and records should be "sealed"
dotnet_diagnostic.S3260.severity = warning
# S927: Parameter names should match base declaration and other partial definitions
dotnet_diagnostic.S927.severity = warning
# S3928: Parameter names used into ArgumentException constructors should match an existing one
dotnet_diagnostic.S3928.severity = warning
# S4457: Parameter validation in "async"/"await" methods should be wrapped
dotnet_diagnostic.S4457.severity = warning
# S4456: Parameter validation in yielding methods should be wrapped
dotnet_diagnostic.S4456.severity = warning
# S1450: Private fields only used as local variables in methods should become local variables
dotnet_diagnostic.S1450.severity = warning
# S2365: Properties should not make collection or array copies
dotnet_diagnostic.S2365.severity = warning
# S2368: Public methods should not have multidimensional array parameters
dotnet_diagnostic.S2368.severity = warning
# S3011: Reflection should not be used to increase accessibility of classes, methods, or fields
dotnet_diagnostic.S3011.severity = warning
# S2219: Runtime type checking should be simplified
dotnet_diagnostic.S2219.severity = warning
# S125: Sections of code should not be commented out
dotnet_diagnostic.S125.severity = warning
# S2178: Short-circuit logic should be used in boolean contexts
dotnet_diagnostic.S2178.severity = warning
# S2743: Static fields should not be used in generic types
dotnet_diagnostic.S2743.severity = warning
# S1643: Strings should not be concatenated using '+' in a loop
dotnet_diagnostic.S1643.severity = warning
# S3358: Ternary operators should not be nested
dotnet_diagnostic.S3358.severity = warning
# S3433: Test method signatures should be correct
dotnet_diagnostic.S3433.severity = warning
# S2187: TestCases should contain tests
dotnet_diagnostic.S2187.severity = warning
# S2699: Tests should include assertions
dotnet_diagnostic.S2699.severity = warning
# S1607: Tests should not be ignored
dotnet_diagnostic.S1607.severity = warning
# S2292: Trivial properties should be auto-implemented
dotnet_diagnostic.S2292.severity = warning
# S2436: Types and methods should not have too many generic parameters
dotnet_diagnostic.S2436.severity = warning
# S101: Types should be named in PascalCase
dotnet_diagnostic.S101.severity = warning
# S4487: Unread "private" fields should be removed
dotnet_diagnostic.S4487.severity = warning
# S1854: Unused assignments should be removed
dotnet_diagnostic.S1854.severity = warning
# S1481: Unused local variables should be removed
dotnet_diagnostic.S1481.severity = warning
# S1172: Unused method parameters should be removed
dotnet_diagnostic.S1172.severity = warning
# S1144: Unused private types or members should be removed
dotnet_diagnostic.S1144.severity = warning
# S2326: Unused type parameters should be removed
dotnet_diagnostic.S2326.severity = warning
# S1075: URIs should not be hardcoded
dotnet_diagnostic.S1075.severity = warning
# S1118: Utility classes should not have public constructors
dotnet_diagnostic.S1118.severity = warning
# S2376: Write-only properties should not be used
dotnet_diagnostic.S2376.severity = warning
# S1125: Boolean literals should not be redundant
dotnet_diagnostic.S1125.severity = warning
# ===== Inactive SonarLint rules (must be explicitly turned off) =====
# [Category: Bug] (All these are excluded because they're not applicable to our solution)
# S4428: "PartCreationPolicyAttribute" should be used with "ExportAttribute"
dotnet_diagnostic.S4428.severity = none
# S4260: "ConstructorArgument" parameters should exist in constructors
dotnet_diagnostic.S4260.severity = none
# S4277: "Shared" parts should not be created with "new"
dotnet_diagnostic.S4277.severity = none
# S4159: Classes should implement their "ExportAttribute" interfaces
dotnet_diagnostic.S4159.severity = none
# S4210: Windows Forms entry points should be marked with STAThread
dotnet_diagnostic.S4210.severity = none
# [Uncategorized]
# S6287: HTTP responses should not be vulnerable to session fixation
dotnet_diagnostic.S6287.severity = none
# S6096: Extracting archives should not lead to zip slip vulnerabilities
dotnet_diagnostic.S6096.severity = none
# S5334: Dynamic code execution should not be vulnerable to injection attacks
dotnet_diagnostic.S5334.severity = none
# S5146: HTTP request redirections should not be open to forging attacks
dotnet_diagnostic.S5146.severity = none
# S5135: Deserialization should not be vulnerable to injection attacks
dotnet_diagnostic.S5135.severity = none
# S5131: Endpoints should not be vulnerable to reflected cross-site scripting (XSS) attacks
dotnet_diagnostic.S5131.severity = none
# S3649: Database queries should not be vulnerable to injection attacks
dotnet_diagnostic.S3649.severity = none
# S2091: XPath expressions should not be vulnerable to injection attacks
dotnet_diagnostic.S2091.severity = none
# S2083: I/O function calls should not be vulnerable to path injection attacks
dotnet_diagnostic.S2083.severity = none
# S2078: LDAP queries should not be vulnerable to injection attacks
dotnet_diagnostic.S2078.severity = none
# S2076: OS commands should not be vulnerable to command injection attacks
dotnet_diagnostic.S2076.severity = none
# S6424: Azure Functions: Restrictions on entity interfaces
dotnet_diagnostic.S6424.severity = none
# S6422: Calls to "async" methods should not be blocking in Azure Functions
dotnet_diagnostic.S6422.severity = none
# S2631: Regular expressions should not be vulnerable to Denial of Service attacks
dotnet_diagnostic.S2631.severity = none
# S2222: Locks should be released
dotnet_diagnostic.S2222.severity = none
# S5144: Server-side requests should not be vulnerable to forging attacks
dotnet_diagnostic.S5144.severity = none
# S6350: Constructing arguments of system commands from user input is security-sensitive
dotnet_diagnostic.S6350.severity = none
# S6420: Reuse client instances rather than creating new ones with each Azure Function invocation
dotnet_diagnostic.S6420.severity = none
# S6419: Azure Functions should be stateless
dotnet_diagnostic.S6419.severity = none
# S5883: OS commands should not be vulnerable to argument injection attacks
dotnet_diagnostic.S5883.severity = none
# S5145: Logging should not be vulnerable to injection attacks
dotnet_diagnostic.S5145.severity = none
# S2931: Classes with "IDisposable" members should implement "IDisposable"
dotnet_diagnostic.S2931.severity = none
# S4462: Calls to "async" methods should not be blocking
dotnet_diagnostic.S4462.severity = none
# S2387: Child class fields should not shadow parent class fields
dotnet_diagnostic.S2387.severity = none
# S1451: Track lack of copyright and license headers
dotnet_diagnostic.S1451.severity = none
# S1147: Exit methods should not be called
dotnet_diagnostic.S1147.severity = none
# S2952: Classes should "Dispose" of members from the classes' own "Dispose" methods
dotnet_diagnostic.S2952.severity = none
# S4829: Reading the Standard Input is security-sensitive
dotnet_diagnostic.S4829.severity = none
# S4823: Using command line arguments is security-sensitive
dotnet_diagnostic.S4823.severity = none
# S4818: Using Sockets is security-sensitive
dotnet_diagnostic.S4818.severity = none
# S4787: Encrypting data is security-sensitive
dotnet_diagnostic.S4787.severity = none
# S4784: Using regular expressions is security-sensitive
dotnet_diagnostic.S4784.severity = none
# S4039: Interface methods should be callable by derived types
dotnet_diagnostic.S4039.severity = none
# S4025: Child class fields should not differ from parent class fields only by capitalization
dotnet_diagnostic.S4025.severity = none
# S4000: Pointers to unmanaged memory should not be visible
dotnet_diagnostic.S4000.severity = none
# S3937: Number patterns should be regular
dotnet_diagnostic.S3937.severity = none
# S3874: "out" and "ref" parameters should not be used
dotnet_diagnostic.S3874.severity = none
# S3353: Unchanged local variables should be "const"
dotnet_diagnostic.S3353.severity = none
# S3216: "ConfigureAwait(false)" should be used
dotnet_diagnostic.S3216.severity = none
# S3215: "interface" instances should not be cast to concrete types
dotnet_diagnostic.S3215.severity = none
# S2701: Literal boolean values should not be used in assertions
dotnet_diagnostic.S2701.severity = none
# S2360: Optional parameters should not be used
dotnet_diagnostic.S2360.severity = none
# S2339: Public constant members should not be used
dotnet_diagnostic.S2339.severity = none
# S2330: Array covariance should not be used
dotnet_diagnostic.S2330.severity = none
# S2302: "nameof" should be used
dotnet_diagnostic.S2302.severity = none
# S2197: Modulus results should not be checked for direct equality
dotnet_diagnostic.S2197.severity = none
# S1994: "for" loop increment clauses should modify the loops' counters
dotnet_diagnostic.S1994.severity = none
# S1821: "switch" statements should not be nested
dotnet_diagnostic.S1821.severity = none
# S1541: Methods and properties should not be too complex
dotnet_diagnostic.S1541.severity = none
# S134: Control flow statements "if", "switch", "for", "foreach", "while", "do" and "try" should not be nested too deeply
dotnet_diagnostic.S134.severity = none
# S131: "switch/Select" statements should contain a "default/Case Else" clauses
dotnet_diagnostic.S131.severity = none
# S126: "if ... else if" constructs should end with "else" clauses
dotnet_diagnostic.S126.severity = none
# S121: Control structures should use curly braces
dotnet_diagnostic.S121.severity = none
# S1067: Expressions should not be too complex
dotnet_diagnostic.S1067.severity = none
# S4564: ASP.NET HTTP request validation feature should not be disabled
dotnet_diagnostic.S4564.severity = none
# S4212: Serialization constructors should be secured
dotnet_diagnostic.S4212.severity = none
# S3949: Calculations should not overflow
dotnet_diagnostic.S3949.severity = none
# S1244: Floating point numbers should not be tested for equality
dotnet_diagnostic.S1244.severity = none
# S881: Increment (++) and decrement (--) operators should not be used in a method call or mixed with other operators in an expression
dotnet_diagnostic.S881.severity = none
# S6423: Azure Functions should log all failures
dotnet_diagnostic.S6423.severity = none
# S6421: Azure Functions should use Structured Error Handling
dotnet_diagnostic.S6421.severity = none
# S6354: Use a testable date/time provider
dotnet_diagnostic.S6354.severity = none
# S4059: Property names should not match get methods
dotnet_diagnostic.S4059.severity = none
# S4057: Locales should be set for data types
dotnet_diagnostic.S4057.severity = none
# S4055: Literals should not be passed as localized parameters
dotnet_diagnostic.S4055.severity = none
# S4050: Operators should be overloaded consistently
dotnet_diagnostic.S4050.severity = none
# S4017: Method signatures should not contain nested generic types
dotnet_diagnostic.S4017.severity = none
# S4016: Enumeration members should not be named "Reserved"
dotnet_diagnostic.S4016.severity = none
# S4005: "System.Uri" arguments should be used instead of strings
dotnet_diagnostic.S4005.severity = none
# S4004: Collection properties should be readonly
dotnet_diagnostic.S4004.severity = none
# S4002: Disposable types should declare finalizers
dotnet_diagnostic.S4002.severity = none
# S3997: String URI overloads should call "System.Uri" overloads
dotnet_diagnostic.S3997.severity = none
# S3996: URI properties should not be strings
dotnet_diagnostic.S3996.severity = none
# S3995: URI return values should not be strings
dotnet_diagnostic.S3995.severity = none
# S3994: URI Parameters should not be strings
dotnet_diagnostic.S3994.severity = none
# S3993: Custom attributes should be marked with "System.AttributeUsageAttribute"
dotnet_diagnostic.S3993.severity = none
# S3992: Assemblies should explicitly specify COM visibility
dotnet_diagnostic.S3992.severity = none
# S3990: Assemblies should be marked as CLS compliant
dotnet_diagnostic.S3990.severity = none