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