46 references to Descriptor2
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
SarifErrorLoggerTests.cs (1)
154Assert.Contains(AnalyzerForErrorLogTest.Descriptor2.Id, actualConsoleOutput);
SarifV2ErrorLoggerTests.cs (1)
499(AnalyzerForErrorLogTest.Descriptor2.Id, 1, ImmutableHashSet.Create(ReportDiagnostic.Suppress))));
Microsoft.CodeAnalysis.Test.Utilities (43)
Diagnostics\CommonDiagnosticAnalyzers.cs (43)
60return ImmutableArray.Create(Descriptor1, Descriptor2); 77context.ReportDiagnostic(Diagnostic.Create(Descriptor2, Location.None, s_properties))); 110var effectiveSeverity2 = warnAsError || Descriptor2.DefaultSeverity == DiagnosticSeverity.Error ? "error" : "warning"; 138""ruleId"": """ + Descriptor2.Id + @""", 140""message"": """ + Descriptor2.MessageFormat + @""", 155""isEnabledByDefault"": " + (Descriptor2.IsEnabledByDefault ? "true" : "false") + @", 161""" + Descriptor2.Id + @""": { 162""id"": """ + Descriptor2.Id + @""", 163""shortDescription"": """ + Descriptor2.Title + @""", 164""fullDescription"": """ + Descriptor2.Description + @""", 165""defaultLevel"": """ + (Descriptor2.DefaultSeverity == DiagnosticSeverity.Error ? "error" : "warning") + @""", 166""helpUri"": """ + Descriptor2.HelpLinkUri + @""", 168""category"": """ + Descriptor2.Category + @""", 169""isEnabledByDefault"": " + (Descriptor2.IsEnabledByDefault ? "true" : "false") + @", 171" + String.Join("," + Environment.NewLine + " ", Descriptor2.CustomTags.Select(s => $"\"{s}\"")) + @" 215""ruleId"": """ + Descriptor2.Id + @""", 216""level"": """ + (Descriptor2.DefaultSeverity == DiagnosticSeverity.Error ? "error" : "warning") + @""", 217""message"": """ + Descriptor2.MessageFormat + @""", 232""isEnabledByDefault"": " + (Descriptor2.IsEnabledByDefault ? "true" : "false") + @", 238""" + Descriptor2.Id + @""": { 239""id"": """ + Descriptor2.Id + @""", 240""shortDescription"": """ + Descriptor2.Title + @""", 241""fullDescription"": """ + Descriptor2.Description + @""", 242""defaultLevel"": """ + (Descriptor2.DefaultSeverity == DiagnosticSeverity.Error ? "error" : "warning") + @""", 243""helpUri"": """ + Descriptor2.HelpLinkUri + @""", 245""category"": """ + Descriptor2.Category + @""", 246""isEnabledByDefault"": " + (Descriptor2.IsEnabledByDefault ? "true" : "false") + @", 248" + String.Join("," + Environment.NewLine + " ", Descriptor2.CustomTags.Select(s => $"\"{s}\"")) + @" 265var effectiveSeverity2 = warnAsError || Descriptor2.DefaultSeverity == DiagnosticSeverity.Error ? "error" : "warning"; 298""ruleId"": """ + Descriptor2.Id + @""", 302""text"": """ + Descriptor2.MessageFormat + @""" 356""ruleId"": """ + Descriptor2.Id + @""", 358""level"": """ + (Descriptor2.DefaultSeverity == DiagnosticSeverity.Error ? "error" : "warning") + @""", 360""text"": """ + Descriptor2.MessageFormat + @""" 454var descriptor2Info = descriptorsWithInfo.Single(d => d.Descriptor.Id == Descriptor2.Id).Info; 479""id"": """ + Descriptor2.Id + @""", 481""text"": """ + Descriptor2.Title + @""" 484""text"": """ + Descriptor2.Description + @""" 487""level"": """ + (Descriptor2.DefaultSeverity == DiagnosticSeverity.Error ? "error" : "warning") + @""" 489""helpUri"": """ + Descriptor2.HelpLinkUri + @""", 491""category"": """ + Descriptor2.Category + @"""" + GetExpectedV2SuppressionTextForRulesSection(suppressionKinds2) + @", 495" + String.Join("," + Environment.NewLine + " ", Descriptor2.CustomTags.Select(s => $"\"{s}\"")) + @" 515public static readonly SuppressionDescriptor Descriptor2 = new("SPR0002", AnalyzerForErrorLogTest.Descriptor2.Id, "SuppressorJustification2");
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (1)
SarifErrorLoggerTests.vb (1)
184Assert.Contains(AnalyzerForErrorLogTest.Descriptor2.Id, actualConsoleOutput)