39 references to Descriptor1
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
SarifErrorLoggerTests.cs (1)
152
Assert.Contains(AnalyzerForErrorLogTest.
Descriptor1
.Id, actualConsoleOutput);
Microsoft.CodeAnalysis.Test.Utilities (37)
Diagnostics\CommonDiagnosticAnalyzers.cs (37)
59
return ImmutableArray.Create(
Descriptor1
, Descriptor2);
71
context.ReportDiagnostic(Diagnostic.Create(
Descriptor1
, location, s_properties));
112
""ruleId"": """ +
Descriptor1
.Id + @""",
113
""level"": """ + (
Descriptor1
.DefaultSeverity == DiagnosticSeverity.Error ? "error" : "warning") + @""",
114
""message"": """ +
Descriptor1
.MessageFormat + @""",
142
""" +
Descriptor1
.Id + @""": {
143
""id"": """ +
Descriptor1
.Id + @""",
144
""shortDescription"": """ +
Descriptor1
.Title + @""",
145
""fullDescription"": """ +
Descriptor1
.Description + @""",
146
""defaultLevel"": """ + (
Descriptor1
.DefaultSeverity == DiagnosticSeverity.Error ? "error" : "warning") + @""",
147
""helpUri"": """ +
Descriptor1
.HelpLinkUri + @""",
149
""category"": """ +
Descriptor1
.Category + @""",
152
" + String.Join("," + Environment.NewLine + " ",
Descriptor1
.CustomTags.Select(s => $"\"{s}\"")) + @"
186
""ruleId"": """ +
Descriptor1
.Id + @""",
187
""level"": """ + (
Descriptor1
.DefaultSeverity == DiagnosticSeverity.Error ? "error" : "warning") + @""",
188
""message"": """ +
Descriptor1
.MessageFormat + @""",
219
""" +
Descriptor1
.Id + @""": {
220
""id"": """ +
Descriptor1
.Id + @""",
221
""shortDescription"": """ +
Descriptor1
.Title + @""",
222
""fullDescription"": """ +
Descriptor1
.Description + @""",
223
""defaultLevel"": """ + (
Descriptor1
.DefaultSeverity == DiagnosticSeverity.Error ? "error" : "warning") + @""",
224
""helpUri"": """ +
Descriptor1
.HelpLinkUri + @""",
226
""category"": """ +
Descriptor1
.Category + @""",
229
" + String.Join("," + Environment.NewLine + " ",
Descriptor1
.CustomTags.Select(s => $"\"{s}\"")) + @"
263
""ruleId"": """ +
Descriptor1
.Id + @""",
265
""level"": """ + (
Descriptor1
.DefaultSeverity == DiagnosticSeverity.Error ? "error" : "warning") + @""",
267
""text"": """ +
Descriptor1
.MessageFormat + @"""
315
""ruleId"": """ +
Descriptor1
.Id + @""",
317
""level"": """ + (
Descriptor1
.DefaultSeverity == DiagnosticSeverity.Error ? "error" : "warning") + @""",
319
""text"": """ +
Descriptor1
.MessageFormat + @"""
379
""id"": """ +
Descriptor1
.Id + @""",
381
""text"": """ +
Descriptor1
.Title + @"""
384
""text"": """ +
Descriptor1
.Description + @"""
386
""helpUri"": """ +
Descriptor1
.HelpLinkUri + @""",
388
""category"": """ +
Descriptor1
.Category + @"""" + GetExpectedV2SuppressionTextForRulesSection(suppressionKinds1) + @",
390
" + string.Join("," + Environment.NewLine + " ",
Descriptor1
.CustomTags.Select(s => $"\"{s}\"")) + @"
428
public static readonly SuppressionDescriptor Descriptor1 = new("SPR0001", AnalyzerForErrorLogTest.
Descriptor1
.Id, "SuppressorJustification1");
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (1)
SarifErrorLoggerTests.vb (1)
183
Assert.Contains(AnalyzerForErrorLogTest.
Descriptor1
.Id, actualConsoleOutput)