32 references to DiagDescriptors
Microsoft.Analyzers.Extra (32)
AsyncCallInsideUsingBlockAnalyzer.cs (2)
17
DiagDescriptors
.AsyncCallInsideUsingBlock);
123
Diagnostic.Create(
DiagDescriptors
.AsyncCallInsideUsingBlock, invocation.Syntax.GetLocation());
AsyncMethodWithoutCancellation.cs (2)
17
DiagDescriptors
.AsyncMethodWithoutCancellation);
110
Diagnostic.Create(
DiagDescriptors
.AsyncMethodWithoutCancellation, analysisContext.Node.GetLocation());
CallAnalysis\Arrays.cs (1)
128
var diagnostic = Diagnostic.Create(
DiagDescriptors
.Arrays, loc, valueType.ToDisplayString(), type.ToDisplayString());
CallAnalysis\CallAnalyzer.cs (7)
17
DiagDescriptors
.StartsEndsWith,
18
DiagDescriptors
.LegacyLogging,
19
DiagDescriptors
.StaticTime,
20
DiagDescriptors
.ValueTuple,
21
DiagDescriptors
.Arrays,
22
DiagDescriptors
.LegacyCollection,
23
DiagDescriptors
.Split);
CallAnalysis\Fixers\LegacyLoggingFixer.cs (1)
50
public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(
DiagDescriptors
.LegacyLogging.Id);
CallAnalysis\LegacyCollection.cs (1)
33
var diagnostic = Diagnostic.Create(
DiagDescriptors
.LegacyCollection, op.Syntax.GetLocation());
CallAnalysis\LegacyLogging.cs (1)
38
var diagnostic = Diagnostic.Create(
DiagDescriptors
.LegacyLogging, op.Syntax.GetLocation());
CallAnalysis\Split.cs (1)
28
var diagnostic = Diagnostic.Create(
DiagDescriptors
.Split, op.Syntax.GetLocation());
CallAnalysis\StartsEndsWith.cs (1)
59
var diagnostic = Diagnostic.Create(
DiagDescriptors
.StartsEndsWith, op.Syntax.GetLocation(), op.TargetMethod.Name);
CallAnalysis\StaticTime.cs (2)
52
var diagnostic = Diagnostic.Create(
DiagDescriptors
.StaticTime, op.Syntax.GetLocation());
58
var diagnostic = Diagnostic.Create(
DiagDescriptors
.StaticTime, op.Syntax.GetLocation());
CallAnalysis\ValueTuple.cs (2)
42
var diagnostic = Diagnostic.Create(
DiagDescriptors
.ValueTuple, op.Syntax.GetLocation());
48
var diagnostic = Diagnostic.Create(
DiagDescriptors
.ValueTuple, op.Syntax.GetLocation());
CoalesceAnalyzer.cs (4)
18
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(
DiagDescriptors
.CoalesceAssignment,
DiagDescriptors
.Coalesce);
52
var diagnostic = Diagnostic.Create(
DiagDescriptors
.CoalesceAssignment, op.Syntax.GetLocation());
79
var diagnostic = Diagnostic.Create(
DiagDescriptors
.Coalesce, op.Syntax.GetLocation());
ConditionalAccessAnalyzer.cs (2)
18
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(
DiagDescriptors
.ConditionalAccess);
111
var diagnostic = Diagnostic.Create(
DiagDescriptors
.ConditionalAccess, op.Syntax.GetLocation());
MakeExeTypesInternalAnalyzer.cs (2)
50
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(
DiagDescriptors
.MakeExeTypesInternal);
134
var diagnostic = Diagnostic.Create(
DiagDescriptors
.MakeExeTypesInternal, type.Locations[0], type.Name);
MakeExeTypesInternalFixer.cs (1)
22
public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(
DiagDescriptors
.MakeExeTypesInternal.Id);
UsingToStringInLoggersAnalyzer.cs (2)
17
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(
DiagDescriptors
.UsingToStringInLoggers);
69
yield return Diagnostic.Create(
DiagDescriptors
.UsingToStringInLoggers, arg.Syntax.GetLocation());