-
-
Notifications
You must be signed in to change notification settings - Fork 260
/
Copy pathDiagnosticRules.Generated.cs
2573 lines (2335 loc) · 156 KB
/
DiagnosticRules.Generated.cs
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
// Copyright (c) .NET Foundation and Contributors. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// <auto-generated>
using System;
using Microsoft.CodeAnalysis;
namespace Roslynator.CSharp
{
public static partial class DiagnosticRules
{
/// <summary>RCS1001</summary>
public static readonly DiagnosticDescriptor AddBracesWhenExpressionSpansOverMultipleLines = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.AddBracesWhenExpressionSpansOverMultipleLines,
title: "Add braces (when expression spans over multiple lines).",
messageFormat: "Add braces to {0} (when expression spans over multiple lines).",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.AddBracesWhenExpressionSpansOverMultipleLines,
customTags: Array.Empty<string>());
/// <summary>RCS1002</summary>
public static readonly DiagnosticDescriptor RemoveBraces = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.RemoveBraces,
title: "Remove braces.",
messageFormat: "Remove braces from {0}.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Hidden,
isEnabledByDefault: false,
description: null,
helpLinkUri: DiagnosticIdentifiers.RemoveBraces,
customTags: Array.Empty<string>());
public static readonly DiagnosticDescriptor RemoveBracesFadeOut = DiagnosticDescriptorFactory.CreateFadeOut(RemoveBraces);
/// <summary>RCS1003</summary>
public static readonly DiagnosticDescriptor AddBracesToIfElseWhenExpressionSpansOverMultipleLines = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.AddBracesToIfElseWhenExpressionSpansOverMultipleLines,
title: "Add braces to if-else (when expression spans over multiple lines).",
messageFormat: "Add braces to if-else (when expression spans over multiple lines).",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.AddBracesToIfElseWhenExpressionSpansOverMultipleLines,
customTags: Array.Empty<string>());
/// <summary>RCS1004</summary>
public static readonly DiagnosticDescriptor RemoveBracesFromIfElse = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.RemoveBracesFromIfElse,
title: "Remove braces from if-else.",
messageFormat: "Remove braces from if-else.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Hidden,
isEnabledByDefault: false,
description: null,
helpLinkUri: DiagnosticIdentifiers.RemoveBracesFromIfElse,
customTags: Array.Empty<string>());
public static readonly DiagnosticDescriptor RemoveBracesFromIfElseFadeOut = DiagnosticDescriptorFactory.CreateFadeOut(RemoveBracesFromIfElse);
/// <summary>RCS1005</summary>
public static readonly DiagnosticDescriptor SimplifyNestedUsingStatement = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.SimplifyNestedUsingStatement,
title: "Simplify nested using statement.",
messageFormat: "Simplify nested using statement.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Hidden,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.SimplifyNestedUsingStatement,
customTags: Array.Empty<string>());
public static readonly DiagnosticDescriptor SimplifyNestedUsingStatementFadeOut = DiagnosticDescriptorFactory.CreateFadeOut(SimplifyNestedUsingStatement);
/// <summary>RCS1006</summary>
public static readonly DiagnosticDescriptor MergeElseWithNestedIf = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.MergeElseWithNestedIf,
title: "Merge 'else' with nested 'if'.",
messageFormat: "Merge 'else' with nested 'if'.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Hidden,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.MergeElseWithNestedIf,
customTags: Array.Empty<string>());
public static readonly DiagnosticDescriptor MergeElseWithNestedIfFadeOut = DiagnosticDescriptorFactory.CreateFadeOut(MergeElseWithNestedIf);
/// <summary>RCS1007</summary>
public static readonly DiagnosticDescriptor AddBraces = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.AddBraces,
title: "Add braces.",
messageFormat: "Add braces to {0}.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: false,
description: null,
helpLinkUri: DiagnosticIdentifiers.AddBraces,
customTags: Array.Empty<string>());
/// <summary>RCS1008</summary>
public static readonly DiagnosticDescriptor UseExplicitTypeInsteadOfVarWhenTypeIsNotObvious = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.UseExplicitTypeInsteadOfVarWhenTypeIsNotObvious,
title: "Use explicit type instead of 'var' (when the type is not obvious).",
messageFormat: "Use explicit type instead of 'var'.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Hidden,
isEnabledByDefault: false,
description: null,
helpLinkUri: DiagnosticIdentifiers.UseExplicitTypeInsteadOfVarWhenTypeIsNotObvious,
customTags: Array.Empty<string>());
/// <summary>RCS1009</summary>
public static readonly DiagnosticDescriptor UseExplicitTypeInsteadOfVarInForEach = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.UseExplicitTypeInsteadOfVarInForEach,
title: "Use explicit type instead of 'var' (foreach variable).",
messageFormat: "Use explicit type instead of 'var'.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Hidden,
isEnabledByDefault: false,
description: null,
helpLinkUri: DiagnosticIdentifiers.UseExplicitTypeInsteadOfVarInForEach,
customTags: Array.Empty<string>());
/// <summary>RCS1010</summary>
public static readonly DiagnosticDescriptor UseVarInsteadOfExplicitTypeWhenTypeIsObvious = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.UseVarInsteadOfExplicitTypeWhenTypeIsObvious,
title: "Use 'var' instead of explicit type (when the type is obvious).",
messageFormat: "Use 'var' instead of explicit type.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Hidden,
isEnabledByDefault: false,
description: null,
helpLinkUri: DiagnosticIdentifiers.UseVarInsteadOfExplicitTypeWhenTypeIsObvious,
customTags: WellKnownDiagnosticTags.Unnecessary);
/// <summary>RCS1012</summary>
public static readonly DiagnosticDescriptor UseExplicitTypeInsteadOfVarWhenTypeIsObvious = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.UseExplicitTypeInsteadOfVarWhenTypeIsObvious,
title: "Use explicit type instead of 'var' (when the type is obvious).",
messageFormat: "Use explicit type instead of 'var'.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Hidden,
isEnabledByDefault: false,
description: null,
helpLinkUri: DiagnosticIdentifiers.UseExplicitTypeInsteadOfVarWhenTypeIsObvious,
customTags: Array.Empty<string>());
/// <summary>RCS1013</summary>
public static readonly DiagnosticDescriptor UsePredefinedType = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.UsePredefinedType,
title: "Use predefined type.",
messageFormat: "Use predefined type.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: false,
description: null,
helpLinkUri: DiagnosticIdentifiers.UsePredefinedType,
customTags: WellKnownDiagnosticTags.Unnecessary);
/// <summary>RCS1014</summary>
public static readonly DiagnosticDescriptor UseExplicitlyOrImplicitlyTypedArray = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.UseExplicitlyOrImplicitlyTypedArray,
title: "Use explicitly/implicitly typed array.",
messageFormat: "Use {0} typed array.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: false,
description: null,
helpLinkUri: DiagnosticIdentifiers.UseExplicitlyOrImplicitlyTypedArray,
customTags: Array.Empty<string>());
/// <summary>RCS1015</summary>
public static readonly DiagnosticDescriptor UseNameOfOperator = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.UseNameOfOperator,
title: "Use nameof operator.",
messageFormat: "Use nameof operator.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.UseNameOfOperator,
customTags: Array.Empty<string>());
public static readonly DiagnosticDescriptor UseNameOfOperatorFadeOut = DiagnosticDescriptorFactory.CreateFadeOut(UseNameOfOperator);
/// <summary>RCS1016</summary>
public static readonly DiagnosticDescriptor UseBlockBodyOrExpressionBody = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.UseBlockBodyOrExpressionBody,
title: "Use block body or expression body.",
messageFormat: "Use {0} body.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Hidden,
isEnabledByDefault: false,
description: null,
helpLinkUri: DiagnosticIdentifiers.UseBlockBodyOrExpressionBody,
customTags: Array.Empty<string>());
/// <summary>RCS1018</summary>
public static readonly DiagnosticDescriptor AddOrRemoveAccessibilityModifiers = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.AddOrRemoveAccessibilityModifiers,
title: "Add/remove accessibility modifiers.",
messageFormat: "{0} accessibility modifiers.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: false,
description: null,
helpLinkUri: DiagnosticIdentifiers.AddOrRemoveAccessibilityModifiers,
customTags: Array.Empty<string>());
/// <summary>RCS1019</summary>
public static readonly DiagnosticDescriptor OrderModifiers = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.OrderModifiers,
title: "Order modifiers.",
messageFormat: "Order modifiers.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: false,
description: null,
helpLinkUri: DiagnosticIdentifiers.OrderModifiers,
customTags: Array.Empty<string>());
/// <summary>RCS1020</summary>
public static readonly DiagnosticDescriptor SimplifyNullableOfT = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.SimplifyNullableOfT,
title: "Simplify Nullable<T> to T?.",
messageFormat: "Simplify Nullable<T> to T?.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.SimplifyNullableOfT,
customTags: WellKnownDiagnosticTags.Unnecessary);
/// <summary>RCS1021</summary>
public static readonly DiagnosticDescriptor ConvertLambdaExpressionBodyToExpressionBody = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.ConvertLambdaExpressionBodyToExpressionBody,
title: "Convert lambda expression body to expression body.",
messageFormat: "Use expression-bodied lambda.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.ConvertLambdaExpressionBodyToExpressionBody,
customTags: Array.Empty<string>());
public static readonly DiagnosticDescriptor ConvertLambdaExpressionBodyToExpressionBodyFadeOut = DiagnosticDescriptorFactory.CreateFadeOut(ConvertLambdaExpressionBodyToExpressionBody);
/// <summary>RCS1031</summary>
public static readonly DiagnosticDescriptor RemoveUnnecessaryBracesInSwitchSection = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.RemoveUnnecessaryBracesInSwitchSection,
title: "Remove unnecessary braces in switch section.",
messageFormat: "Remove unnecessary braces.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Hidden,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.RemoveUnnecessaryBracesInSwitchSection,
customTags: WellKnownDiagnosticTags.Unnecessary);
public static readonly DiagnosticDescriptor RemoveUnnecessaryBracesInSwitchSectionFadeOut = DiagnosticDescriptorFactory.CreateFadeOut(RemoveUnnecessaryBracesInSwitchSection);
/// <summary>RCS1032</summary>
public static readonly DiagnosticDescriptor RemoveRedundantParentheses = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.RemoveRedundantParentheses,
title: "Remove redundant parentheses.",
messageFormat: "Remove redundant parentheses.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.RemoveRedundantParentheses,
customTags: Array.Empty<string>());
public static readonly DiagnosticDescriptor RemoveRedundantParenthesesFadeOut = DiagnosticDescriptorFactory.CreateFadeOut(RemoveRedundantParentheses);
/// <summary>RCS1033</summary>
public static readonly DiagnosticDescriptor RemoveRedundantBooleanLiteral = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.RemoveRedundantBooleanLiteral,
title: "Remove redundant boolean literal.",
messageFormat: "Remove redundant '{0}'.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.RemoveRedundantBooleanLiteral,
customTags: WellKnownDiagnosticTags.Unnecessary);
/// <summary>RCS1034</summary>
public static readonly DiagnosticDescriptor RemoveRedundantSealedModifier = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.RemoveRedundantSealedModifier,
title: "Remove redundant 'sealed' modifier.",
messageFormat: "Remove redundant 'sealed' modifier.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Hidden,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.RemoveRedundantSealedModifier,
customTags: WellKnownDiagnosticTags.Unnecessary);
/// <summary>RCS1035</summary>
public static readonly DiagnosticDescriptor RemoveRedundantCommaInInitializer = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.RemoveRedundantCommaInInitializer,
title: "Remove redundant comma in initializer.",
messageFormat: "([deprecated] Use RCS1260 instead) Remove redundant comma in initializer.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Hidden,
isEnabledByDefault: false,
description: null,
helpLinkUri: DiagnosticIdentifiers.RemoveRedundantCommaInInitializer,
customTags: WellKnownDiagnosticTags.Unnecessary);
/// <summary>RCS1036</summary>
public static readonly DiagnosticDescriptor RemoveUnnecessaryBlankLine = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.RemoveUnnecessaryBlankLine,
title: "Remove unnecessary blank line.",
messageFormat: "Remove unnecessary blank line.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.RemoveUnnecessaryBlankLine,
customTags: Array.Empty<string>());
/// <summary>RCS1037</summary>
public static readonly DiagnosticDescriptor RemoveTrailingWhitespace = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.RemoveTrailingWhitespace,
title: "Remove trailing white-space.",
messageFormat: "Remove trailing white-space.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.RemoveTrailingWhitespace,
customTags: Array.Empty<string>());
/// <summary>RCS1038</summary>
public static readonly DiagnosticDescriptor RemoveEmptyStatement = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.RemoveEmptyStatement,
title: "Remove empty statement.",
messageFormat: "([deprecated] Use RCS1259 instead) Remove empty statement.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: false,
description: null,
helpLinkUri: DiagnosticIdentifiers.RemoveEmptyStatement,
customTags: WellKnownDiagnosticTags.Unnecessary);
/// <summary>RCS1039</summary>
public static readonly DiagnosticDescriptor RemoveArgumentListFromAttribute = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.RemoveArgumentListFromAttribute,
title: "Remove argument list from attribute.",
messageFormat: "Remove argument list from attribute.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Hidden,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.RemoveArgumentListFromAttribute,
customTags: WellKnownDiagnosticTags.Unnecessary);
/// <summary>RCS1040</summary>
public static readonly DiagnosticDescriptor RemoveEmptyElseClause = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.RemoveEmptyElseClause,
title: "Remove empty 'else' clause.",
messageFormat: "([deprecated] Use RCS1259 instead) Remove empty 'else' clause.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Hidden,
isEnabledByDefault: false,
description: null,
helpLinkUri: DiagnosticIdentifiers.RemoveEmptyElseClause,
customTags: WellKnownDiagnosticTags.Unnecessary);
/// <summary>RCS1041</summary>
public static readonly DiagnosticDescriptor RemoveEmptyInitializer = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.RemoveEmptyInitializer,
title: "Remove empty initializer.",
messageFormat: "([deprecated] Use RCS1259 instead) Remove empty initializer.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: false,
description: null,
helpLinkUri: DiagnosticIdentifiers.RemoveEmptyInitializer,
customTags: WellKnownDiagnosticTags.Unnecessary);
/// <summary>RCS1042</summary>
public static readonly DiagnosticDescriptor RemoveEnumDefaultUnderlyingType = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.RemoveEnumDefaultUnderlyingType,
title: "Remove enum default underlying type.",
messageFormat: "Remove enum default underlying type.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Hidden,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.RemoveEnumDefaultUnderlyingType,
customTags: WellKnownDiagnosticTags.Unnecessary);
/// <summary>RCS1043</summary>
public static readonly DiagnosticDescriptor RemovePartialModifierFromTypeWithSinglePart = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.RemovePartialModifierFromTypeWithSinglePart,
title: "Remove 'partial' modifier from type with a single part.",
messageFormat: "Remove 'partial' modifier from type with a single part.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Hidden,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.RemovePartialModifierFromTypeWithSinglePart,
customTags: WellKnownDiagnosticTags.Unnecessary);
/// <summary>RCS1044</summary>
public static readonly DiagnosticDescriptor RemoveOriginalExceptionFromThrowStatement = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.RemoveOriginalExceptionFromThrowStatement,
title: "Remove original exception from throw statement.",
messageFormat: "Remove original exception from throw statement.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Warning,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.RemoveOriginalExceptionFromThrowStatement,
customTags: WellKnownDiagnosticTags.Unnecessary);
/// <summary>RCS1046</summary>
public static readonly DiagnosticDescriptor AsynchronousMethodNameShouldEndWithAsync = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.AsynchronousMethodNameShouldEndWithAsync,
title: "Asynchronous method name should end with 'Async'.",
messageFormat: "Add suffix 'Async' to asynchronous method name.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: false,
description: null,
helpLinkUri: DiagnosticIdentifiers.AsynchronousMethodNameShouldEndWithAsync,
customTags: Array.Empty<string>());
/// <summary>RCS1047</summary>
public static readonly DiagnosticDescriptor NonAsynchronousMethodNameShouldNotEndWithAsync = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.NonAsynchronousMethodNameShouldNotEndWithAsync,
title: "Non-asynchronous method name should not end with 'Async'.",
messageFormat: "Remove suffix 'Async' from non-asynchronous method name.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.NonAsynchronousMethodNameShouldNotEndWithAsync,
customTags: Array.Empty<string>());
public static readonly DiagnosticDescriptor NonAsynchronousMethodNameShouldNotEndWithAsyncFadeOut = DiagnosticDescriptorFactory.CreateFadeOut(NonAsynchronousMethodNameShouldNotEndWithAsync);
/// <summary>RCS1048</summary>
public static readonly DiagnosticDescriptor UseLambdaExpressionInsteadOfAnonymousMethod = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.UseLambdaExpressionInsteadOfAnonymousMethod,
title: "Use lambda expression instead of anonymous method.",
messageFormat: "Use lambda expression instead of anonymous method.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.UseLambdaExpressionInsteadOfAnonymousMethod,
customTags: Array.Empty<string>());
public static readonly DiagnosticDescriptor UseLambdaExpressionInsteadOfAnonymousMethodFadeOut = DiagnosticDescriptorFactory.CreateFadeOut(UseLambdaExpressionInsteadOfAnonymousMethod);
/// <summary>RCS1049</summary>
public static readonly DiagnosticDescriptor SimplifyBooleanComparison = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.SimplifyBooleanComparison,
title: "Simplify boolean comparison.",
messageFormat: "Simplify boolean comparison.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.SimplifyBooleanComparison,
customTags: Array.Empty<string>());
public static readonly DiagnosticDescriptor SimplifyBooleanComparisonFadeOut = DiagnosticDescriptorFactory.CreateFadeOut(SimplifyBooleanComparison);
/// <summary>RCS1050</summary>
public static readonly DiagnosticDescriptor IncludeParenthesesWhenCreatingNewObject = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.IncludeParenthesesWhenCreatingNewObject,
title: "Include/omit parentheses when creating new object.",
messageFormat: "{0} parentheses when creating new object.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: false,
description: null,
helpLinkUri: DiagnosticIdentifiers.IncludeParenthesesWhenCreatingNewObject,
customTags: WellKnownDiagnosticTags.Unnecessary);
/// <summary>RCS1051</summary>
public static readonly DiagnosticDescriptor AddOrRemoveParenthesesFromConditionInConditionalOperator = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.AddOrRemoveParenthesesFromConditionInConditionalOperator,
title: "Add/remove parentheses from condition in conditional operator.",
messageFormat: "{0} parentheses {1} condition.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: false,
description: null,
helpLinkUri: DiagnosticIdentifiers.AddOrRemoveParenthesesFromConditionInConditionalOperator,
customTags: Array.Empty<string>());
/// <summary>RCS1052</summary>
public static readonly DiagnosticDescriptor DeclareEachAttributeSeparately = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.DeclareEachAttributeSeparately,
title: "Declare each attribute separately.",
messageFormat: "Declare each attribute separately.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: false,
description: null,
helpLinkUri: DiagnosticIdentifiers.DeclareEachAttributeSeparately,
customTags: Array.Empty<string>());
/// <summary>RCS1055</summary>
public static readonly DiagnosticDescriptor AvoidSemicolonAtEndOfDeclaration = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.AvoidSemicolonAtEndOfDeclaration,
title: "Avoid semicolon at the end of declaration.",
messageFormat: "Remove semicolon from the end of declaration.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Hidden,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.AvoidSemicolonAtEndOfDeclaration,
customTags: WellKnownDiagnosticTags.Unnecessary);
/// <summary>RCS1056</summary>
public static readonly DiagnosticDescriptor AvoidUsageOfUsingAliasDirective = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.AvoidUsageOfUsingAliasDirective,
title: "Avoid usage of using alias directive.",
messageFormat: "Avoid usage of using alias directive.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: false,
description: null,
helpLinkUri: DiagnosticIdentifiers.AvoidUsageOfUsingAliasDirective,
customTags: Array.Empty<string>());
/// <summary>RCS1058</summary>
public static readonly DiagnosticDescriptor UseCompoundAssignment = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.UseCompoundAssignment,
title: "Use compound assignment.",
messageFormat: "Use compound assignment.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.UseCompoundAssignment,
customTags: Array.Empty<string>());
public static readonly DiagnosticDescriptor UseCompoundAssignmentFadeOut = DiagnosticDescriptorFactory.CreateFadeOut(UseCompoundAssignment);
/// <summary>RCS1059</summary>
public static readonly DiagnosticDescriptor AvoidLockingOnPubliclyAccessibleInstance = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.AvoidLockingOnPubliclyAccessibleInstance,
title: "Avoid locking on publicly accessible instance.",
messageFormat: "Lock on private field instead of locking on '{0}'.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Warning,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.AvoidLockingOnPubliclyAccessibleInstance,
customTags: Array.Empty<string>());
/// <summary>RCS1060</summary>
public static readonly DiagnosticDescriptor DeclareEachTypeInSeparateFile = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.DeclareEachTypeInSeparateFile,
title: "Declare each type in separate file.",
messageFormat: "Declare each type in separate file.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: false,
description: null,
helpLinkUri: DiagnosticIdentifiers.DeclareEachTypeInSeparateFile,
customTags: Array.Empty<string>());
/// <summary>RCS1061</summary>
public static readonly DiagnosticDescriptor MergeIfWithNestedIf = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.MergeIfWithNestedIf,
title: "Merge 'if' with nested 'if'.",
messageFormat: "Merge 'if' with nested 'if'.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Hidden,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.MergeIfWithNestedIf,
customTags: Array.Empty<string>());
public static readonly DiagnosticDescriptor MergeIfWithNestedIfFadeOut = DiagnosticDescriptorFactory.CreateFadeOut(MergeIfWithNestedIf);
/// <summary>RCS1063</summary>
public static readonly DiagnosticDescriptor AvoidUsageOfDoStatementToCreateInfiniteLoop = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.AvoidUsageOfDoStatementToCreateInfiniteLoop,
title: "Avoid usage of do statement to create an infinite loop.",
messageFormat: "([deprecated] Use RCS1252 instead) Use while statement to create an infinite loop.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.AvoidUsageOfDoStatementToCreateInfiniteLoop,
customTags: Array.Empty<string>());
/// <summary>RCS1064</summary>
public static readonly DiagnosticDescriptor AvoidUsageOfForStatementToCreateInfiniteLoop = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.AvoidUsageOfForStatementToCreateInfiniteLoop,
title: "Avoid usage of for statement to create an infinite loop.",
messageFormat: "([deprecated] Use RCS1252 instead) Use while statement to create an infinite loop.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: false,
description: null,
helpLinkUri: DiagnosticIdentifiers.AvoidUsageOfForStatementToCreateInfiniteLoop,
customTags: Array.Empty<string>());
/// <summary>RCS1065</summary>
public static readonly DiagnosticDescriptor AvoidUsageOfWhileStatementToCreateInfiniteLoop = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.AvoidUsageOfWhileStatementToCreateInfiniteLoop,
title: "Avoid usage of while statement to create an infinite loop.",
messageFormat: "([deprecated] Use RCS1252 instead) Use for statement to create an infinite loop.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: false,
description: null,
helpLinkUri: DiagnosticIdentifiers.AvoidUsageOfWhileStatementToCreateInfiniteLoop,
customTags: Array.Empty<string>());
/// <summary>RCS1066</summary>
public static readonly DiagnosticDescriptor RemoveEmptyFinallyClause = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.RemoveEmptyFinallyClause,
title: "Remove empty 'finally' clause.",
messageFormat: "([deprecated] Use RCS1259 instead) Remove empty 'finally' clause.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Hidden,
isEnabledByDefault: false,
description: null,
helpLinkUri: DiagnosticIdentifiers.RemoveEmptyFinallyClause,
customTags: WellKnownDiagnosticTags.Unnecessary);
public static readonly DiagnosticDescriptor RemoveEmptyFinallyClauseFadeOut = DiagnosticDescriptorFactory.CreateFadeOut(RemoveEmptyFinallyClause);
/// <summary>RCS1068</summary>
public static readonly DiagnosticDescriptor SimplifyLogicalNegation = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.SimplifyLogicalNegation,
title: "Simplify logical negation.",
messageFormat: "Simplify logical negation.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.SimplifyLogicalNegation,
customTags: Array.Empty<string>());
/// <summary>RCS1069</summary>
public static readonly DiagnosticDescriptor RemoveUnnecessaryCaseLabel = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.RemoveUnnecessaryCaseLabel,
title: "Remove unnecessary case label.",
messageFormat: "Remove unnecessary case label.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Hidden,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.RemoveUnnecessaryCaseLabel,
customTags: WellKnownDiagnosticTags.Unnecessary);
/// <summary>RCS1070</summary>
public static readonly DiagnosticDescriptor RemoveRedundantDefaultSwitchSection = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.RemoveRedundantDefaultSwitchSection,
title: "Remove redundant default switch section.",
messageFormat: "Remove redundant default switch section.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Hidden,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.RemoveRedundantDefaultSwitchSection,
customTags: WellKnownDiagnosticTags.Unnecessary);
/// <summary>RCS1071</summary>
public static readonly DiagnosticDescriptor RemoveRedundantBaseConstructorCall = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.RemoveRedundantBaseConstructorCall,
title: "Remove redundant base constructor call.",
messageFormat: "Remove redundant base constructor call.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Hidden,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.RemoveRedundantBaseConstructorCall,
customTags: WellKnownDiagnosticTags.Unnecessary);
/// <summary>RCS1072</summary>
public static readonly DiagnosticDescriptor RemoveEmptyNamespaceDeclaration = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.RemoveEmptyNamespaceDeclaration,
title: "Remove empty namespace declaration.",
messageFormat: "([deprecated] Use RCS1259 instead) Remove empty namespace declaration.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: false,
description: null,
helpLinkUri: DiagnosticIdentifiers.RemoveEmptyNamespaceDeclaration,
customTags: WellKnownDiagnosticTags.Unnecessary);
/// <summary>RCS1073</summary>
public static readonly DiagnosticDescriptor ConvertIfToReturnStatement = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.ConvertIfToReturnStatement,
title: "Convert 'if' to 'return' statement.",
messageFormat: "Convert 'if' to 'return' statement.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.ConvertIfToReturnStatement,
customTags: Array.Empty<string>());
public static readonly DiagnosticDescriptor ConvertIfToReturnStatementFadeOut = DiagnosticDescriptorFactory.CreateFadeOut(ConvertIfToReturnStatement);
/// <summary>RCS1074</summary>
public static readonly DiagnosticDescriptor RemoveRedundantConstructor = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.RemoveRedundantConstructor,
title: "Remove redundant constructor.",
messageFormat: "Remove redundant constructor.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Hidden,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.RemoveRedundantConstructor,
customTags: WellKnownDiagnosticTags.Unnecessary);
/// <summary>RCS1075</summary>
public static readonly DiagnosticDescriptor AvoidEmptyCatchClauseThatCatchesSystemException = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.AvoidEmptyCatchClauseThatCatchesSystemException,
title: "Avoid empty catch clause that catches System.Exception.",
messageFormat: "Avoid empty catch clause that catches System.Exception.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Warning,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.AvoidEmptyCatchClauseThatCatchesSystemException,
customTags: Array.Empty<string>());
/// <summary>RCS1077</summary>
public static readonly DiagnosticDescriptor OptimizeLinqMethodCall = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.OptimizeLinqMethodCall,
title: "Optimize LINQ method call.",
messageFormat: "Optimize LINQ method call.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.OptimizeLinqMethodCall,
customTags: Array.Empty<string>());
/// <summary>RCS1078</summary>
public static readonly DiagnosticDescriptor UseEmptyStringLiteralOrStringEmpty = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.UseEmptyStringLiteralOrStringEmpty,
title: "Use \"\" or 'string.Empty'.",
messageFormat: "Use {0}",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: false,
description: null,
helpLinkUri: DiagnosticIdentifiers.UseEmptyStringLiteralOrStringEmpty,
customTags: WellKnownDiagnosticTags.Unnecessary);
/// <summary>RCS1079</summary>
public static readonly DiagnosticDescriptor ThrowingOfNewNotImplementedException = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.ThrowingOfNewNotImplementedException,
title: "Throwing of new NotImplementedException.",
messageFormat: "Implement the functionality instead of throwing new NotImplementedException.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: false,
description: null,
helpLinkUri: DiagnosticIdentifiers.ThrowingOfNewNotImplementedException,
customTags: Array.Empty<string>());
/// <summary>RCS1080</summary>
public static readonly DiagnosticDescriptor UseCountOrLengthPropertyInsteadOfAnyMethod = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.UseCountOrLengthPropertyInsteadOfAnyMethod,
title: "Use 'Count/Length' property instead of 'Any' method.",
messageFormat: "Use '{0}' property instead of 'Any' method.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: false,
description: null,
helpLinkUri: DiagnosticIdentifiers.UseCountOrLengthPropertyInsteadOfAnyMethod,
customTags: Array.Empty<string>());
/// <summary>RCS1081</summary>
public static readonly DiagnosticDescriptor SplitVariableDeclaration = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.SplitVariableDeclaration,
title: "Split variable declaration.",
messageFormat: "Split variable declaration.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: false,
description: null,
helpLinkUri: DiagnosticIdentifiers.SplitVariableDeclaration,
customTags: Array.Empty<string>());
/// <summary>RCS1084</summary>
public static readonly DiagnosticDescriptor UseCoalesceExpressionInsteadOfConditionalExpression = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.UseCoalesceExpressionInsteadOfConditionalExpression,
title: "Use coalesce expression instead of conditional expression.",
messageFormat: "Use coalesce expression instead of conditional expression.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.UseCoalesceExpressionInsteadOfConditionalExpression,
customTags: Array.Empty<string>());
/// <summary>RCS1085</summary>
public static readonly DiagnosticDescriptor UseAutoProperty = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.UseAutoProperty,
title: "Use auto-implemented property.",
messageFormat: "Use auto-implemented property.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.UseAutoProperty,
customTags: Array.Empty<string>());
public static readonly DiagnosticDescriptor UseAutoPropertyFadeOut = DiagnosticDescriptorFactory.CreateFadeOut(UseAutoProperty);
/// <summary>RCS1089</summary>
public static readonly DiagnosticDescriptor UseUnaryOperatorInsteadOfAssignment = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.UseUnaryOperatorInsteadOfAssignment,
title: "Use --/++ operator instead of assignment.",
messageFormat: "Use {0} operator instead of assignment.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.UseUnaryOperatorInsteadOfAssignment,
customTags: Array.Empty<string>());
public static readonly DiagnosticDescriptor UseUnaryOperatorInsteadOfAssignmentFadeOut = DiagnosticDescriptorFactory.CreateFadeOut(UseUnaryOperatorInsteadOfAssignment);
/// <summary>RCS1090</summary>
public static readonly DiagnosticDescriptor ConfigureAwait = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.ConfigureAwait,
title: "Add/remove 'ConfigureAwait(false)' call.",
messageFormat: "{0} 'ConfigureAwait(false)' call.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: false,
description: null,
helpLinkUri: DiagnosticIdentifiers.ConfigureAwait,
customTags: Array.Empty<string>());
/// <summary>RCS1091</summary>
public static readonly DiagnosticDescriptor RemoveEmptyRegion = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.RemoveEmptyRegion,
title: "Remove empty region.",
messageFormat: "([deprecated] Use RCS1259 instead) Remove empty region.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Hidden,
isEnabledByDefault: false,
description: null,
helpLinkUri: DiagnosticIdentifiers.RemoveEmptyRegion,
customTags: Array.Empty<string>());
public static readonly DiagnosticDescriptor RemoveEmptyRegionFadeOut = DiagnosticDescriptorFactory.CreateFadeOut(RemoveEmptyRegion);
/// <summary>RCS1093</summary>
public static readonly DiagnosticDescriptor RemoveFileWithNoCode = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.RemoveFileWithNoCode,
title: "Remove file with no code.",
messageFormat: "Remove file with no code.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.RemoveFileWithNoCode,
customTags: Array.Empty<string>());
/// <summary>RCS1094</summary>
public static readonly DiagnosticDescriptor DeclareUsingDirectiveOnTopLevel = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.DeclareUsingDirectiveOnTopLevel,
title: "Declare using directive on top level.",
messageFormat: "Declare using directive on top level.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: false,
description: null,
helpLinkUri: DiagnosticIdentifiers.DeclareUsingDirectiveOnTopLevel,
customTags: Array.Empty<string>());
/// <summary>RCS1096</summary>
public static readonly DiagnosticDescriptor UseHasFlagMethodOrBitwiseOperator = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.UseHasFlagMethodOrBitwiseOperator,
title: "Use 'HasFlag' method or bitwise operator.",
messageFormat: "Use {0}.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: false,
description: null,
helpLinkUri: DiagnosticIdentifiers.UseHasFlagMethodOrBitwiseOperator,
customTags: Array.Empty<string>());
/// <summary>RCS1097</summary>
public static readonly DiagnosticDescriptor RemoveRedundantToStringCall = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.RemoveRedundantToStringCall,
title: "Remove redundant 'ToString' call.",
messageFormat: "Remove redundant 'ToString' call.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.RemoveRedundantToStringCall,
customTags: WellKnownDiagnosticTags.Unnecessary);
/// <summary>RCS1098</summary>
public static readonly DiagnosticDescriptor ConstantValuesShouldBePlacedOnRightSideOfComparisons = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.ConstantValuesShouldBePlacedOnRightSideOfComparisons,
title: "Constant values should be placed on right side of comparisons.",
messageFormat: "Constant values should be placed on right side of comparisons.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.ConstantValuesShouldBePlacedOnRightSideOfComparisons,
customTags: Array.Empty<string>());
/// <summary>RCS1099</summary>
public static readonly DiagnosticDescriptor DefaultLabelShouldBeLastLabelInSwitchSection = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.DefaultLabelShouldBeLastLabelInSwitchSection,
title: "Default label should be the last label in a switch section.",
messageFormat: "Move default label to the last position in a switch section.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.DefaultLabelShouldBeLastLabelInSwitchSection,
customTags: Array.Empty<string>());
/// <summary>RCS1100</summary>
public static readonly DiagnosticDescriptor FormatDocumentationSummaryOnSingleLine = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.FormatDocumentationSummaryOnSingleLine,
title: "Format documentation summary on a single line.",
messageFormat: "([deprecated] Use RCS1253 instead) Format documentation summary on a single line.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: false,
description: null,
helpLinkUri: DiagnosticIdentifiers.FormatDocumentationSummaryOnSingleLine,
customTags: Array.Empty<string>());
/// <summary>RCS1101</summary>
public static readonly DiagnosticDescriptor FormatDocumentationSummaryOnMultipleLines = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.FormatDocumentationSummaryOnMultipleLines,
title: "Format documentation summary on multiple lines.",
messageFormat: "([deprecated] Use RCS1253 instead) Format documentation summary on multiple lines.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: false,
description: null,
helpLinkUri: DiagnosticIdentifiers.FormatDocumentationSummaryOnMultipleLines,
customTags: Array.Empty<string>());
/// <summary>RCS1102</summary>
public static readonly DiagnosticDescriptor MakeClassStatic = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.MakeClassStatic,
title: "Make class static.",
messageFormat: "Make class static.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Warning,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.MakeClassStatic,
customTags: Array.Empty<string>());
/// <summary>RCS1103</summary>
public static readonly DiagnosticDescriptor ConvertIfToAssignment = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.ConvertIfToAssignment,
title: "Convert 'if' to assignment.",
messageFormat: "Convert 'if' to assignment.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.ConvertIfToAssignment,
customTags: Array.Empty<string>());
/// <summary>RCS1104</summary>
public static readonly DiagnosticDescriptor SimplifyConditionalExpression = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.SimplifyConditionalExpression,
title: "Simplify conditional expression.",
messageFormat: "Simplify conditional expression.",
category: DiagnosticCategories.Roslynator,
defaultSeverity: DiagnosticSeverity.Info,
isEnabledByDefault: true,
description: null,
helpLinkUri: DiagnosticIdentifiers.SimplifyConditionalExpression,
customTags: Array.Empty<string>());
/// <summary>RCS1105</summary>
public static readonly DiagnosticDescriptor UnnecessaryInterpolation = DiagnosticDescriptorFactory.Create(
id: DiagnosticIdentifiers.UnnecessaryInterpolation,
title: "Unnecessary interpolation.",
messageFormat: "Unnecessary interpolation.",