224 references to WellKnownDiagnosticTags
Aspire.Hosting.Integration.Analyzers (1)
AspireExportAnalyzer.Diagnostics.cs (1)
82customTags: [WellKnownDiagnosticTags.CompilationEnd]);
dotnet-format (2)
Analyzers\AnalyzerOptionExtensions.cs (2)
64descriptor.CustomTags.Any(tag => tag == WellKnownDiagnosticTags.Compiler || tag == WellKnownDiagnosticTags.NotConfigurable))
GenerateDocumentationAndConfigFiles (17)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\WellKnownDiagnosticTagsExtensions.cs (5)
12public static readonly string[] DataflowAndTelemetry = [Dataflow, WellKnownDiagnosticTags.Telemetry]; 13public static readonly string[] DataflowAndTelemetryEnabledInAggressiveMode = [Dataflow, WellKnownDiagnosticTags.Telemetry, EnabledRuleInAggressiveMode]; 15public static readonly string[] Telemetry = [WellKnownDiagnosticTags.Telemetry]; 16public static readonly string[] TelemetryEnabledInAggressiveMode = [WellKnownDiagnosticTags.Telemetry, EnabledRuleInAggressiveMode]; 17public static readonly string[] CompilationEndAndTelemetry = [CompilationEnd, WellKnownDiagnosticTags.Telemetry];
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\FxCopWellKnownDiagnosticTags.cs (4)
13public static readonly string[] PortedFxCopRule = [PortedFromFxCop, WellKnownDiagnosticTags.Telemetry]; 14public static readonly string[] PortedFxCopRuleEnabledInAggressiveMode = [PortedFromFxCop, WellKnownDiagnosticTags.Telemetry, WellKnownDiagnosticTagsExtensions.EnabledRuleInAggressiveMode]; 16public static readonly string[] PortedFxCopDataflowRule = [PortedFromFxCop, WellKnownDiagnosticTagsExtensions.Dataflow, WellKnownDiagnosticTags.Telemetry]; 17public static readonly string[] PortedFxCopDataflowRuleEnabledInAggressiveMode = [PortedFromFxCop, WellKnownDiagnosticTagsExtensions.Dataflow, WellKnownDiagnosticTags.Telemetry, WellKnownDiagnosticTagsExtensions.EnabledRuleInAggressiveMode];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (7)
113descriptor.ImmutableCustomTags().Any(static tag => tag is WellKnownDiagnosticTags.Compiler or WellKnownDiagnosticTags.NotConfigurable)) 180descriptor.ImmutableCustomTags().Any(static tag => tag is WellKnownDiagnosticTags.Compiler or WellKnownDiagnosticTags.NotConfigurable)) 224descriptor.ImmutableCustomTags().Any(static tag => tag is WellKnownDiagnosticTags.Compiler or WellKnownDiagnosticTags.NotConfigurable)) 252=> descriptor.ImmutableCustomTags().Contains(WellKnownDiagnosticTags.CompilationEnd);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
46=> !diagnostic.Descriptor.ImmutableCustomTags().Contains(WellKnownDiagnosticTags.Unnecessary);
Microsoft.AspNetCore.App.Analyzers (1)
DiagnosticDescriptors.cs (1)
215customTags: WellKnownDiagnosticTags.Unnecessary);
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
ApiDiagnosticDescriptors.cs (1)
48customTags: new[] { WellKnownDiagnosticTags.Unnecessary });
Microsoft.CodeAnalysis (21)
Diagnostic\CustomObsoleteDiagnosticInfo.cs (1)
91customTags = baseDescriptor.ImmutableCustomTags.Add(WellKnownDiagnosticTags.CustomObsolete);
Diagnostic\Diagnostic.cs (2)
186/// An optional set of custom tags for the diagnostic. See <see cref="WellKnownDiagnosticTags"/> for some well known tags. 236/// An optional set of custom tags for the diagnostic. See <see cref="WellKnownDiagnosticTags"/> for some well known tags.
Diagnostic\DiagnosticDescriptor.cs (2)
92/// <param name="customTags">Optional custom tags for the diagnostic. See <see cref="WellKnownDiagnosticTags"/> for some well known tags.</param> 122/// <param name="customTags">Optional custom tags for the diagnostic. See <see cref="WellKnownDiagnosticTags"/> for some well known tags.</param>
Diagnostic\DiagnosticInfo.cs (5)
37private static readonly ImmutableArray<string> s_compilerErrorCustomTags = ImmutableArray.Create(WellKnownDiagnosticTags.Compiler, WellKnownDiagnosticTags.Telemetry, WellKnownDiagnosticTags.NotConfigurable); 38private static readonly ImmutableArray<string> s_compilerNonErrorCustomTags = ImmutableArray.Create(WellKnownDiagnosticTags.Compiler, WellKnownDiagnosticTags.Telemetry);
DiagnosticAnalyzer\AnalyzerExecutor.cs (2)
1475customTags: WellKnownDiagnosticTags.AnalyzerException); 1484if (tag == WellKnownDiagnosticTags.AnalyzerException)
DiagnosticAnalyzer\AnalyzerManager.cs (5)
437if (customTag is WellKnownDiagnosticTags.Compiler or WellKnownDiagnosticTags.NotConfigurable or WellKnownDiagnosticTags.CustomSeverityConfigurable) 447=> HasCustomTag(customTags, WellKnownDiagnosticTags.NotConfigurable); 450=> HasCustomTag(customTags, WellKnownDiagnosticTags.CustomSeverityConfigurable);
DiagnosticAnalyzer\DiagnosticAnalysisContext.cs (1)
1895/// 3. Diagnostic is not tagged with <see cref="WellKnownDiagnosticTags.NotConfigurable"/> custom tag.
DiagnosticAnalyzer\DiagnosticSuppressor.cs (1)
36/// 3. Diagnostic is not tagged with <see cref="WellKnownDiagnosticTags.NotConfigurable"/> custom tag.
DiagnosticAnalyzer\SuppressMessageAttributeState.cs (1)
169if (diagnostic.CustomTags.Contains(WellKnownDiagnosticTags.Compiler))
SourceGeneration\GeneratorDriver.cs (1)
439customTags: WellKnownDiagnosticTags.AnalyzerException);
Microsoft.CodeAnalysis.Analyzers (17)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\WellKnownDiagnosticTagsExtensions.cs (5)
12public static readonly string[] DataflowAndTelemetry = [Dataflow, WellKnownDiagnosticTags.Telemetry]; 13public static readonly string[] DataflowAndTelemetryEnabledInAggressiveMode = [Dataflow, WellKnownDiagnosticTags.Telemetry, EnabledRuleInAggressiveMode]; 15public static readonly string[] Telemetry = [WellKnownDiagnosticTags.Telemetry]; 16public static readonly string[] TelemetryEnabledInAggressiveMode = [WellKnownDiagnosticTags.Telemetry, EnabledRuleInAggressiveMode]; 17public static readonly string[] CompilationEndAndTelemetry = [CompilationEnd, WellKnownDiagnosticTags.Telemetry];
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\FxCopWellKnownDiagnosticTags.cs (4)
13public static readonly string[] PortedFxCopRule = [PortedFromFxCop, WellKnownDiagnosticTags.Telemetry]; 14public static readonly string[] PortedFxCopRuleEnabledInAggressiveMode = [PortedFromFxCop, WellKnownDiagnosticTags.Telemetry, WellKnownDiagnosticTagsExtensions.EnabledRuleInAggressiveMode]; 16public static readonly string[] PortedFxCopDataflowRule = [PortedFromFxCop, WellKnownDiagnosticTagsExtensions.Dataflow, WellKnownDiagnosticTags.Telemetry]; 17public static readonly string[] PortedFxCopDataflowRuleEnabledInAggressiveMode = [PortedFromFxCop, WellKnownDiagnosticTagsExtensions.Dataflow, WellKnownDiagnosticTags.Telemetry, WellKnownDiagnosticTagsExtensions.EnabledRuleInAggressiveMode];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (7)
113descriptor.ImmutableCustomTags().Any(static tag => tag is WellKnownDiagnosticTags.Compiler or WellKnownDiagnosticTags.NotConfigurable)) 180descriptor.ImmutableCustomTags().Any(static tag => tag is WellKnownDiagnosticTags.Compiler or WellKnownDiagnosticTags.NotConfigurable)) 224descriptor.ImmutableCustomTags().Any(static tag => tag is WellKnownDiagnosticTags.Compiler or WellKnownDiagnosticTags.NotConfigurable)) 252=> descriptor.ImmutableCustomTags().Contains(WellKnownDiagnosticTags.CompilationEnd);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
46=> !diagnostic.Descriptor.ImmutableCustomTags().Contains(WellKnownDiagnosticTags.Unnecessary);
Microsoft.CodeAnalysis.AnalyzerUtilities (16)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\WellKnownDiagnosticTagsExtensions.cs (5)
12public static readonly string[] DataflowAndTelemetry = [Dataflow, WellKnownDiagnosticTags.Telemetry]; 13public static readonly string[] DataflowAndTelemetryEnabledInAggressiveMode = [Dataflow, WellKnownDiagnosticTags.Telemetry, EnabledRuleInAggressiveMode]; 15public static readonly string[] Telemetry = [WellKnownDiagnosticTags.Telemetry]; 16public static readonly string[] TelemetryEnabledInAggressiveMode = [WellKnownDiagnosticTags.Telemetry, EnabledRuleInAggressiveMode]; 17public static readonly string[] CompilationEndAndTelemetry = [CompilationEnd, WellKnownDiagnosticTags.Telemetry];
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\FxCopWellKnownDiagnosticTags.cs (4)
13public static readonly string[] PortedFxCopRule = [PortedFromFxCop, WellKnownDiagnosticTags.Telemetry]; 14public static readonly string[] PortedFxCopRuleEnabledInAggressiveMode = [PortedFromFxCop, WellKnownDiagnosticTags.Telemetry, WellKnownDiagnosticTagsExtensions.EnabledRuleInAggressiveMode]; 16public static readonly string[] PortedFxCopDataflowRule = [PortedFromFxCop, WellKnownDiagnosticTagsExtensions.Dataflow, WellKnownDiagnosticTags.Telemetry]; 17public static readonly string[] PortedFxCopDataflowRuleEnabledInAggressiveMode = [PortedFromFxCop, WellKnownDiagnosticTagsExtensions.Dataflow, WellKnownDiagnosticTags.Telemetry, WellKnownDiagnosticTagsExtensions.EnabledRuleInAggressiveMode];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (7)
113descriptor.ImmutableCustomTags().Any(static tag => tag is WellKnownDiagnosticTags.Compiler or WellKnownDiagnosticTags.NotConfigurable)) 180descriptor.ImmutableCustomTags().Any(static tag => tag is WellKnownDiagnosticTags.Compiler or WellKnownDiagnosticTags.NotConfigurable)) 224descriptor.ImmutableCustomTags().Any(static tag => tag is WellKnownDiagnosticTags.Compiler or WellKnownDiagnosticTags.NotConfigurable)) 252=> descriptor.ImmutableCustomTags().Contains(WellKnownDiagnosticTags.CompilationEnd);
Microsoft.CodeAnalysis.CodeStyle (40)
src\roslyn\src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer.cs (1)
87Debug.Assert(option is { Definition.DefaultValue: ICodeStyleOption2 } == descriptor.CustomTags.Contains(WellKnownDiagnosticTags.CustomSeverityConfigurable));
src\roslyn\src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (2)
43Debug.Assert(!supportedDiagnostics.Any(descriptor => descriptor.CustomTags.Any(t => t == WellKnownDiagnosticTags.Unnecessary)) || this is AbstractBuiltInUnnecessaryCodeStyleDiagnosticAnalyzer); 207if (descriptor.CustomTags.Contains(WellKnownDiagnosticTags.NotConfigurable))
src\roslyn\src\Analyzers\Core\Analyzers\DiagnosticCustomTags.cs (25)
20Assert(field, WellKnownDiagnosticTags.Telemetry); 23} = [WellKnownDiagnosticTags.Telemetry]; 29Assert(field, WellKnownDiagnosticTags.EditAndContinue, WellKnownDiagnosticTags.Telemetry, WellKnownDiagnosticTags.NotConfigurable, s_enforceOnBuildNeverTag); 32} = [WellKnownDiagnosticTags.EditAndContinue, WellKnownDiagnosticTags.Telemetry, WellKnownDiagnosticTags.NotConfigurable, s_enforceOnBuildNeverTag]; 38Assert(field, WellKnownDiagnosticTags.Unnecessary, WellKnownDiagnosticTags.Telemetry); 41} = [WellKnownDiagnosticTags.Unnecessary, WellKnownDiagnosticTags.Telemetry]; 47Assert(field, WellKnownDiagnosticTags.NotConfigurable, s_enforceOnBuildNeverTag, WellKnownDiagnosticTags.Telemetry); 50} = [WellKnownDiagnosticTags.NotConfigurable, s_enforceOnBuildNeverTag, WellKnownDiagnosticTags.Telemetry]; 56Assert(field, WellKnownDiagnosticTags.Unnecessary, WellKnownDiagnosticTags.NotConfigurable, s_enforceOnBuildNeverTag, WellKnownDiagnosticTags.Telemetry); 59} = [WellKnownDiagnosticTags.Unnecessary, WellKnownDiagnosticTags.NotConfigurable, s_enforceOnBuildNeverTag, WellKnownDiagnosticTags.Telemetry]; 83customTagsBuilder.Add(WellKnownDiagnosticTags.NotConfigurable); 87customTagsBuilder.Add(WellKnownDiagnosticTags.CustomSeverityConfigurable); 92customTagsBuilder.Add(WellKnownDiagnosticTags.Unnecessary);
src\roslyn\src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (5)
117.Add(WellKnownDiagnosticTags.Unnecessary, Enumerable.Range(additionalLocations.Length, additionalUnnecessaryLocations.Length)); 188.Add(WellKnownDiagnosticTags.Unnecessary, Enumerable.Range(additionalLocations.Length, additionalUnnecessaryLocations.Length)); 299if (customTag != WellKnownDiagnosticTags.CustomSeverityConfigurable) 310if (customTag == WellKnownDiagnosticTags.CustomSeverityConfigurable) 321yield return WellKnownDiagnosticTags.CustomSeverityConfigurable;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (7)
113descriptor.ImmutableCustomTags().Any(static tag => tag is WellKnownDiagnosticTags.Compiler or WellKnownDiagnosticTags.NotConfigurable)) 180descriptor.ImmutableCustomTags().Any(static tag => tag is WellKnownDiagnosticTags.Compiler or WellKnownDiagnosticTags.NotConfigurable)) 224descriptor.ImmutableCustomTags().Any(static tag => tag is WellKnownDiagnosticTags.Compiler or WellKnownDiagnosticTags.NotConfigurable)) 252=> descriptor.ImmutableCustomTags().Contains(WellKnownDiagnosticTags.CompilationEnd);
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
src\roslyn\src\Analyzers\Core\CodeFixes\UseCoalesceExpression\UseCoalesceExpressionForNullableTernaryConditionalCheckCodeFixProvider.cs (1)
28=> !diagnostic.Descriptor.ImmutableCustomTags().Contains(WellKnownDiagnosticTags.Unnecessary);
src\roslyn\src\Analyzers\Core\CodeFixes\UseCoalesceExpression\UseCoalesceExpressionForTernaryConditionalCheckCodeFixProvider.cs (1)
29=> !diagnostic.Descriptor.ImmutableCustomTags().Contains(WellKnownDiagnosticTags.Unnecessary);
src\roslyn\src\Analyzers\Core\CodeFixes\UseCollectionExpression\AbstractUseCollectionExpressionCodeFixProvider.cs (1)
30if (diagnostic.Descriptor.ImmutableCustomTags().Contains(WellKnownDiagnosticTags.Unnecessary))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
46=> !diagnostic.Descriptor.ImmutableCustomTags().Contains(WellKnownDiagnosticTags.Unnecessary);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\roslyn\src\Analyzers\CSharp\CodeFixes\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessCodeFixProvider.cs (1)
36=> !diagnostic.Properties.ContainsKey(WellKnownDiagnosticTags.Unnecessary);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseThrowExpression\UseThrowExpressionCodeFixProvider.cs (1)
31=> !diagnostic.Descriptor.ImmutableCustomTags().Contains(WellKnownDiagnosticTags.Unnecessary);
Microsoft.CodeAnalysis.CSharp.Features (2)
src\roslyn\src\Analyzers\CSharp\CodeFixes\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessCodeFixProvider.cs (1)
36=> !diagnostic.Properties.ContainsKey(WellKnownDiagnosticTags.Unnecessary);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseThrowExpression\UseThrowExpressionCodeFixProvider.cs (1)
31=> !diagnostic.Descriptor.ImmutableCustomTags().Contains(WellKnownDiagnosticTags.Unnecessary);
Microsoft.CodeAnalysis.Features (42)
CodeFixes\Suppression\SuppressionHelpers.cs (4)
66=> HasCustomTag(diagnostic.CustomTags, WellKnownDiagnosticTags.NotConfigurable); 69=> HasCustomTag(diagnostic.Descriptor.ImmutableCustomTags(), WellKnownDiagnosticTags.NotConfigurable); 72=> HasCustomTag(diagnostic.CustomTags, WellKnownDiagnosticTags.Compiler); 75=> HasCustomTag(diagnostic.Descriptor.ImmutableCustomTags(), WellKnownDiagnosticTags.Compiler);
Diagnostics\Analyzers\UnboundIdentifiersDiagnosticAnalyzerBase.cs (1)
55customTags: DiagnosticCustomTags.Microsoft.Append(WellKnownDiagnosticTags.NotConfigurable));
Diagnostics\Service\DocumentAnalysisExecutor_Helpers.cs (1)
42customTags: WellKnownDiagnosticTags.AnalyzerException);
src\roslyn\src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer.cs (1)
87Debug.Assert(option is { Definition.DefaultValue: ICodeStyleOption2 } == descriptor.CustomTags.Contains(WellKnownDiagnosticTags.CustomSeverityConfigurable));
src\roslyn\src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (2)
43Debug.Assert(!supportedDiagnostics.Any(descriptor => descriptor.CustomTags.Any(t => t == WellKnownDiagnosticTags.Unnecessary)) || this is AbstractBuiltInUnnecessaryCodeStyleDiagnosticAnalyzer); 207if (descriptor.CustomTags.Contains(WellKnownDiagnosticTags.NotConfigurable))
src\roslyn\src\Analyzers\Core\Analyzers\DiagnosticCustomTags.cs (25)
20Assert(field, WellKnownDiagnosticTags.Telemetry); 23} = [WellKnownDiagnosticTags.Telemetry]; 29Assert(field, WellKnownDiagnosticTags.EditAndContinue, WellKnownDiagnosticTags.Telemetry, WellKnownDiagnosticTags.NotConfigurable, s_enforceOnBuildNeverTag); 32} = [WellKnownDiagnosticTags.EditAndContinue, WellKnownDiagnosticTags.Telemetry, WellKnownDiagnosticTags.NotConfigurable, s_enforceOnBuildNeverTag]; 38Assert(field, WellKnownDiagnosticTags.Unnecessary, WellKnownDiagnosticTags.Telemetry); 41} = [WellKnownDiagnosticTags.Unnecessary, WellKnownDiagnosticTags.Telemetry]; 47Assert(field, WellKnownDiagnosticTags.NotConfigurable, s_enforceOnBuildNeverTag, WellKnownDiagnosticTags.Telemetry); 50} = [WellKnownDiagnosticTags.NotConfigurable, s_enforceOnBuildNeverTag, WellKnownDiagnosticTags.Telemetry]; 56Assert(field, WellKnownDiagnosticTags.Unnecessary, WellKnownDiagnosticTags.NotConfigurable, s_enforceOnBuildNeverTag, WellKnownDiagnosticTags.Telemetry); 59} = [WellKnownDiagnosticTags.Unnecessary, WellKnownDiagnosticTags.NotConfigurable, s_enforceOnBuildNeverTag, WellKnownDiagnosticTags.Telemetry]; 83customTagsBuilder.Add(WellKnownDiagnosticTags.NotConfigurable); 87customTagsBuilder.Add(WellKnownDiagnosticTags.CustomSeverityConfigurable); 92customTagsBuilder.Add(WellKnownDiagnosticTags.Unnecessary);
src\roslyn\src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (5)
117.Add(WellKnownDiagnosticTags.Unnecessary, Enumerable.Range(additionalLocations.Length, additionalUnnecessaryLocations.Length)); 188.Add(WellKnownDiagnosticTags.Unnecessary, Enumerable.Range(additionalLocations.Length, additionalUnnecessaryLocations.Length)); 299if (customTag != WellKnownDiagnosticTags.CustomSeverityConfigurable) 310if (customTag == WellKnownDiagnosticTags.CustomSeverityConfigurable) 321yield return WellKnownDiagnosticTags.CustomSeverityConfigurable;
src\roslyn\src\Analyzers\Core\CodeFixes\UseCoalesceExpression\UseCoalesceExpressionForNullableTernaryConditionalCheckCodeFixProvider.cs (1)
28=> !diagnostic.Descriptor.ImmutableCustomTags().Contains(WellKnownDiagnosticTags.Unnecessary);
src\roslyn\src\Analyzers\Core\CodeFixes\UseCoalesceExpression\UseCoalesceExpressionForTernaryConditionalCheckCodeFixProvider.cs (1)
29=> !diagnostic.Descriptor.ImmutableCustomTags().Contains(WellKnownDiagnosticTags.Unnecessary);
src\roslyn\src\Analyzers\Core\CodeFixes\UseCollectionExpression\AbstractUseCollectionExpressionCodeFixProvider.cs (1)
30if (diagnostic.Descriptor.ImmutableCustomTags().Contains(WellKnownDiagnosticTags.Unnecessary))
Microsoft.CodeAnalysis.ResxSourceGenerator (16)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\WellKnownDiagnosticTagsExtensions.cs (5)
12public static readonly string[] DataflowAndTelemetry = [Dataflow, WellKnownDiagnosticTags.Telemetry]; 13public static readonly string[] DataflowAndTelemetryEnabledInAggressiveMode = [Dataflow, WellKnownDiagnosticTags.Telemetry, EnabledRuleInAggressiveMode]; 15public static readonly string[] Telemetry = [WellKnownDiagnosticTags.Telemetry]; 16public static readonly string[] TelemetryEnabledInAggressiveMode = [WellKnownDiagnosticTags.Telemetry, EnabledRuleInAggressiveMode]; 17public static readonly string[] CompilationEndAndTelemetry = [CompilationEnd, WellKnownDiagnosticTags.Telemetry];
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\FxCopWellKnownDiagnosticTags.cs (4)
13public static readonly string[] PortedFxCopRule = [PortedFromFxCop, WellKnownDiagnosticTags.Telemetry]; 14public static readonly string[] PortedFxCopRuleEnabledInAggressiveMode = [PortedFromFxCop, WellKnownDiagnosticTags.Telemetry, WellKnownDiagnosticTagsExtensions.EnabledRuleInAggressiveMode]; 16public static readonly string[] PortedFxCopDataflowRule = [PortedFromFxCop, WellKnownDiagnosticTagsExtensions.Dataflow, WellKnownDiagnosticTags.Telemetry]; 17public static readonly string[] PortedFxCopDataflowRuleEnabledInAggressiveMode = [PortedFromFxCop, WellKnownDiagnosticTagsExtensions.Dataflow, WellKnownDiagnosticTags.Telemetry, WellKnownDiagnosticTagsExtensions.EnabledRuleInAggressiveMode];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (7)
113descriptor.ImmutableCustomTags().Any(static tag => tag is WellKnownDiagnosticTags.Compiler or WellKnownDiagnosticTags.NotConfigurable)) 180descriptor.ImmutableCustomTags().Any(static tag => tag is WellKnownDiagnosticTags.Compiler or WellKnownDiagnosticTags.NotConfigurable)) 224descriptor.ImmutableCustomTags().Any(static tag => tag is WellKnownDiagnosticTags.Compiler or WellKnownDiagnosticTags.NotConfigurable)) 252=> descriptor.ImmutableCustomTags().Contains(WellKnownDiagnosticTags.CompilationEnd);
Microsoft.CodeAnalysis.Workspaces (13)
Diagnostics\DiagnosticAnalyzerInfoCache.cs (1)
166descriptors.Length > 0 && descriptors[0].ImmutableCustomTags().Any(static t => t == WellKnownDiagnosticTags.Telemetry);
Diagnostics\DiagnosticData.cs (2)
99= ImmutableDictionary<string, string?>.Empty.Add(WellKnownDiagnosticPropertyNames.Origin, WellKnownDiagnosticTags.Build); 385value == WellKnownDiagnosticTags.Build;
Shared\Extensions\TelemetryExtensions.cs (1)
56if (diagnostic.Descriptor.ImmutableCustomTags().Any(static t => t == WellKnownDiagnosticTags.Telemetry))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (7)
113descriptor.ImmutableCustomTags().Any(static tag => tag is WellKnownDiagnosticTags.Compiler or WellKnownDiagnosticTags.NotConfigurable)) 180descriptor.ImmutableCustomTags().Any(static tag => tag is WellKnownDiagnosticTags.Compiler or WellKnownDiagnosticTags.NotConfigurable)) 224descriptor.ImmutableCustomTags().Any(static tag => tag is WellKnownDiagnosticTags.Compiler or WellKnownDiagnosticTags.NotConfigurable)) 252=> descriptor.ImmutableCustomTags().Contains(WellKnownDiagnosticTags.CompilationEnd);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
46=> !diagnostic.Descriptor.ImmutableCustomTags().Contains(WellKnownDiagnosticTags.Unnecessary);
Workspace\WorkspaceDiagnosticDescriptors.cs (1)
22customTags: [WellKnownDiagnosticTags.NotConfigurable]);
Microsoft.DotNet.CodeAnalysis (1)
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);
Microsoft.Interop.ComInterfaceGenerator (2)
GeneratorDiagnostics.cs (2)
451WellKnownDiagnosticTags.Unnecessary 466WellKnownDiagnosticTags.Unnecessary
Microsoft.Interop.LibraryImportGenerator (2)
GeneratorDiagnostics.cs (2)
219WellKnownDiagnosticTags.Unnecessary 234WellKnownDiagnosticTags.Unnecessary
Microsoft.Interop.LibraryImportGenerator.Downlevel (2)
GeneratorDiagnostics.cs (2)
219WellKnownDiagnosticTags.Unnecessary 234WellKnownDiagnosticTags.Unnecessary
Microsoft.Interop.SourceGeneration (1)
Marshalling\GeneratorDiagnostic.cs (1)
57DiagnosticProperties.Add(WellKnownDiagnosticTags.Unnecessary, $"[{string.Join(",", Enumerable.Range(0, UnnecessaryDataLocations.Length))}]"),
Roslyn.Diagnostics.Analyzers (17)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\WellKnownDiagnosticTagsExtensions.cs (5)
12public static readonly string[] DataflowAndTelemetry = [Dataflow, WellKnownDiagnosticTags.Telemetry]; 13public static readonly string[] DataflowAndTelemetryEnabledInAggressiveMode = [Dataflow, WellKnownDiagnosticTags.Telemetry, EnabledRuleInAggressiveMode]; 15public static readonly string[] Telemetry = [WellKnownDiagnosticTags.Telemetry]; 16public static readonly string[] TelemetryEnabledInAggressiveMode = [WellKnownDiagnosticTags.Telemetry, EnabledRuleInAggressiveMode]; 17public static readonly string[] CompilationEndAndTelemetry = [CompilationEnd, WellKnownDiagnosticTags.Telemetry];
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\FxCopWellKnownDiagnosticTags.cs (4)
13public static readonly string[] PortedFxCopRule = [PortedFromFxCop, WellKnownDiagnosticTags.Telemetry]; 14public static readonly string[] PortedFxCopRuleEnabledInAggressiveMode = [PortedFromFxCop, WellKnownDiagnosticTags.Telemetry, WellKnownDiagnosticTagsExtensions.EnabledRuleInAggressiveMode]; 16public static readonly string[] PortedFxCopDataflowRule = [PortedFromFxCop, WellKnownDiagnosticTagsExtensions.Dataflow, WellKnownDiagnosticTags.Telemetry]; 17public static readonly string[] PortedFxCopDataflowRuleEnabledInAggressiveMode = [PortedFromFxCop, WellKnownDiagnosticTagsExtensions.Dataflow, WellKnownDiagnosticTags.Telemetry, WellKnownDiagnosticTagsExtensions.EnabledRuleInAggressiveMode];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (7)
113descriptor.ImmutableCustomTags().Any(static tag => tag is WellKnownDiagnosticTags.Compiler or WellKnownDiagnosticTags.NotConfigurable)) 180descriptor.ImmutableCustomTags().Any(static tag => tag is WellKnownDiagnosticTags.Compiler or WellKnownDiagnosticTags.NotConfigurable)) 224descriptor.ImmutableCustomTags().Any(static tag => tag is WellKnownDiagnosticTags.Compiler or WellKnownDiagnosticTags.NotConfigurable)) 252=> descriptor.ImmutableCustomTags().Contains(WellKnownDiagnosticTags.CompilationEnd);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
46=> !diagnostic.Descriptor.ImmutableCustomTags().Contains(WellKnownDiagnosticTags.Unnecessary);
System.Text.RegularExpressions.Generator (4)
DiagnosticDescriptors.cs (4)
20customTags: WellKnownDiagnosticTags.NotConfigurable); 29customTags: WellKnownDiagnosticTags.NotConfigurable); 38customTags: WellKnownDiagnosticTags.NotConfigurable); 47customTags: WellKnownDiagnosticTags.NotConfigurable);