-
Notifications
You must be signed in to change notification settings - Fork 2
/
AtcAnalyzerProviderBaseRules.json
12060 lines (12060 loc) · 555 KB
/
AtcAnalyzerProviderBaseRules.json
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
[
{
"Name": "AsyncFixer",
"Rules": [
{
"Code": "AsyncFixer01",
"Title": "Unnecessary async/await usage",
"Link": "https://github.com/semihokur/AsyncFixer/blob/main/README.md#user-content-asyncfixer01unnecessary-asyncawait-usage",
"Description": "There are some async methods where there is no need to use async/await keywords. It is important to detect this kind of misuse because adding the async modifier comes at a price. AsyncFixer automatically removes async/await keywords from those methods."
},
{
"Code": "AsyncFixer02",
"Title": "Long-running or blocking operations inside an async method",
"Link": "https://github.com/semihokur/AsyncFixer/blob/main/README.md#user-content-asyncfixer02long-running-or-blocking-operations-inside-an-async-method",
"Description": "Developers use some potentially long-running or blocking operations inside async methods even though there are corresponding asynchronous versions of these methods in .NET or third-party libraries. Some examples for such operations: Task.Wait(), Task.Result, StreamReader.ReadToEnd(), Thread.Sleep(), etc."
},
{
"Code": "AsyncFixer03",
"Title": "Fire-and-forget async-void methods and delegates",
"Link": "https://github.com/semihokur/AsyncFixer/blob/main/README.md#user-content-asyncfixer03fire-and-forget-async-void-methods-and-delegates",
"Description": "Some async methods and delegates are fire-and-forget, which return void. Unless a method is only called as an event handler, it must be awaitable. Otherwise, it is a code smell because it complicates control flow and makes error detection/correction difficult. Unhandled exceptions in those async-void methods and delegates will crash the process as well."
},
{
"Code": "AsyncFixer04",
"Title": "Fire-and-forget async call inside an using block",
"Link": "https://github.com/semihokur/AsyncFixer/blob/main/README.md#user-content-asyncfixer04fire-and-forget-async-call-inside-an-using-block",
"Description": "Inside a using block, developers insert a fire-and-forget async call which uses a disposable object as a parameter or target object. It can cause potential exceptions or wrong results."
},
{
"Code": "AsyncFixer05",
"Title": "Downcasting from a nested task to an outer task.",
"Link": "https://github.com/semihokur/AsyncFixer/blob/main/README.md#user-content-asyncfixer05downcasting-from-a-nested-task-to-an-outer-task",
"Description": "Downcasting from a nested task to a task or awaiting a nested task is dangerous. There is no way to wait for and get the result of the child task. This usually occurs when mixing async/await keywords with the old threading APIs such as TaskFactory.StartNew."
}
]
},
{
"Name": "Asyncify",
"Rules": [
{
"Code": "AsyncifyInvocation",
"Title": "Invocation",
"Link": "https://github.com/hvanbakel/Asyncify-CSharp",
"Description": "This invocation could benefit from the use of Task async."
},
{
"Code": "AsyncifyVariableAccess",
"Title": "Variable access",
"Link": "https://github.com/hvanbakel/Asyncify-CSharp",
"Description": "This variable access could benefit from the use of Task async."
}
]
},
{
"Name": "Meziantou.Analyzer",
"Rules": [
{
"Code": "MA0001",
"Title": "StringComparison is missing",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0001.md",
"Category": "Usage"
},
{
"Code": "MA0002",
"Title": "IEqualityComparer<string> or IComparer<string> is missing",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0002.md",
"Category": "Usage"
},
{
"Code": "MA0003",
"Title": "Add argument name to improve readability",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0003.md",
"Category": "Style"
},
{
"Code": "MA0004",
"Title": "Use Task.ConfigureAwait(false)",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0004.md",
"Category": "Usage"
},
{
"Code": "MA0005",
"Title": "Use Array.Empty<T>()",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0005.md",
"Category": "Performance"
},
{
"Code": "MA0006",
"Title": "Use String.Equals instead of equality operator",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0006.md",
"Category": "Usage"
},
{
"Code": "MA0007",
"Title": "Add a comma after the last value",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0007.md",
"Category": "Style"
},
{
"Code": "MA0008",
"Title": "Add StructLayoutAttribute",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0008.md",
"Category": "Performance"
},
{
"Code": "MA0009",
"Title": "Add regex evaluation timeout",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0009.md",
"Category": "Security"
},
{
"Code": "MA0010",
"Title": "Mark attributes with AttributeUsageAttribute",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0010.md",
"Category": "Design"
},
{
"Code": "MA0011",
"Title": "IFormatProvider is missing",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0011.md",
"Category": "Usage"
},
{
"Code": "MA0012",
"Title": "Do not raise reserved exception type",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0012.md",
"Category": "Design"
},
{
"Code": "MA0013",
"Title": "Types should not extend System.ApplicationException",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0013.md",
"Category": "Design"
},
{
"Code": "MA0014",
"Title": "Do not raise System.ApplicationException type",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0014.md",
"Category": "Design"
},
{
"Code": "MA0015",
"Title": "Specify the parameter name in ArgumentException",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0015.md",
"Category": "Usage"
},
{
"Code": "MA0016",
"Title": "Prefer return collection abstraction instead of implementation",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0016.md",
"Category": "Design"
},
{
"Code": "MA0017",
"Title": "Abstract types should not have public or internal constructors",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0017.md",
"Category": "Design"
},
{
"Code": "MA0018",
"Title": "Do not declare static members on generic types",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0018.md",
"Category": "Design"
},
{
"Code": "MA0019",
"Title": "Use EventArgs.Empty",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0019.md",
"Category": "Usage"
},
{
"Code": "MA0020",
"Title": "Use direct methods instead of LINQ methods",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0020.md",
"Category": "Performance"
},
{
"Code": "MA0021",
"Title": "Use StringComparer.GetHashCode instead of string.GetHashCode",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0021.md",
"Category": "Usage"
},
{
"Code": "MA0022",
"Title": "Return Task.FromResult instead of returning null",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0022.md",
"Category": "Design"
},
{
"Code": "MA0023",
"Title": "Add RegexOptions.ExplicitCapture",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0023.md",
"Category": "Performance"
},
{
"Code": "MA0024",
"Title": "Use an explicit StringComparer when possible",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0024.md",
"Category": "Usage"
},
{
"Code": "MA0025",
"Title": "Implement the functionality instead of throwing NotImplementedException",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0025.md",
"Category": "Design"
},
{
"Code": "MA0026",
"Title": "Fix TODO comment",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0026.md",
"Category": "Design"
},
{
"Code": "MA0027",
"Title": "Do not remove original exception",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0027.md",
"Category": "Usage"
},
{
"Code": "MA0028",
"Title": "Optimize StringBuilder usage",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0028.md",
"Category": "Performance"
},
{
"Code": "MA0029",
"Title": "Combine LINQ methods",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0029.md",
"Category": "Performance"
},
{
"Code": "MA0030",
"Title": "Remove useless OrderBy call",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0030.md",
"Category": "Performance"
},
{
"Code": "MA0031",
"Title": "Optimize Enumerable.Count() usage",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0031.md",
"Category": "Performance"
},
{
"Code": "MA0032",
"Title": "Use an overload with a CancellationToken argument",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0032.md",
"Category": "Usage"
},
{
"Code": "MA0033",
"Title": "Do not tag instance fields with ThreadStaticAttribute",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0033.md",
"Category": "Design"
},
{
"Code": "MA0035",
"Title": "Do not use dangerous threading methods",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0035.md",
"Category": "Usage"
},
{
"Code": "MA0036",
"Title": "Make class static",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0036.md",
"Category": "Design"
},
{
"Code": "MA0037",
"Title": "Remove empty statement",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0037.md",
"Category": "Usage"
},
{
"Code": "MA0038",
"Title": "Make method static",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0038.md",
"Category": "Design"
},
{
"Code": "MA0039",
"Title": "Do not write your own certificate validation method",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0039.md",
"Category": "Security"
},
{
"Code": "MA0040",
"Title": "Flow the cancellation token",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0040.md",
"Category": "Usage"
},
{
"Code": "MA0041",
"Title": "Make property static",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0041.md",
"Category": "Design"
},
{
"Code": "MA0042",
"Title": "Do not use blocking calls in an async method",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0042.md",
"Category": "Design"
},
{
"Code": "MA0043",
"Title": "Use nameof operator in ArgumentException",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0043.md",
"Category": "Usage"
},
{
"Code": "MA0044",
"Title": "Remove useless ToString call",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0044.md",
"Category": "Performance"
},
{
"Code": "MA0045",
"Title": "Do not use blocking call in a sync method (need to make containing method async)",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0045.md",
"Category": "Design"
},
{
"Code": "MA0046",
"Title": "Use EventHandler<T> to declare events",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0046.md",
"Category": "Design"
},
{
"Code": "MA0047",
"Title": "Declare types in namespaces",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0047.md",
"Category": "Design"
},
{
"Code": "MA0048",
"Title": "File name must match type name",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0048.md",
"Category": "Design"
},
{
"Code": "MA0049",
"Title": "Type name should not match containing namespace",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0049.md",
"Category": "Design"
},
{
"Code": "MA0050",
"Title": "Validate arguments correctly in iterator methods",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0050.md",
"Category": "Design"
},
{
"Code": "MA0051",
"Title": "Method is too long",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0051.md",
"Category": "Design"
},
{
"Code": "MA0052",
"Title": "Replace constant Enum.ToString with nameof",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0052.md",
"Category": "Performance"
},
{
"Code": "MA0053",
"Title": "Make class sealed",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0053.md",
"Category": "Design"
},
{
"Code": "MA0054",
"Title": "Embed the caught exception as innerException",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0054.md",
"Category": "Design"
},
{
"Code": "MA0055",
"Title": "Do not use finalizer",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0055.md",
"Category": "Design"
},
{
"Code": "MA0056",
"Title": "Do not call overridable members in constructor",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0056.md",
"Category": "Design"
},
{
"Code": "MA0057",
"Title": "Class name should end with 'Attribute'",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0057.md",
"Category": "Naming"
},
{
"Code": "MA0058",
"Title": "Class name should end with 'Exception'",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0058.md",
"Category": "Naming"
},
{
"Code": "MA0059",
"Title": "Class name should end with 'EventArgs'",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0059.md",
"Category": "Naming"
},
{
"Code": "MA0060",
"Title": "The value returned by Stream.Read/Stream.ReadAsync is not used",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0060.md",
"Category": "Design"
},
{
"Code": "MA0061",
"Title": "Method overrides should not change parameter defaults",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0061.md",
"Category": "Design"
},
{
"Code": "MA0062",
"Title": "Non-flags enums should not be marked with \"FlagsAttribute\"",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0062.md",
"Category": "Design"
},
{
"Code": "MA0063",
"Title": "Use Where before OrderBy",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0063.md",
"Category": "Performance"
},
{
"Code": "MA0064",
"Title": "Avoid locking on publicly accessible instance",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0064.md",
"Category": "Design"
},
{
"Code": "MA0065",
"Title": "Default ValueType.Equals or HashCode is used for struct's equality",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0065.md",
"Category": "Performance"
},
{
"Code": "MA0066",
"Title": "Hash table unfriendly type is used in a hash table",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0066.md",
"Category": "Performance"
},
{
"Code": "MA0067",
"Title": "Use Guid.Empty",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0067.md",
"Category": "Design"
},
{
"Code": "MA0068",
"Title": "Invalid parameter name for nullable attribute",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0068.md",
"Category": "Design"
},
{
"Code": "MA0069",
"Title": "Non-constant static fields should not be visible",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0069.md",
"Category": "Design"
},
{
"Code": "MA0070",
"Title": "Obsolete attributes should include explanations",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0070.md",
"Category": "Design"
},
{
"Code": "MA0071",
"Title": "Avoid using redundant else",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0071.md",
"Category": "Style"
},
{
"Code": "MA0072",
"Title": "Do not throw from a finally block",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0072.md",
"Category": "Design"
},
{
"Code": "MA0073",
"Title": "Avoid comparison with bool constant",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0073.md",
"Category": "Style"
},
{
"Code": "MA0074",
"Title": "Avoid implicit culture-sensitive methods",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0074.md",
"Category": "Usage"
},
{
"Code": "MA0075",
"Title": "Do not use implicit culture-sensitive ToString",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0075.md",
"Category": "Design"
},
{
"Code": "MA0076",
"Title": "Do not use implicit culture-sensitive ToString in interpolated strings",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0076.md",
"Category": "Design"
},
{
"Code": "MA0077",
"Title": "A class that provides Equals(T) should implement IEquatable<T>",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0077.md",
"Category": "Design"
},
{
"Code": "MA0078",
"Title": "Use 'Cast' instead of 'Select' to cast",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0078.md",
"Category": "Performance"
},
{
"Code": "MA0079",
"Title": "Flow the cancellation token using .WithCancellation()",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0079.md",
"Category": "Usage"
},
{
"Code": "MA0080",
"Title": "Use a cancellation token using .WithCancellation()",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0080.md",
"Category": "Usage"
},
{
"Code": "MA0081",
"Title": "Method overrides should not omit params keyword",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0081.md",
"Category": "Design"
},
{
"Code": "MA0082",
"Title": "NaN should not be used in comparisons",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0082.md",
"Category": "Design"
},
{
"Code": "MA0083",
"Title": "ConstructorArgument parameters should exist in constructors",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0083.md",
"Category": "Design"
},
{
"Code": "MA0084",
"Title": "Local variable should not hide other symbols",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0084.md",
"Category": "Design"
},
{
"Code": "MA0085",
"Title": "Anonymous delegates should not be used to unsubscribe from Events",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0085.md",
"Category": "Usage"
},
{
"Code": "MA0086",
"Title": "Do not throw from a finalizer",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0086.md",
"Category": "Design"
},
{
"Code": "MA0087",
"Title": "Parameters with [DefaultParameterValue] attributes should also be marked [Optional]",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0087.md",
"Category": "Design"
},
{
"Code": "MA0088",
"Title": "Use [DefaultParameterValue] instead of [DefaultValue]",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0088.md",
"Category": "Design"
},
{
"Code": "MA0089",
"Title": "Optimize string method usage",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0089.md",
"Category": "Performance"
},
{
"Code": "MA0090",
"Title": "Remove empty else/finally block",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0090.md",
"Category": "Design"
},
{
"Code": "MA0091",
"Title": "Sender should be 'this' for instance events",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0091.md",
"Category": "Usage"
},
{
"Code": "MA0092",
"Title": "Sender should be 'null' for static events",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0092.md",
"Category": "Usage"
},
{
"Code": "MA0093",
"Title": "EventArgs should not be null",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0093.md",
"Category": "Usage"
},
{
"Code": "MA0094",
"Title": "A class that provides CompareTo(T) should implement IComparable<T>",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0094.md",
"Category": "Design"
},
{
"Code": "MA0095",
"Title": "A class that implements IEquatable<T> should override Equals(object)",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0095.md",
"Category": "Design"
},
{
"Code": "MA0096",
"Title": "A class that implements IComparable<T> should also implement IEquatable<T>",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0096.md",
"Category": "Design"
},
{
"Code": "MA0097",
"Title": "A class that implements IComparable<T> or IComparable should override comparison operators",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0097.md",
"Category": "Design"
},
{
"Code": "MA0098",
"Title": "Use indexer instead of LINQ methods",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0098.md",
"Category": "Performance"
},
{
"Code": "MA0099",
"Title": "Use Explicit enum value instead of 0",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0099.md",
"Category": "Usage"
},
{
"Code": "MA0100",
"Title": "Await task before disposing resources",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0100.md",
"Category": "Usage"
},
{
"Code": "MA0101",
"Title": "String contains an implicit end of line character",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0101.md",
"Category": "Usage"
},
{
"Code": "MA0102",
"Title": "Make member readonly",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0102.md",
"Category": "Design"
},
{
"Code": "MA0103",
"Title": "Use SequenceEqual instead of equality operator",
"Link": "https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0103.md",
"Category": "Usage"
}
]
},
{
"Name": "Microsoft.CodeAnalysis.NetAnalyzers",
"Rules": [
{
"Code": "CA1000",
"Title": "Do not declare static members on generic types",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1000",
"Description": "When a static member of a generic type is called, the type argument must be specified for the type. When a generic instance member that does not support inference is called, the type argument must be specified for the member. In these two cases, the syntax for specifying the type argument is different and easily confused."
},
{
"Code": "CA1001",
"Title": "Types that own disposable fields should be disposable",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1001",
"Description": "A class declares and implements an instance field that is a System.IDisposable type, and the class does not implement IDisposable. A class that declares an IDisposable field indirectly owns an unmanaged resource and should implement the IDisposable interface."
},
{
"Code": "CA1002",
"Title": "Do not expose generic lists",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1002",
"Description": "System.Collections.Generic.List<(Of <(T>)>) is a generic collection that is designed for performance, not inheritance. Therefore, List does not contain any virtual members. The generic collections that are designed for inheritance should be exposed instead."
},
{
"Code": "CA1003",
"Title": "Use generic event handler instances",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1003",
"Description": "A type contains a delegate that returns void, whose signature contains two parameters (the first an object and the second a type that is assignable to EventArgs), and the containing assembly targets Microsoft .NET Framework 2.0."
},
{
"Code": "CA1005",
"Title": "Avoid excessive parameters on generic types",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1005",
"Description": "The more type parameters a generic type contains, the more difficult it is to know and remember what each type parameter represents. It is usually obvious with one type parameter, as in List<T>, and in certain cases that have two type parameters, as in Dictionary<TKey, TValue>. However, if more than two type parameters exist, the difficulty becomes too great for most users."
},
{
"Code": "CA1008",
"Title": "Enums should have zero value",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1008",
"Description": "The default value of an uninitialized enumeration, just as other value types, is zero. A nonflags-attributed enumeration should define a member by using the value of zero so that the default value is a valid value of the enumeration. If an enumeration that has the FlagsAttribute attribute applied defines a zero-valued member, its name should be \"None\" to indicate that no values have been set in the enumeration."
},
{
"Code": "CA1010",
"Title": "Collections should implement generic interface",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1010",
"Description": "To broaden the usability of a collection, implement one of the generic collection interfaces. Then the collection can be used to populate generic collection types."
},
{
"Code": "CA1012",
"Title": "Abstract types should not have constructors",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1012",
"Description": "Constructors on abstract types can be called only by derived types. Because public constructors create instances of a type, and you cannot create instances of an abstract type, an abstract type that has a public constructor is incorrectly designed."
},
{
"Code": "CA1014",
"Title": "Mark assemblies with CLSCompliantAttribute",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1014",
"Description": "The Common Language Specification (CLS) defines naming restrictions, data types, and rules to which assemblies must conform if they will be used across programming languages. Good design dictates that all assemblies explicitly indicate CLS compliance by using CLSCompliantAttribute . If this attribute is not present on an assembly, the assembly is not compliant."
},
{
"Code": "CA1016",
"Title": "Mark assemblies with AssemblyVersionAttribute",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1016",
"Description": ".NET uses the version number to uniquely identify an assembly and to bind to types in strongly named assemblies. The version number is used together with version and publisher policy. By default, applications run only with the assembly version with which they were built."
},
{
"Code": "CA1017",
"Title": "Mark assemblies with ComVisibleAttribute",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1017",
"Description": "ComVisibleAttribute determines how COM clients access managed code. Good design dictates that assemblies explicitly indicate COM visibility. COM visibility can be set for the whole assembly and then overridden for individual types and type members. If this attribute is not present, the contents of the assembly are visible to COM clients."
},
{
"Code": "CA1018",
"Title": "Mark attributes with AttributeUsageAttribute",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1018",
"Description": "When you define a custom attribute, mark it by using AttributeUsageAttribute to indicate where in the source code the custom attribute can be applied. The meaning and intended usage of an attribute will determine its valid locations in code."
},
{
"Code": "CA1019",
"Title": "Define accessors for attribute arguments",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1019",
"Description": "Attributes can define mandatory arguments that must be specified when you apply the attribute to a target. These are also known as positional arguments because they are supplied to attribute constructors as positional parameters. For every mandatory argument, the attribute should also provide a corresponding read-only property so that the value of the argument can be retrieved at execution time. Attributes can also define optional arguments, which are also known as named arguments. These arguments are supplied to attribute constructors by name and should have a corresponding read/write property."
},
{
"Code": "CA1021",
"Title": "Avoid out parameters",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1021",
"Description": "Passing types by reference (using out or ref) requires experience with pointers, understanding how value types and reference types differ, and handling methods with multiple return values. Also, the difference between out and ref parameters is not widely understood."
},
{
"Code": "CA1024",
"Title": "Use properties where appropriate",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1024",
"Description": "A public or protected method has a name that starts with \"Get\", takes no parameters, and returns a value that is not an array. The method might be a good candidate to become a property."
},
{
"Code": "CA1027",
"Title": "Mark enums with FlagsAttribute",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1027",
"Description": "An enumeration is a value type that defines a set of related named constants. Apply FlagsAttribute to an enumeration when its named constants can be meaningfully combined."
},
{
"Code": "CA1028",
"Title": "Enum storage should be Int32",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1028",
"Description": "An enumeration is a value type that defines a set of related named constants. By default, the System.Int32 data type is used to store the constant value. Although you can change this underlying type, it is not required or recommended for most scenarios."
},
{
"Code": "CA1030",
"Title": "Use events where appropriate",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1030",
"Description": "This rule detects methods that have names that ordinarily would be used for events. If a method is called in response to a clearly defined state change, the method should be invoked by an event handler. Objects that call the method should raise events instead of calling the method directly."
},
{
"Code": "CA1031",
"Title": "Do not catch general exception types",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1031",
"Description": "General exceptions should not be caught. Catch a more specific exception, or rethrow the general exception as the last statement in the catch block."
},
{
"Code": "CA1032",
"Title": "Implement standard exception constructors",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1032",
"Description": "Failure to provide the full set of constructors can make it difficult to correctly handle exceptions."
},
{
"Code": "CA1033",
"Title": "Interface methods should be callable by child types",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1033",
"Description": "An unsealed externally visible type provides an explicit method implementation of a public interface and does not provide an alternative externally visible method that has the same name."
},
{
"Code": "CA1034",
"Title": "Nested types should not be visible",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1034",
"Description": "A nested type is a type that is declared in the scope of another type. Nested types are useful to encapsulate private implementation details of the containing type. Used for this purpose, nested types should not be externally visible."
},
{
"Code": "CA1036",
"Title": "Override methods on comparable types",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1036",
"Description": "A public or protected type implements the System.IComparable interface. It does not override Object.Equals nor does it overload the language-specific operator for equality, inequality, less than, or greater than."
},
{
"Code": "CA1040",
"Title": "Avoid empty interfaces",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1040",
"Description": "Interfaces define members that provide a behavior or usage contract. The functionality that is described by the interface can be adopted by any type, regardless of where the type appears in the inheritance hierarchy. A type implements an interface by providing implementations for the members of the interface. An empty interface does not define any members; therefore, it does not define a contract that can be implemented."
},
{
"Code": "CA1041",
"Title": "Provide ObsoleteAttribute message",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1041",
"Description": "A type or member is marked by using a System.ObsoleteAttribute attribute that does not have its ObsoleteAttribute.Message property specified. When a type or member that is marked by using ObsoleteAttribute is compiled, the Message property of the attribute is displayed. This gives the user information about the obsolete type or member."
},
{
"Code": "CA1043",
"Title": "Use integral or string argument for indexers",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1043",
"Description": "Indexers (that is, indexed properties) should use integral or string types for the index. These types are typically used for indexing data structures and they increase the usability of the library. Use of the Object type should be restricted to those cases where the specific integral or string type cannot be specified at design time."
},
{
"Code": "CA1044",
"Title": "Properties should not be write only",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1044",
"Description": "Although it is acceptable and often necessary to have a read-only property, the design guidelines prohibit the use of write-only properties. This is because letting a user set a value, and then preventing the user from viewing that value, does not provide any security. Also, without read access, the state of shared objects cannot be viewed, which limits their usefulness."
},
{
"Code": "CA1045",
"Title": "Do not pass types by reference",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1045",
"Description": "Passing types by reference (using out or ref) requires experience with pointers, understanding how value types and reference types differ, and handling methods that have multiple return values. Library architects who design for a general audience should not expect users to master working with out or ref parameters."
},
{
"Code": "CA1046",
"Title": "Do not overload operator equals on reference types",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1046",
"Description": "For reference types, the default implementation of the equality operator is almost always correct. By default, two references are equal only if they point to the same object."
},
{
"Code": "CA1047",
"Title": "Do not declare protected members in sealed types",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1047",
"Description": "Types declare protected members so that inheriting types can access or override the member. By definition, sealed types cannot be inherited, which means that protected methods on sealed types cannot be called."
},
{
"Code": "CA1050",
"Title": "Declare types in namespaces",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1050",
"Description": "Types are declared in namespaces to prevent name collisions and as a way to organize related types in an object hierarchy."
},
{
"Code": "CA1051",
"Title": "Do not declare visible instance fields",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1051",
"Description": "The primary use of a field should be as an implementation detail. Fields should be private or internal and should be exposed by using properties."
},
{
"Code": "CA1052",
"Title": "Static holder types should be sealed",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1052",
"Description": "A public or protected type contains only static members and is not declared by using the sealed (C# Reference) (NotInheritable) modifier. A type that is not meant to be inherited should be marked by using the sealed modifier to prevent its use as a base type."
},
{
"Code": "CA1053",
"Title": "Static holder types should not have constructors",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1053",
"Description": "A public or nested public type declares only static members and has a public or protected default constructor. The constructor is unnecessary because calling static members does not require an instance of the type. The string overload should call the uniform resource identifier (URI) overload by using the string argument for safety and security."
},
{
"Code": "CA1054",
"Title": "URI parameters should not be strings",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1054",
"Description": "If a method takes a string representation of a URI, a corresponding overload should be provided that takes an instance of the URI class, which provides these services in a safe and secure manner."
},
{
"Code": "CA1055",
"Title": "URI return values should not be strings",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1055",
"Description": "This rule assumes that the method returns a URI. A string representation of a URI is prone to parsing and encoding errors, and can lead to security vulnerabilities. The System.Uri class provides these services in a safe and secure manner."
},
{
"Code": "CA1056",
"Title": "URI properties should not be strings",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1056",
"Description": "This rule assumes that the property represents a Uniform Resource Identifier (URI). A string representation of a URI is prone to parsing and encoding errors, and can lead to security vulnerabilities. The System.Uri class provides these services in a safe and secure manner."
},
{
"Code": "CA1058",
"Title": "Types should not extend certain base types",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1058",
"Description": "An externally visible type extends certain base types. Use one of the alternatives."
},
{
"Code": "CA1060",
"Title": "Move P/Invokes to NativeMethods class",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1060",
"Description": "Platform Invocation methods, such as those that are marked by using the System.Runtime.InteropServices.DllImportAttribute attribute, or methods that are defined by using the Declare keyword in Visual Basic, access unmanaged code. These methods should be of the NativeMethods, SafeNativeMethods, or UnsafeNativeMethods class."
},
{
"Code": "CA1061",
"Title": "Do not hide base class methods",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1061",
"Description": "A method in a base type is hidden by an identically named method in a derived type, when the parameter signature of the derived method differs only by types that are more weakly derived than the corresponding types in the parameter signature of the base method."
},
{
"Code": "CA1062",
"Title": "Validate arguments of public methods",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1062",
"Description": "All reference arguments that are passed to externally visible methods should be checked against null."
},
{
"Code": "CA1063",
"Title": "Implement IDisposable correctly",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1063",
"Description": "All IDisposable types should implement the Dispose pattern correctly."
},
{
"Code": "CA1064",
"Title": "Exceptions should be public",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1064",
"Description": "An internal exception is visible only inside its own internal scope. After the exception falls outside the internal scope, only the base exception can be used to catch the exception. If the internal exception is inherited from Exception, SystemException, or ApplicationException, the external code will not have sufficient information to know what to do with the exception."
},
{
"Code": "CA1065",
"Title": "Do not raise exceptions in unexpected locations",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1065",
"Description": "A method that is not expected to throw exceptions throws an exception."
},
{
"Code": "CA1066",
"Title": "Implement IEquatable when overriding Equals",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1066",
"Description": "A value type overrides Equals method, but does not implement IEquatable<T>."
},
{
"Code": "CA1067",
"Title": "Override Equals when implementing IEquatable",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1067",
"Description": "A type implements IEquatable<T>, but does not override Equals method."
},
{
"Code": "CA1068",
"Title": "CancellationToken parameters must come last",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1068",
"Description": "A method has a CancellationToken parameter that is not the last parameter."
},
{
"Code": "CA1069",
"Title": "Enums should not have duplicate values",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1069",
"Description": "An enumeration has multiple members which are explicitly assigned the same constant value."
},
{
"Code": "CA1070",
"Title": "Do not declare event fields as virtual",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1070",
"Description": "A field-like event was declared as virtual."
},
{
"Code": "CA1200",
"Title": "Avoid using cref tags with a prefix",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1200",
"Description": "The cref attribute in an XML documentation tag means \"code reference\". It specifies that the inner text of the tag is a code element, such as a type, method, or property. Avoid using cref tags with prefixes, because it prevents the compiler from verifying references. It also prevents the Visual Studio integrated development environment (IDE) from finding and updating these symbol references during refactorings."
},
{
"Code": "CA1303",
"Title": "Do not pass literals as localized parameters",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1303",
"Description": "An externally visible method passes a string literal as a parameter to a .NET constructor or method, and that string should be localizable."
},
{
"Code": "CA1304",
"Title": "Specify CultureInfo",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1304",
"Description": "A method or constructor calls a member that has an overload that accepts a System.Globalization.CultureInfo parameter, and the method or constructor does not call the overload that takes the CultureInfo parameter. When a CultureInfo or System.IFormatProvider object is not supplied, the default value that is supplied by the overloaded member might not have the effect that you want in all locales."
},
{
"Code": "CA1305",
"Title": "Specify IFormatProvider",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1305",
"Description": "A method or constructor calls one or more members that have overloads that accept a System.IFormatProvider parameter, and the method or constructor does not call the overload that takes the IFormatProvider parameter. When a System.Globalization.CultureInfo or IFormatProvider object is not supplied, the default value that is supplied by the overloaded member might not have the effect that you want in all locales."
},
{
"Code": "CA1307",
"Title": "Specify StringComparison for clarity",
"Link": "https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1307",
"Description": "A string comparison operation uses a method overload that does not set a StringComparison parameter."
},
{
"Code": "CA1308",
"Title": "Normalize strings to uppercase",