60 references to DiagnosticDescriptors
Microsoft.AspNetCore.App.Analyzers (60)
Authorization\AddAuthorizationBuilderAnalyzer.cs (2)
19public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DiagnosticDescriptors.UseAddAuthorizationBuilder); 231DiagnosticDescriptors.UseAddAuthorizationBuilder,
Http\HeaderDictionaryAddAnalyzer.cs (2)
17public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DiagnosticDescriptors.DoNotUseIHeaderDictionaryAdd); 75DiagnosticDescriptors.DoNotUseIHeaderDictionaryAdd,
Http\HeaderDictionaryIndexerAnalyzer.cs (2)
16public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DiagnosticDescriptors.UseHeaderDictionaryPropertiesInsteadOfIndexer); 176DiagnosticDescriptors.UseHeaderDictionaryPropertiesInsteadOfIndexer,
Http\RequestDelegateReturnTypeAnalyzer.cs (2)
17public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DiagnosticDescriptors.DoNotReturnValueFromRequestDelegate); 79DiagnosticDescriptors.DoNotReturnValueFromRequestDelegate,
Kestrel\ListenOnIPv6AnyAnalyzer.cs (3)
17public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => [ DiagnosticDescriptors.KestrelShouldListenOnIPv6AnyInsteadOfIpAny ]; 69context.ReportDiagnostic(Diagnostic.Create(DiagnosticDescriptors.KestrelShouldListenOnIPv6AnyInsteadOfIpAny, ipAddressArgumentSyntax.GetLocation())); 94context.ReportDiagnostic(Diagnostic.Create(DiagnosticDescriptors.KestrelShouldListenOnIPv6AnyInsteadOfIpAny, ipAddressArgumentSyntax.GetLocation()));
Mvc\DetectAmbiguousActionRoutes.cs (1)
43DiagnosticDescriptors.AmbiguousActionRoute,
Mvc\DetectOverriddenAuthorizeAttribute.cs (1)
217DiagnosticDescriptors.OverriddenAuthorizeAttribute,
Mvc\MvcAnalyzer.cs (2)
25DiagnosticDescriptors.AmbiguousActionRoute, 26DiagnosticDescriptors.OverriddenAuthorizeAttribute
RenderTreeBuilder\RenderTreeBuilderAnalyzer.cs (2)
19public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DiagnosticDescriptors.DoNotUseNonLiteralSequenceNumbers); 46DiagnosticDescriptors.DoNotUseNonLiteralSequenceNumbers,
RouteEmbeddedLanguage\RoutePatternAnalyzer.cs (6)
23DiagnosticDescriptors.RoutePatternIssue, 24DiagnosticDescriptors.RoutePatternUnusedParameter 61DiagnosticDescriptors.RoutePatternIssue, 63DiagnosticDescriptors.RoutePatternIssue.DefaultSeverity, 104DiagnosticDescriptors.RoutePatternUnusedParameter, 106DiagnosticDescriptors.RoutePatternUnusedParameter.DefaultSeverity,
RouteHandlers\AtMostOneFromBodyAttribute.cs (1)
55DiagnosticDescriptors.AtMostOneFromBodyAttribute,
RouteHandlers\DetectAmbiguousRoutes.cs (1)
41DiagnosticDescriptors.AmbiguousRouteHandlerRoute,
RouteHandlers\DetectMismatchedParameterOptionality.cs (1)
37DiagnosticDescriptors.DetectMismatchedParameterOptionality,
RouteHandlers\DetectMisplacedLambdaAttribute.cs (1)
48DiagnosticDescriptors.DetectMisplacedLambdaAttribute,
RouteHandlers\DisallowMvcBindArgumentsOnParameters.cs (1)
39DiagnosticDescriptors.DoNotUseModelBindingAttributesOnRouteHandlerParameters,
RouteHandlers\DisallowNonParsableComplexTypesOnParameters.cs (2)
75DiagnosticDescriptors.RouteParameterComplexTypeIsNotParsable, 104DiagnosticDescriptors.RouteParameterComplexTypeIsNotParsable,
RouteHandlers\DisallowReturningActionResultFromMapMethods.cs (2)
48DiagnosticDescriptors.DoNotReturnActionResultsFromRouteHandlers, 82DiagnosticDescriptors.DoNotReturnActionResultsFromRouteHandlers,
RouteHandlers\RouteHandlerAnalyzer.cs (8)
24DiagnosticDescriptors.DoNotUseModelBindingAttributesOnRouteHandlerParameters, 25DiagnosticDescriptors.DoNotReturnActionResultsFromRouteHandlers, 26DiagnosticDescriptors.DetectMisplacedLambdaAttribute, 27DiagnosticDescriptors.DetectMismatchedParameterOptionality, 28DiagnosticDescriptors.RouteParameterComplexTypeIsNotParsable, 29DiagnosticDescriptors.BindAsyncSignatureMustReturnValueTaskOfT, 30DiagnosticDescriptors.AmbiguousRouteHandlerRoute, 31DiagnosticDescriptors.AtMostOneFromBodyAttribute
WebApplicationBuilder\PublicPartialProgramClassAnalyzer.cs (2)
16public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(DiagnosticDescriptors.PublicPartialProgramClassNotRequired); 28DiagnosticDescriptors.PublicPartialProgramClassNotRequired,
WebApplicationBuilder\WebApplicationBuilderAnalyzer.cs (18)
22DiagnosticDescriptors.DoNotUseConfigureWebHostWithConfigureHostBuilder, 23DiagnosticDescriptors.DoNotUseConfigureWithConfigureWebHostBuilder, 24DiagnosticDescriptors.DoNotUseUseStartupWithConfigureWebHostBuilder, 25DiagnosticDescriptors.DoNotUseHostConfigureLogging, 26DiagnosticDescriptors.DoNotUseHostConfigureServices, 27DiagnosticDescriptors.DisallowConfigureAppConfigureHostBuilder, 28DiagnosticDescriptors.UseTopLevelRouteRegistrationsInsteadOfUseEndpoints 89DiagnosticDescriptors.DoNotUseConfigureWebHostWithConfigureHostBuilder, 105DiagnosticDescriptors.DoNotUseConfigureWithConfigureWebHostBuilder, 121DiagnosticDescriptors.DoNotUseUseStartupWithConfigureWebHostBuilder, 137DiagnosticDescriptors.DoNotUseHostConfigureLogging, 153DiagnosticDescriptors.DoNotUseHostConfigureLogging, 169DiagnosticDescriptors.DoNotUseHostConfigureServices, 185DiagnosticDescriptors.DoNotUseHostConfigureServices, 201DiagnosticDescriptors.DisallowConfigureAppConfigureHostBuilder, 217DiagnosticDescriptors.DisallowConfigureAppConfigureHostBuilder, 233DiagnosticDescriptors.DisallowConfigureAppConfigureHostBuilder, 251DiagnosticDescriptors.UseTopLevelRouteRegistrationsInsteadOfUseEndpoints,