1 write to CustomTags
Microsoft.CodeAnalysis (1)
Diagnostic\DiagnosticDescriptor.cs (1)
192this.CustomTags = customTags;
44 references to CustomTags
BuildActionTelemetryTable (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (3)
25Debug.Assert(descriptor.CustomTags is ImmutableArray<string>); 26return (ImmutableArray<string>)descriptor.CustomTags; 264descriptor.Description, descriptor.HelpLinkUri, descriptor.CustomTags.ToArray());
CodeStyleConfigFileGenerator (5)
Program.cs (5)
156Debug.Assert(rule.CustomTags.Any(c => c == s_neverTag || c == s_whenExplicitlyEnabledTag || c == s_recommendedTag || c == s_highlyRecommendedTag), 168isEnabledInNonDefaultMode = !rule.CustomTags.Contains(s_neverTag); 173isEnabledInNonDefaultMode = rule.CustomTags.Contains(s_highlyRecommendedTag); 178isEnabledInNonDefaultMode = rule.CustomTags.Contains(s_highlyRecommendedTag) || rule.CustomTags.Contains(s_recommendedTag);
Microsoft.CodeAnalysis (3)
CommandLine\SarifDiagnosticComparer.cs (1)
24/// 2. <see cref="DiagnosticDescriptor.CustomTags"/> is *not* part of that built-in
Diagnostic\DiagnosticDescriptor.cs (2)
73Debug.Assert(CustomTags is ImmutableArray<string>); 74return (ImmutableArray<string>)CustomTags;
Microsoft.CodeAnalysis.CodeStyle (10)
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer.cs (1)
88Debug.Assert(option is { Definition.DefaultValue: ICodeStyleOption2 } == descriptor.CustomTags.Contains(WellKnownDiagnosticTags.CustomSeverityConfigurable));
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\Analyzers\Core\Analyzers\AbstractBuiltInUnnecessaryCodeStyleDiagnosticAnalyzer.cs (2)
93if (descriptor.CustomTags.Any(t => t == WellKnownDiagnosticTags.Unnecessary)) 132if (descriptor.CustomTags.Any(t => t == WellKnownDiagnosticTags.Unnecessary))
src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (2)
293foreach (var customTag in descriptor.CustomTags) 304foreach (var customTag in descriptor.CustomTags)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (3)
25Debug.Assert(descriptor.CustomTags is ImmutableArray<string>); 26return (ImmutableArray<string>)descriptor.CustomTags; 264descriptor.Description, descriptor.HelpLinkUri, descriptor.CustomTags.ToArray());
Microsoft.CodeAnalysis.EditorFeatures (1)
EditorConfigSettings\Data\AnalyzerSetting.cs (1)
36IsNotConfigurable = descriptor.CustomTags.Any(t => t == WellKnownDiagnosticTags.NotConfigurable);
Microsoft.CodeAnalysis.Features (8)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaBatchFixHelpers.cs (1)
84customTags: diagnostic.Descriptor.CustomTags,
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer.cs (1)
88Debug.Assert(option is { Definition.DefaultValue: ICodeStyleOption2 } == descriptor.CustomTags.Contains(WellKnownDiagnosticTags.CustomSeverityConfigurable));
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\Analyzers\Core\Analyzers\AbstractBuiltInUnnecessaryCodeStyleDiagnosticAnalyzer.cs (2)
93if (descriptor.CustomTags.Any(t => t == WellKnownDiagnosticTags.Unnecessary)) 132if (descriptor.CustomTags.Any(t => t == WellKnownDiagnosticTags.Unnecessary))
src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (2)
293foreach (var customTag in descriptor.CustomTags) 304foreach (var customTag in descriptor.CustomTags)
Microsoft.CodeAnalysis.Features.UnitTests (3)
EditAndContinue\EditAndContinueDiagnosticDescriptorsTests.cs (3)
23Assert.Equal(["EditAndContinue", "Telemetry", "NotConfigurable", EnforceOnBuild.Never.ToCustomTag()], d.CustomTags); 35Assert.Equal(["EditAndContinue", "Telemetry", "NotConfigurable", EnforceOnBuild.Never.ToCustomTag()], d.CustomTags); 45Assert.Equal(["EditAndContinue", "Telemetry", "NotConfigurable", EnforceOnBuild.Never.ToCustomTag()], d.CustomTags);
Microsoft.CodeAnalysis.Test.Utilities (7)
Diagnostics\CommonDiagnosticAnalyzers.cs (6)
157" + String.Join("," + Environment.NewLine + " ", Descriptor1.CustomTags.Select(s => $"\"{s}\"")) + @" 171" + String.Join("," + Environment.NewLine + " ", Descriptor2.CustomTags.Select(s => $"\"{s}\"")) + @" 234" + String.Join("," + Environment.NewLine + " ", Descriptor1.CustomTags.Select(s => $"\"{s}\"")) + @" 248" + String.Join("," + Environment.NewLine + " ", Descriptor2.CustomTags.Select(s => $"\"{s}\"")) + @" 474" + string.Join("," + Environment.NewLine + " ", Descriptor1.CustomTags.Select(s => $"\"{s}\"")) + @" 495" + String.Join("," + Environment.NewLine + " ", Descriptor2.CustomTags.Select(s => $"\"{s}\"")) + @"
Diagnostics\DescriptorFactory.cs (1)
25/// - <see cref="WellKnownDiagnosticTags.NotConfigurable"/> custom tag added in <see cref="DiagnosticDescriptor.CustomTags"/>.
Microsoft.CodeAnalysis.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (3)
25Debug.Assert(descriptor.CustomTags is ImmutableArray<string>); 26return (ImmutableArray<string>)descriptor.CustomTags; 264descriptor.Description, descriptor.HelpLinkUri, descriptor.CustomTags.ToArray());
Microsoft.VisualStudio.LanguageServices (1)
TaskList\ProjectExternalErrorReporter.cs (1)
285customTags = descriptor.CustomTags.AsImmutableOrEmpty();