72 references to SpecificDiagnosticOptions
Microsoft.CodeAnalysis (2)
RuleSet\RuleSet.cs (2)
155
foreach (var item in effectiveRuleset.
SpecificDiagnosticOptions
)
308
foreach (var rule in ruleSet.
SpecificDiagnosticOptions
)
Microsoft.CodeAnalysis.UnitTests (69)
CommonCommandLineParserTests.cs (69)
167
Assert.Equal(expected: ReportDiagnostic.Error, actual: ruleSet.
SpecificDiagnosticOptions
["CA1012"]);
410
Assert.Contains("CA1012", ruleSet.
SpecificDiagnosticOptions
.Keys);
411
Assert.Equal(ReportDiagnostic.Error, ruleSet.
SpecificDiagnosticOptions
["CA1012"]);
412
Assert.Contains("CA1013", ruleSet.
SpecificDiagnosticOptions
.Keys);
413
Assert.Equal(ReportDiagnostic.Warn, ruleSet.
SpecificDiagnosticOptions
["CA1013"]);
414
Assert.Contains("CA1014", ruleSet.
SpecificDiagnosticOptions
.Keys);
415
Assert.Equal(ReportDiagnostic.Suppress, ruleSet.
SpecificDiagnosticOptions
["CA1014"]);
416
Assert.Contains("CA1015", ruleSet.
SpecificDiagnosticOptions
.Keys);
417
Assert.Equal(ReportDiagnostic.Info, ruleSet.
SpecificDiagnosticOptions
["CA1015"]);
418
Assert.Contains("CA1016", ruleSet.
SpecificDiagnosticOptions
.Keys);
419
Assert.Equal(ReportDiagnostic.Hidden, ruleSet.
SpecificDiagnosticOptions
["CA1016"]);
477
Assert.Contains("CA1013", ruleSet.
SpecificDiagnosticOptions
.Keys);
478
Assert.Equal(ReportDiagnostic.Warn, ruleSet.
SpecificDiagnosticOptions
["CA1013"]);
502
Assert.Contains("CA1012", ruleSet.
SpecificDiagnosticOptions
.Keys);
503
Assert.Equal(ReportDiagnostic.Warn, ruleSet.
SpecificDiagnosticOptions
["CA1012"]);
504
Assert.Contains("CA1013", ruleSet.
SpecificDiagnosticOptions
.Keys);
505
Assert.Equal(ReportDiagnostic.Warn, ruleSet.
SpecificDiagnosticOptions
["CA1013"]);
530
Assert.Contains("CA1012", ruleSet.
SpecificDiagnosticOptions
.Keys);
531
Assert.Equal(ReportDiagnostic.Warn, ruleSet.
SpecificDiagnosticOptions
["CA1012"]);
532
Assert.Contains("CA1013", ruleSet.
SpecificDiagnosticOptions
.Keys);
533
Assert.Equal(ReportDiagnostic.Warn, ruleSet.
SpecificDiagnosticOptions
["CA1013"]);
558
Assert.Contains("CA1012", ruleSet.
SpecificDiagnosticOptions
.Keys);
559
Assert.Equal(ReportDiagnostic.Warn, ruleSet.
SpecificDiagnosticOptions
["CA1012"]);
560
Assert.Contains("CA1013", ruleSet.
SpecificDiagnosticOptions
.Keys);
561
Assert.Equal(ReportDiagnostic.Warn, ruleSet.
SpecificDiagnosticOptions
["CA1013"]);
587
Assert.Contains("CA1012", ruleSet.
SpecificDiagnosticOptions
.Keys);
588
Assert.Equal(ReportDiagnostic.Warn, ruleSet.
SpecificDiagnosticOptions
["CA1012"]);
589
Assert.Contains("CA1013", ruleSet.
SpecificDiagnosticOptions
.Keys);
590
Assert.Equal(ReportDiagnostic.Warn, ruleSet.
SpecificDiagnosticOptions
["CA1013"]);
625
Assert.Contains("CA1012", ruleSet.
SpecificDiagnosticOptions
.Keys);
626
Assert.Equal(ReportDiagnostic.Warn, ruleSet.
SpecificDiagnosticOptions
["CA1012"]);
627
Assert.Contains("CA1013", ruleSet.
SpecificDiagnosticOptions
.Keys);
628
Assert.Equal(ReportDiagnostic.Error, ruleSet.
SpecificDiagnosticOptions
["CA1013"]);
663
Assert.Contains("CA1012", ruleSet.
SpecificDiagnosticOptions
.Keys);
664
Assert.Equal(ReportDiagnostic.Warn, ruleSet.
SpecificDiagnosticOptions
["CA1012"]);
665
Assert.Contains("CA1013", ruleSet.
SpecificDiagnosticOptions
.Keys);
666
Assert.Equal(ReportDiagnostic.Warn, ruleSet.
SpecificDiagnosticOptions
["CA1013"]);
667
Assert.Contains("CA1014", ruleSet.
SpecificDiagnosticOptions
.Keys);
668
Assert.Equal(ReportDiagnostic.Warn, ruleSet.
SpecificDiagnosticOptions
["CA1014"]);
693
Assert.Contains("CA1012", ruleSet.
SpecificDiagnosticOptions
.Keys);
694
Assert.Equal(ReportDiagnostic.Warn, ruleSet.
SpecificDiagnosticOptions
["CA1012"]);
729
Assert.Contains("CA1012", ruleSet.
SpecificDiagnosticOptions
.Keys);
730
Assert.Equal(ReportDiagnostic.Warn, ruleSet.
SpecificDiagnosticOptions
["CA1012"]);
763
Assert.Contains("CA1012", ruleSet.
SpecificDiagnosticOptions
.Keys);
764
Assert.Equal(ReportDiagnostic.Warn, ruleSet.
SpecificDiagnosticOptions
["CA1012"]);
766
Assert.Contains("CA1013", ruleSet.
SpecificDiagnosticOptions
.Keys);
767
Assert.Equal(ReportDiagnostic.Error, ruleSet.
SpecificDiagnosticOptions
["CA1013"]);
790
Assert.Contains("CA1012", ruleSet.
SpecificDiagnosticOptions
.Keys);
791
Assert.Equal(ReportDiagnostic.Warn, ruleSet.
SpecificDiagnosticOptions
["CA1012"]);
792
Assert.DoesNotContain("CA1013", ruleSet.
SpecificDiagnosticOptions
.Keys);
814
Assert.Contains("CA1012", ruleSet.
SpecificDiagnosticOptions
.Keys);
815
Assert.Equal(ReportDiagnostic.Warn, ruleSet.
SpecificDiagnosticOptions
["CA1012"]);
816
Assert.Contains("CA1013", ruleSet.
SpecificDiagnosticOptions
.Keys);
817
Assert.Equal(ReportDiagnostic.Error, ruleSet.
SpecificDiagnosticOptions
["CA1013"]);
886
Assert.Contains("CA1012", ruleSet.
SpecificDiagnosticOptions
.Keys);
887
Assert.Equal(ReportDiagnostic.Warn, ruleSet.
SpecificDiagnosticOptions
["CA1012"]);
888
Assert.Contains("CA1013", ruleSet.
SpecificDiagnosticOptions
.Keys);
889
Assert.Equal(ReportDiagnostic.Suppress, ruleSet.
SpecificDiagnosticOptions
["CA1013"]);
911
Assert.Contains("CA1012", ruleSet.
SpecificDiagnosticOptions
.Keys);
912
Assert.Equal(ReportDiagnostic.Warn, ruleSet.
SpecificDiagnosticOptions
["CA1012"]);
913
Assert.Contains("CA1013", ruleSet.
SpecificDiagnosticOptions
.Keys);
914
Assert.Equal(ReportDiagnostic.Error, ruleSet.
SpecificDiagnosticOptions
["CA1013"]);
952
Assert.Equal(ReportDiagnostic.Warn, ruleSet.
SpecificDiagnosticOptions
["CA1000"]);
953
Assert.Equal(ReportDiagnostic.Warn, ruleSet.
SpecificDiagnosticOptions
["CA1001"]);
954
Assert.Equal(ReportDiagnostic.Error, ruleSet.
SpecificDiagnosticOptions
["CA2100"]);
955
Assert.Equal(ReportDiagnostic.Warn, ruleSet.
SpecificDiagnosticOptions
["CA2104"]);
956
Assert.Equal(ReportDiagnostic.Warn, ruleSet.
SpecificDiagnosticOptions
["CA2105"]);
957
Assert.Equal(ReportDiagnostic.Suppress, ruleSet.
SpecificDiagnosticOptions
["CA2111"]);
958
Assert.Equal(ReportDiagnostic.Suppress, ruleSet.
SpecificDiagnosticOptions
["CA2119"]);
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\RuleSets\VisualStudioRuleSetManager.RuleSetFile.cs (1)
133
foreach (var rule in effectiveRuleset.
SpecificDiagnosticOptions
)