19 references to DetectMismatchedParameterOptionality
Microsoft.AspNetCore.App.Analyzers (2)
RouteHandlers\DetectMismatchedParameterOptionality.cs (1)
37
DiagnosticDescriptors.
DetectMismatchedParameterOptionality
,
RouteHandlers\RouteHandlerAnalyzer.cs (1)
27
DiagnosticDescriptors.
DetectMismatchedParameterOptionality
,
Microsoft.AspNetCore.App.Analyzers.Test (15)
RouteHandlers\DetectMismatchedParameterOptionalityTest.cs (15)
30
var expectedDiagnostics = new DiagnosticResult(DiagnosticDescriptors.
DetectMismatchedParameterOptionality
).WithArguments("name").WithLocation(0);
53
new DiagnosticResult(DiagnosticDescriptors.
DetectMismatchedParameterOptionality
).WithArguments("name").WithLocation(0),
54
new DiagnosticResult(DiagnosticDescriptors.
DetectMismatchedParameterOptionality
).WithArguments("title").WithLocation(1)
78
var expectedDiagnostic = new DiagnosticResult(DiagnosticDescriptors.
DetectMismatchedParameterOptionality
).WithArguments("name").WithLocation(0);
104
new DiagnosticResult(DiagnosticDescriptors.
DetectMismatchedParameterOptionality
).WithArguments("name").WithLocation(0),
105
new DiagnosticResult(DiagnosticDescriptors.
DetectMismatchedParameterOptionality
).WithArguments("title").WithLocation(1)
157
new DiagnosticResult(DiagnosticDescriptors.
DetectMismatchedParameterOptionality
).WithArguments("name").WithLocation(0),
158
new DiagnosticResult(DiagnosticDescriptors.
DetectMismatchedParameterOptionality
).WithArguments("title").WithLocation(1),
159
new DiagnosticResult(DiagnosticDescriptors.
DetectMismatchedParameterOptionality
).WithArguments("name").WithLocation(2),
160
new DiagnosticResult(DiagnosticDescriptors.
DetectMismatchedParameterOptionality
).WithArguments("title").WithLocation(3)
200
new DiagnosticResult(DiagnosticDescriptors.
DetectMismatchedParameterOptionality
).WithArguments("name").WithLocation(0),
201
new DiagnosticResult(DiagnosticDescriptors.
DetectMismatchedParameterOptionality
).WithArguments("title").WithLocation(1)
289
var expectedDiagnostic = new DiagnosticResult(DiagnosticDescriptors.
DetectMismatchedParameterOptionality
).WithArguments("age").WithLocation(0);
313
var expectedDiagnostic = new DiagnosticResult(DiagnosticDescriptors.
DetectMismatchedParameterOptionality
).WithArguments("age").WithLocation(0);
338
var expectedDiagnostic = new DiagnosticResult(DiagnosticDescriptors.
DetectMismatchedParameterOptionality
).WithArguments("age").WithLocation(0);
Microsoft.AspNetCore.App.CodeFixes (2)
DetectMismatchedParameterOptionalityFixer.cs (2)
19
public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(DiagnosticDescriptors.
DetectMismatchedParameterOptionality
.Id);
30
equivalenceKey: DiagnosticDescriptors.
DetectMismatchedParameterOptionality
.Id),