44 references to Descriptor2
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
SarifErrorLoggerTests.cs (1)
153Assert.Contains(AnalyzerForErrorLogTest.Descriptor2.Id, actualConsoleOutput);
Microsoft.CodeAnalysis.Test.Utilities (42)
Diagnostics\CommonDiagnosticAnalyzers.cs (42)
59return ImmutableArray.Create(Descriptor1, Descriptor2); 76context.ReportDiagnostic(Diagnostic.Create(Descriptor2, Location.None, s_properties))); 133""ruleId"": """ + Descriptor2.Id + @""", 134""level"": """ + (Descriptor2.DefaultSeverity == DiagnosticSeverity.Error ? "error" : "warning") + @""", 135""message"": """ + Descriptor2.MessageFormat + @""", 150""isEnabledByDefault"": " + (Descriptor2.IsEnabledByDefault ? "true" : "false") + @", 156""" + Descriptor2.Id + @""": { 157""id"": """ + Descriptor2.Id + @""", 158""shortDescription"": """ + Descriptor2.Title + @""", 159""fullDescription"": """ + Descriptor2.Description + @""", 160""defaultLevel"": """ + (Descriptor2.DefaultSeverity == DiagnosticSeverity.Error ? "error" : "warning") + @""", 161""helpUri"": """ + Descriptor2.HelpLinkUri + @""", 163""category"": """ + Descriptor2.Category + @""", 164""isEnabledByDefault"": " + (Descriptor2.IsEnabledByDefault ? "true" : "false") + @", 166" + String.Join("," + Environment.NewLine + " ", Descriptor2.CustomTags.Select(s => $"\"{s}\"")) + @" 210""ruleId"": """ + Descriptor2.Id + @""", 211""level"": """ + (Descriptor2.DefaultSeverity == DiagnosticSeverity.Error ? "error" : "warning") + @""", 212""message"": """ + Descriptor2.MessageFormat + @""", 227""isEnabledByDefault"": " + (Descriptor2.IsEnabledByDefault ? "true" : "false") + @", 233""" + Descriptor2.Id + @""": { 234""id"": """ + Descriptor2.Id + @""", 235""shortDescription"": """ + Descriptor2.Title + @""", 236""fullDescription"": """ + Descriptor2.Description + @""", 237""defaultLevel"": """ + (Descriptor2.DefaultSeverity == DiagnosticSeverity.Error ? "error" : "warning") + @""", 238""helpUri"": """ + Descriptor2.HelpLinkUri + @""", 240""category"": """ + Descriptor2.Category + @""", 241""isEnabledByDefault"": " + (Descriptor2.IsEnabledByDefault ? "true" : "false") + @", 243" + String.Join("," + Environment.NewLine + " ", Descriptor2.CustomTags.Select(s => $"\"{s}\"")) + @" 289""ruleId"": """ + Descriptor2.Id + @""", 291""level"": """ + (Descriptor2.DefaultSeverity == DiagnosticSeverity.Error ? "error" : "warning") + @""", 293""text"": """ + Descriptor2.MessageFormat + @""" 347""ruleId"": """ + Descriptor2.Id + @""", 349""level"": """ + (Descriptor2.DefaultSeverity == DiagnosticSeverity.Error ? "error" : "warning") + @""", 351""text"": """ + Descriptor2.MessageFormat + @""" 395""id"": """ + Descriptor2.Id + @""", 397""text"": """ + Descriptor2.Title + @""" 400""text"": """ + Descriptor2.Description + @""" 403""level"": """ + (Descriptor2.DefaultSeverity == DiagnosticSeverity.Error ? "error" : "warning") + @""" 405""helpUri"": """ + Descriptor2.HelpLinkUri + @""", 407""category"": """ + Descriptor2.Category + @"""" + GetExpectedV2SuppressionTextForRulesSection(suppressionKinds2) + @", 409" + String.Join("," + Environment.NewLine + " ", Descriptor2.CustomTags.Select(s => $"\"{s}\"")) + @" 429public 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)