43 references to Descriptor1
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (4)
SarifErrorLoggerTests.cs (1)
153
Assert.Contains(AnalyzerForErrorLogTest.
Descriptor1
.Id, actualConsoleOutput);
SarifV2ErrorLoggerTests.cs (3)
377
(AnalyzerForErrorLogTest.
Descriptor1
.Id, 0, ImmutableHashSet.Create(ReportDiagnostic.Error))));
498
(AnalyzerForErrorLogTest.
Descriptor1
.Id, 0, ImmutableHashSet.Create(ReportDiagnostic.Suppress)),
580
(AnalyzerForErrorLogTest.
Descriptor1
.Id, 0, ImmutableHashSet.Create(ReportDiagnostic.Suppress, ReportDiagnostic.Warn))));
Microsoft.CodeAnalysis.Test.Utilities (38)
Diagnostics\CommonDiagnosticAnalyzers.cs (38)
60
return ImmutableArray.Create(
Descriptor1
, Descriptor2);
72
context.ReportDiagnostic(Diagnostic.Create(
Descriptor1
, location, s_properties));
109
var effectiveSeverity1 = warnAsError ||
Descriptor1
.DefaultSeverity == DiagnosticSeverity.Error ? "error" : "warning";
117
""ruleId"": """ +
Descriptor1
.Id + @""",
119
""message"": """ +
Descriptor1
.MessageFormat + @""",
147
""" +
Descriptor1
.Id + @""": {
148
""id"": """ +
Descriptor1
.Id + @""",
149
""shortDescription"": """ +
Descriptor1
.Title + @""",
150
""fullDescription"": """ +
Descriptor1
.Description + @""",
151
""defaultLevel"": """ + (
Descriptor1
.DefaultSeverity == DiagnosticSeverity.Error ? "error" : "warning") + @""",
152
""helpUri"": """ +
Descriptor1
.HelpLinkUri + @""",
154
""category"": """ +
Descriptor1
.Category + @""",
157
" + String.Join("," + Environment.NewLine + " ",
Descriptor1
.CustomTags.Select(s => $"\"{s}\"")) + @"
191
""ruleId"": """ +
Descriptor1
.Id + @""",
192
""level"": """ + (
Descriptor1
.DefaultSeverity == DiagnosticSeverity.Error ? "error" : "warning") + @""",
193
""message"": """ +
Descriptor1
.MessageFormat + @""",
224
""" +
Descriptor1
.Id + @""": {
225
""id"": """ +
Descriptor1
.Id + @""",
226
""shortDescription"": """ +
Descriptor1
.Title + @""",
227
""fullDescription"": """ +
Descriptor1
.Description + @""",
228
""defaultLevel"": """ + (
Descriptor1
.DefaultSeverity == DiagnosticSeverity.Error ? "error" : "warning") + @""",
229
""helpUri"": """ +
Descriptor1
.HelpLinkUri + @""",
231
""category"": """ +
Descriptor1
.Category + @""",
234
" + String.Join("," + Environment.NewLine + " ",
Descriptor1
.CustomTags.Select(s => $"\"{s}\"")) + @"
264
var effectiveSeverity1 = warnAsError ||
Descriptor1
.DefaultSeverity == DiagnosticSeverity.Error ? "error" : "warning";
272
""ruleId"": """ +
Descriptor1
.Id + @""",
276
""text"": """ +
Descriptor1
.MessageFormat + @"""
324
""ruleId"": """ +
Descriptor1
.Id + @""",
326
""level"": """ + (
Descriptor1
.DefaultSeverity == DiagnosticSeverity.Error ? "error" : "warning") + @""",
328
""text"": """ +
Descriptor1
.MessageFormat + @"""
450
var descriptor1Info = descriptorsWithInfo.Single(d => d.Descriptor.Id ==
Descriptor1
.Id).Info;
461
""id"": """ +
Descriptor1
.Id + @""",
463
""text"": """ +
Descriptor1
.Title + @"""
466
""text"": """ +
Descriptor1
.Description + @"""
468
""helpUri"": """ +
Descriptor1
.HelpLinkUri + @""",
470
""category"": """ +
Descriptor1
.Category + @"""" + GetExpectedV2SuppressionTextForRulesSection(suppressionKinds1) + @",
474
" + string.Join("," + Environment.NewLine + " ",
Descriptor1
.CustomTags.Select(s => $"\"{s}\"")) + @"
514
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)