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