22 references to DiagnosticDescriptors
Microsoft.AspNetCore.Mvc.Analyzers (11)
AttributesShouldNotBeAppliedToPageModelAnalyzer.cs (6)
14
DiagnosticDescriptors
.MVC1001_FiltersShouldNotBeAppliedToPageHandlerMethods,
15
DiagnosticDescriptors
.MVC1002_RouteAttributesShouldNotBeAppliedToPageHandlerMethods,
16
DiagnosticDescriptors
.MVC1003_RouteAttributesShouldNotBeAppliedToPageModels);
90
DiagnosticDescriptors
.MVC1003_RouteAttributesShouldNotBeAppliedToPageModels,
104
DiagnosticDescriptors
.MVC1002_RouteAttributesShouldNotBeAppliedToPageHandlerMethods,
118
DiagnosticDescriptors
.MVC1001_FiltersShouldNotBeAppliedToPageHandlerMethods,
AvoidHtmlPartialAnalyzer.cs (1)
15
: base(
DiagnosticDescriptors
.MVC1000_HtmlHelperPartialShouldBeAvoided)
TagHelpersInCodeBlocksAnalyzer.cs (2)
17
SupportedDiagnostics = ImmutableArray.Create(
DiagnosticDescriptors
.MVC1006_FunctionsContainingTagHelpersMustBeAsyncAndReturnTask);
97
Diagnostic.Create(
DiagnosticDescriptors
.MVC1006_FunctionsContainingTagHelpersMustBeAsyncAndReturnTask, location));
TopLevelParameterNameAnalyzer.cs (2)
17
DiagnosticDescriptors
.MVC1004_ParameterNameCollidesWithTopLevelProperty);
75
DiagnosticDescriptors
.MVC1004_ParameterNameCollidesWithTopLevelProperty,
Mvc.Analyzers.Test (11)
AttributesShouldNotBeAppliedToPageModelAnalyzerTest.cs (8)
180
var diagnosticResult = new DiagnosticResult(
DiagnosticDescriptors
.MVC1001_FiltersShouldNotBeAppliedToPageHandlerMethods)
210
var diagnosticResult = new DiagnosticResult(
DiagnosticDescriptors
.MVC1001_FiltersShouldNotBeAppliedToPageHandlerMethods)
234
var diagnosticResult = new DiagnosticResult(
DiagnosticDescriptors
.MVC1001_FiltersShouldNotBeAppliedToPageHandlerMethods)
259
var diagnosticResult = new DiagnosticResult(
DiagnosticDescriptors
.MVC1001_FiltersShouldNotBeAppliedToPageHandlerMethods)
289
var diagnosticResult = new DiagnosticResult(
DiagnosticDescriptors
.MVC1001_FiltersShouldNotBeAppliedToPageHandlerMethods)
313
var diagnosticResult = new DiagnosticResult(
DiagnosticDescriptors
.MVC1003_RouteAttributesShouldNotBeAppliedToPageModels)
342
var diagnosticResult = new DiagnosticResult(
DiagnosticDescriptors
.MVC1001_FiltersShouldNotBeAppliedToPageHandlerMethods)
366
var diagnosticResult = new DiagnosticResult(
DiagnosticDescriptors
.MVC1002_RouteAttributesShouldNotBeAppliedToPageHandlerMethods)
AvoidHtmlPartialAnalyzerTest.cs (1)
15
private static readonly DiagnosticDescriptor DiagnosticDescriptor =
DiagnosticDescriptors
.MVC1000_HtmlHelperPartialShouldBeAvoided;
TagHelpersInCodeBlocksAnalyzerTest.cs (1)
15
private readonly DiagnosticDescriptor DiagnosticDescriptor =
DiagnosticDescriptors
.MVC1006_FunctionsContainingTagHelpersMustBeAsyncAndReturnTask;
TopLevelParameterNameAnalyzerTest.cs (1)
15
private static readonly DiagnosticResult Diagnostic = new(
DiagnosticDescriptors
.MVC1004_ParameterNameCollidesWithTopLevelProperty);