89 references to DiagnosticDescriptor
Aspire.Hosting.Analyzers (1)
AppHostAnalyzer.Diagnostics.cs (1)
14internal static readonly DiagnosticDescriptor s_modelNameMustBeValid = new(
Aspire.Hosting.Integration.Analyzers (10)
AspireExportAnalyzer.Diagnostics.cs (10)
14internal static readonly DiagnosticDescriptor s_exportMethodMustBeStatic = new( 24internal static readonly DiagnosticDescriptor s_invalidExportIdFormat = new( 34internal static readonly DiagnosticDescriptor s_returnTypeMustBeAtsCompatible = new( 44internal static readonly DiagnosticDescriptor s_parameterTypeMustBeAtsCompatible = new( 54internal static readonly DiagnosticDescriptor s_unionRequiresAtLeastTwoTypes = new( 64internal static readonly DiagnosticDescriptor s_unionTypeMustBeAtsCompatible = new( 74internal static readonly DiagnosticDescriptor s_duplicateExportId = new( 85internal static readonly DiagnosticDescriptor s_missingExportAttribute = new( 95internal static readonly DiagnosticDescriptor s_exportNameShouldBeUnique = new( 105internal static readonly DiagnosticDescriptor s_exportedSyncDelegateInvokedInline = new(
ConfigurationSchemaGenerator (1)
DiagnosticDescriptors.cs (1)
28public static DiagnosticDescriptor PropertyNotSupported { get; } = new DiagnosticDescriptor(
EventSourceGenerator (2)
EventSourceGenerator.Parser.cs (2)
58new DiagnosticDescriptor( 87new DiagnosticDescriptor(
ILLink.RoslynAnalyzer (3)
DiagnosticDescriptors.cs (3)
14return new DiagnosticDescriptor(diagnosticId.AsString(), 24=> new DiagnosticDescriptor(diagnosticId.AsString(), 45return new DiagnosticDescriptor(diagnosticId.AsString(),
Microsoft.Analyzers.Extra (1)
DiagDescriptors.cs (1)
134return new(
Microsoft.Analyzers.Local (1)
DiagDescriptors.cs (1)
115=> new(id, title, messageFormat, category, defaultSeverity, true, description);
Microsoft.AspNetCore.Analyzers (3)
StartupAnalyzer.Diagnostics.cs (3)
15internal static readonly DiagnosticDescriptor BuildServiceProviderShouldNotCalledInConfigureServicesMethod = new DiagnosticDescriptor( 24internal static readonly DiagnosticDescriptor UnsupportedUseMvcWithEndpointRouting = new DiagnosticDescriptor( 33internal static readonly DiagnosticDescriptor IncorrectlyConfiguredAuthorizationMiddleware = new DiagnosticDescriptor(
Microsoft.AspNetCore.Mvc.Analyzers (6)
DiagnosticDescriptors.cs (6)
15new DiagnosticDescriptor( 24new DiagnosticDescriptor( 33new DiagnosticDescriptor( 42new DiagnosticDescriptor( 51new DiagnosticDescriptor( 64new DiagnosticDescriptor(
Microsoft.AspNetCore.Mvc.Api.Analyzers (4)
ApiDiagnosticDescriptors.cs (4)
14new DiagnosticDescriptor( 23new DiagnosticDescriptor( 32new DiagnosticDescriptor( 41new DiagnosticDescriptor(
Microsoft.CodeAnalysis (5)
CommandLine\AnalyzerConfigSet.cs (3)
95= new DiagnosticDescriptor( 104= new DiagnosticDescriptor( 113= new DiagnosticDescriptor(
CommandLine\CommonCompiler.SuppressionDiagnostic.cs (1)
20private static readonly DiagnosticDescriptor s_suppressionDiagnosticDescriptor = new DiagnosticDescriptor(
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
1468return new DiagnosticDescriptor(
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (1)
35private static readonly DiagnosticDescriptor s_dummyDataflowAnalysisDescriptor = new(
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (1)
34private static readonly DiagnosticDescriptor s_enableGenerateDocumentationFileIdDescriptor = new(
Microsoft.CodeAnalysis.Features (2)
Diagnostics\Service\DocumentAnalysisExecutor_Helpers.cs (1)
35var descriptor = new DiagnosticDescriptor(AnalyzerExceptionDiagnosticId,
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (1)
34private static readonly DiagnosticDescriptor s_enableGenerateDocumentationFileIdDescriptor = new(
Microsoft.CodeAnalysis.Razor.Compiler (1)
SourceGenerators\Diagnostics\RazorDiagnostics.cs (1)
94var descriptor = new DiagnosticDescriptor(
Microsoft.CodeAnalysis.Workspaces (1)
Diagnostics\DiagnosticDescriptorData.cs (1)
59return new DiagnosticDescriptor(
Microsoft.DotNet.CodeAnalysis (6)
Analyzers\AppContextDefaultsAnalyzer.cs (3)
27new DiagnosticDescriptor(DiagnosticIds.BCL0010.ToString(), s_title, CreateDiagnosticMessage(s_defaultValueNotInitializedToTrue, DiagnosticIds.BCL0010.ToString()), s_analyzerName, DiagnosticSeverity.Error, isEnabledByDefault: true, description: s_description); 30new DiagnosticDescriptor(DiagnosticIds.BCL0011.ToString(), s_title, CreateDiagnosticMessage(s_defaultValueInsideUnexpectedIfCondition, DiagnosticIds.BCL0011.ToString()), s_analyzerName, DiagnosticSeverity.Error, isEnabledByDefault: true, description: s_description); 33new DiagnosticDescriptor(DiagnosticIds.BCL0012.ToString(), s_title, CreateDiagnosticMessage(s_defaultValueDefinedOutsideIfCondition, DiagnosticIds.BCL0012.ToString()), s_analyzerName, DiagnosticSeverity.Error, isEnabledByDefault: true, description: s_description);
Analyzers\MembersMustExistAnalyzer.cs (1)
26new DiagnosticDescriptor(DiagnosticIds.BCL0001.ToString(), s_title, s_messageFormat, s_analyzerName, DiagnosticSeverity.Error, isEnabledByDefault: true, description: s_description, customTags: WellKnownDiagnosticTags.CompilationEnd);
Analyzers\PinvokeAnalyzer.cs (1)
24private static DiagnosticDescriptor InvalidPinvokeCall = new DiagnosticDescriptor(DiagnosticIds.BCL0015.ToString(), Title, MessageFormat, AnalyzerName, DiagnosticSeverity.Error, isEnabledByDefault: true, description: Description);
Analyzers\ResourceUsageAnalyzer.cs (1)
19private static DiagnosticDescriptor InvalidSRFormatCall = new DiagnosticDescriptor(DiagnosticIds.BCL0020.ToString(), Title, "", AnalyzerName, DiagnosticSeverity.Error, isEnabledByDefault: true, description: Description);
Microsoft.Extensions.Options.SourceGeneration (1)
DiagDescriptorsBase.cs (1)
21return new(
Microsoft.Gen.BuildMetadata (1)
src\Generators\Shared\DiagDescriptorsBase.cs (1)
28return new(
Microsoft.Gen.ComplianceReports (1)
ComplianceReportsGenerator.cs (1)
92var diagnostic = new DiagnosticDescriptor(
Microsoft.Gen.ContextualOptions (1)
src\Generators\Shared\DiagDescriptorsBase.cs (1)
28return new(
Microsoft.Gen.Logging (1)
src\Generators\Shared\DiagDescriptorsBase.cs (1)
28return new(
Microsoft.Gen.MetadataExtractor (4)
MetadataReportsGenerator.cs (1)
81var diagnostic = new DiagnosticDescriptor(
src\Generators\Microsoft.Gen.ComplianceReports\ComplianceReportsGenerator.cs (1)
92var diagnostic = new DiagnosticDescriptor(
src\Generators\Microsoft.Gen.MetricsReports\MetricsReportsGenerator.cs (1)
56var diagnostic = new DiagnosticDescriptor(
src\Generators\Shared\DiagDescriptorsBase.cs (1)
28return new(
Microsoft.Gen.Metrics (1)
src\Generators\Shared\DiagDescriptorsBase.cs (1)
28return new(
Microsoft.Gen.MetricsReports (2)
MetricsReportsGenerator.cs (1)
56var diagnostic = new DiagnosticDescriptor(
src\Generators\Shared\DiagDescriptorsBase.cs (1)
28return new(
Microsoft.Maui.Controls.BindingSourceGen (10)
DiagnosticsFactory.cs (10)
21 new DiagnosticDescriptor( 32 new DiagnosticDescriptor( 43 new DiagnosticDescriptor( 54 new DiagnosticDescriptor( 65 new DiagnosticDescriptor( 76 new DiagnosticDescriptor( 87 new DiagnosticDescriptor( 98 new DiagnosticDescriptor( 109 new DiagnosticDescriptor( 120 new DiagnosticDescriptor(
Microsoft.ML.CodeAnalyzer.Tests (1)
Code\RelaxTestNamingTest.cs (1)
107public static readonly DiagnosticDescriptor Rule = new DiagnosticDescriptor(RelaxTestNamingSuppressor.Rule.SuppressedDiagnosticId, "Title", "Message", "Category", DiagnosticSeverity.Warning, isEnabledByDefault: true);
Microsoft.ML.InternalCodeAnalyzer (13)
BaseTestClassAnalyzer.cs (1)
25new DiagnosticDescriptor(DiagnosticId, Title, Format, Category,
BestFriendAnalyzer.cs (1)
30new DiagnosticDescriptor(DiagnosticId, Title, Format, Category,
BestFriendOnPublicDeclarationsAnalyzer.cs (1)
26new DiagnosticDescriptor(DiagnosticId, Title, Format, Category,
ContractsCheckAnalyzer.cs (4)
33new DiagnosticDescriptor(Id, Title, Format, Category, 47new DiagnosticDescriptor(Id, Title, Format, Category, 58new DiagnosticDescriptor(Id, Title, Format, Category, 70new DiagnosticDescriptor(Id, Title, Format, Category,
InstanceInitializerAnalyzer.cs (1)
24new DiagnosticDescriptor(DiagnosticId, Title, Format, Category,
NameAnalyzer.cs (2)
54new DiagnosticDescriptor(Id, Title, Format, Category, 67new DiagnosticDescriptor(Id, Title, Format, Category,
ParameterVariableNameAnalyzer.cs (1)
26new DiagnosticDescriptor(Id, Title, Format, Category,
SingleVariableDeclarationAnalyzer.cs (1)
26new DiagnosticDescriptor(DiagnosticId, Title, Format, Category,
TypeParamNameAnalyzer.cs (1)
25new DiagnosticDescriptor(Id, Title, Format, Category,
System.Private.CoreLib.Generators (4)
IntrinsicsInSystemPrivateCoreLibAnalyzer.cs (4)
34private static readonly DiagnosticDescriptor Rule = new DiagnosticDescriptor(DiagnosticId, Title, MessageFormat, Category, DiagnosticSeverity.Error, isEnabledByDefault: true, description: Description); 38private static readonly DiagnosticDescriptor RuleHelper = new DiagnosticDescriptor(DiagnosticIdHelper, Title, MessageHelperFormat, Category, DiagnosticSeverity.Error, isEnabledByDefault: true, description: Description); 42private static readonly DiagnosticDescriptor RuleCantParse = new DiagnosticDescriptor(DiagnosticIdConditionParsing, Title, MessageNonParseableConditionFormat, Category, DiagnosticSeverity.Error, isEnabledByDefault: true, description: Description); 46private static readonly DiagnosticDescriptor RuleAttributeNotSpecificEnough = new DiagnosticDescriptor(DiagnosticIdAttributeNotSpecificEnough, Title, MessageAttributeNotSpecificEnoughFormat, Category, DiagnosticSeverity.Error, isEnabledByDefault: true, description: Description);