91 references to DiagnosticDescriptor
BuildActionTelemetryTable (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
262return new DiagnosticDescriptor(descriptor.Id, descriptor.Title, messageFormat,
ConfigurationSchemaGenerator (1)
RuntimeSource\Roslyn\DiagnosticDescriptorHelper.cs (1)
22return new DiagnosticDescriptor(id, title, messageFormat, category, defaultSeverity, isEnabledByDefault, description, helpLink, customTags);
ILLink.RoslynAnalyzer (1)
DiagnosticDescriptors.cs (1)
53 return new DiagnosticDescriptor (diagnosticId.AsString (),
Microsoft.AspNetCore.App.Analyzers (26)
DiagnosticDescriptors.cs (26)
11internal static readonly DiagnosticDescriptor DoNotUseModelBindingAttributesOnRouteHandlerParameters = new( 20internal static readonly DiagnosticDescriptor DoNotReturnActionResultsFromRouteHandlers = new( 29internal static readonly DiagnosticDescriptor DetectMisplacedLambdaAttribute = new( 38internal static readonly DiagnosticDescriptor DoNotUseNonLiteralSequenceNumbers = new( 47internal static readonly DiagnosticDescriptor DetectMismatchedParameterOptionality = new( 56internal static readonly DiagnosticDescriptor DoNotUseConfigureWebHostWithConfigureHostBuilder = new( 65internal static readonly DiagnosticDescriptor DoNotUseConfigureWithConfigureWebHostBuilder = new( 74internal static readonly DiagnosticDescriptor DoNotUseUseStartupWithConfigureWebHostBuilder = new( 83internal static readonly DiagnosticDescriptor DoNotUseHostConfigureLogging = new( 92internal static readonly DiagnosticDescriptor DoNotUseHostConfigureServices = new( 101internal static readonly DiagnosticDescriptor DisallowConfigureAppConfigureHostBuilder = new( 110internal static readonly DiagnosticDescriptor UseTopLevelRouteRegistrationsInsteadOfUseEndpoints = new( 119internal static readonly DiagnosticDescriptor UseHeaderDictionaryPropertiesInsteadOfIndexer = new( 128internal static readonly DiagnosticDescriptor DoNotReturnValueFromRequestDelegate = new( 137internal static readonly DiagnosticDescriptor RoutePatternIssue = new( 146internal static readonly DiagnosticDescriptor RoutePatternUnusedParameter = new( 155internal static readonly DiagnosticDescriptor DoNotUseIHeaderDictionaryAdd = new( 164internal static readonly DiagnosticDescriptor RouteParameterComplexTypeIsNotParsable = new( 173internal static readonly DiagnosticDescriptor BindAsyncSignatureMustReturnValueTaskOfT = new( 182internal static readonly DiagnosticDescriptor AmbiguousRouteHandlerRoute = new( 191internal static readonly DiagnosticDescriptor AmbiguousActionRoute = new( 200internal static readonly DiagnosticDescriptor AtMostOneFromBodyAttribute = new( 209internal static readonly DiagnosticDescriptor UseAddAuthorizationBuilder = new( 218internal static readonly DiagnosticDescriptor OverriddenAuthorizeAttribute = new( 227internal static readonly DiagnosticDescriptor PublicPartialProgramClassNotRequired = new( 237internal static readonly DiagnosticDescriptor KestrelShouldListenOnIPv6AnyInsteadOfIpAny = new(
Microsoft.AspNetCore.Components.Analyzers (7)
DiagnosticDescriptors.cs (7)
11public static readonly DiagnosticDescriptor ComponentParameterSettersShouldBePublic = new DiagnosticDescriptor( 20public static readonly DiagnosticDescriptor ComponentParameterCaptureUnmatchedValuesMustBeUnique = new DiagnosticDescriptor( 29public static readonly DiagnosticDescriptor ComponentParameterCaptureUnmatchedValuesHasWrongType = new DiagnosticDescriptor( 38public static readonly DiagnosticDescriptor ComponentParametersShouldBePublic = new DiagnosticDescriptor( 47public static readonly DiagnosticDescriptor ComponentParametersShouldNotBeSetOutsideOfTheirDeclaredComponent = new DiagnosticDescriptor( 56public static readonly DiagnosticDescriptor DoNotUseRenderTreeTypes = new DiagnosticDescriptor( 65public static readonly DiagnosticDescriptor ComponentParametersShouldBeAutoProperties = new(
Microsoft.AspNetCore.Components.SdkAnalyzers (6)
DiagnosticDescriptors.cs (6)
15public static readonly DiagnosticDescriptor ComponentParameterSettersShouldBePublic = new DiagnosticDescriptor( 24public static readonly DiagnosticDescriptor ComponentParameterCaptureUnmatchedValuesMustBeUnique = new DiagnosticDescriptor( 33public static readonly DiagnosticDescriptor ComponentParameterCaptureUnmatchedValuesHasWrongType = new DiagnosticDescriptor( 42public static readonly DiagnosticDescriptor ComponentParametersShouldBePublic = new DiagnosticDescriptor( 51public static readonly DiagnosticDescriptor ComponentParametersShouldNotBeSetOutsideOfTheirDeclaredComponent = new DiagnosticDescriptor( 60public static readonly DiagnosticDescriptor DoNotUseRenderTreeTypes = new DiagnosticDescriptor(
Microsoft.AspNetCore.Http.RequestDelegateGenerator (13)
DiagnosticDescriptors.cs (13)
12public static DiagnosticDescriptor UnableToResolveRoutePattern { get; } = new( 21public static DiagnosticDescriptor UnableToResolveMethod { get; } = new( 30public static DiagnosticDescriptor UnableToResolveParameterDescriptor { get; } = new( 39public static DiagnosticDescriptor UnableToResolveAnonymousReturnType { get; } = new( 48public static DiagnosticDescriptor InvalidAsParametersAbstractType { get; } = new( 57public static DiagnosticDescriptor InvalidAsParametersSignature { get; } = new( 66public static DiagnosticDescriptor InvalidAsParametersNoConstructorFound { get; } = new( 75public static DiagnosticDescriptor InvalidAsParametersSingleConstructorOnly { get; } = new( 84public static DiagnosticDescriptor InvalidAsParametersNested { get; } = new( 93public static DiagnosticDescriptor InvalidAsParametersNullable { get; } = new( 102public static DiagnosticDescriptor TypeParametersNotSupported { get; } = new( 111public static DiagnosticDescriptor InaccessibleTypesNotSupported { get; } = new( 120public static DiagnosticDescriptor KeyedAndNotKeyedServiceAttributesNotSupported { get; } = new(
Microsoft.CodeAnalysis (2)
Diagnostic\DiagnosticDescriptor.cs (1)
81/// use constructor overload <see cref="DiagnosticDescriptor(string, LocalizableString, LocalizableString, string, DiagnosticSeverity, bool, LocalizableString, string, string[])"/>.
SourceGeneration\GeneratorDriver.cs (1)
407var descriptor = new DiagnosticDescriptor(
Microsoft.CodeAnalysis.CodeStyle (4)
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (1)
59=> new(
src\Analyzers\Core\Analyzers\AbstractCodeQualityDiagnosticAnalyzer.cs (1)
50=> new(
src\Analyzers\Core\Analyzers\ValidateFormatString\AbstractValidateFormatStringDiagnosticAnalyzer.cs (1)
34private static readonly DiagnosticDescriptor Rule = new(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
262return new DiagnosticDescriptor(descriptor.Id, descriptor.Title, messageFormat,
Microsoft.CodeAnalysis.Features (5)
EditAndContinue\EditAndContinueDiagnosticDescriptors.cs (2)
47builder[index] = new DiagnosticDescriptor( 193s_lazyModuleDiagnosticDescriptors.Add(status, descriptor = new DiagnosticDescriptor(
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (1)
59=> new(
src\Analyzers\Core\Analyzers\AbstractCodeQualityDiagnosticAnalyzer.cs (1)
50=> new(
src\Analyzers\Core\Analyzers\ValidateFormatString\AbstractValidateFormatStringDiagnosticAnalyzer.cs (1)
34private static readonly DiagnosticDescriptor Rule = new(
Microsoft.CodeAnalysis.Test.Utilities (3)
Diagnostics\BoxingOperationAnalyzer.cs (1)
24public static readonly DiagnosticDescriptor BoxingDescriptor = new DiagnosticDescriptor(
Diagnostics\CommonDiagnosticAnalyzers.cs (1)
990public static readonly DiagnosticDescriptor Rule = new DiagnosticDescriptor(
Diagnostics\EmptyArrayAnalyzer.cs (1)
29public static readonly DiagnosticDescriptor UseArrayEmptyDescriptor = new DiagnosticDescriptor(
Microsoft.CodeAnalysis.UnitTests (3)
Diagnostics\DiagnosticLocalizationTests.cs (3)
62descriptor = new DiagnosticDescriptor( 338return new DiagnosticDescriptor( 355return new DiagnosticDescriptor(
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
262return new DiagnosticDescriptor(descriptor.Id, descriptor.Title, messageFormat,
Microsoft.Extensions.Logging.Generators (1)
src\libraries\Common\src\Roslyn\DiagnosticDescriptorHelper.cs (1)
22return new DiagnosticDescriptor(id, title, messageFormat, category, defaultSeverity, isEnabledByDefault, description, helpLink, customTags);
Microsoft.Interop.ComInterfaceGenerator (3)
GeneratorDiagnostics.cs (2)
491new DiagnosticDescriptor( 502new DiagnosticDescriptor(
src\libraries\Common\src\Roslyn\DiagnosticDescriptorHelper.cs (1)
22return new DiagnosticDescriptor(id, title, messageFormat, category, defaultSeverity, isEnabledByDefault, description, helpLink, customTags);
Microsoft.Interop.JavaScript.JSImportGenerator (1)
src\libraries\Common\src\Roslyn\DiagnosticDescriptorHelper.cs (1)
22return new DiagnosticDescriptor(id, title, messageFormat, category, defaultSeverity, isEnabledByDefault, description, helpLink, customTags);
Microsoft.Interop.LibraryImportGenerator (2)
GeneratorDiagnostics.cs (1)
259new DiagnosticDescriptor(
src\libraries\Common\src\Roslyn\DiagnosticDescriptorHelper.cs (1)
22return new DiagnosticDescriptor(id, title, messageFormat, category, defaultSeverity, isEnabledByDefault, description, helpLink, customTags);
Microsoft.Interop.LibraryImportGenerator.Downlevel (2)
GeneratorDiagnostics.cs (1)
259new DiagnosticDescriptor(
src\libraries\Common\src\Roslyn\DiagnosticDescriptorHelper.cs (1)
22return new DiagnosticDescriptor(id, title, messageFormat, category, defaultSeverity, isEnabledByDefault, description, helpLink, customTags);
System.Text.Json.SourceGeneration (1)
src\libraries\Common\src\Roslyn\DiagnosticDescriptorHelper.cs (1)
22return new DiagnosticDescriptor(id, title, messageFormat, category, defaultSeverity, isEnabledByDefault, description, helpLink, customTags);
System.Text.RegularExpressions.Generator (1)
src\libraries\Common\src\Roslyn\DiagnosticDescriptorHelper.cs (1)
22return new DiagnosticDescriptor(id, title, messageFormat, category, defaultSeverity, isEnabledByDefault, description, helpLink, customTags);
System.Windows.Forms.Analyzers (2)
System\Windows\Forms\Analyzers\Diagnostics\SharedDiagnosticDescriptors.cs (2)
12new(id: DiagnosticIDs.MigrateHighDpiSettings, 20new(id: DiagnosticIDs.MigrateHighDpiSettings,
System.Windows.Forms.Analyzers.CSharp (5)
System\Windows\Forms\CSharp\Analyzers\Diagnostics\CSharpDiagnosticDescriptors.cs (5)
13new(id: DiagnosticIDs.UnsupportedProjectType, 21new(id: DiagnosticIDs.PropertyCantBeSetToValue, 29new(id: DiagnosticIDs.PropertyCantBeSetToValue, 37new(id: DiagnosticIDs.MissingPropertySerializationConfiguration, 46new(DiagnosticIDs.AvoidPassingFuncReturningTaskWithoutCancellationToken,