1 write to CustomTags
Microsoft.CodeAnalysis (1)
Diagnostic\DiagnosticDescriptor.cs (1)
192this.CustomTags = customTags;
57 references to CustomTags
CodeStyleConfigFileGenerator (5)
Program.cs (5)
160Debug.Assert(rule.CustomTags.Any(c => c == s_neverTag || c == s_whenExplicitlyEnabledTag || c == s_recommendedTag || c == s_highlyRecommendedTag), 172isEnabledInNonDefaultMode = !rule.CustomTags.Contains(s_neverTag); 177isEnabledInNonDefaultMode = rule.CustomTags.Contains(s_highlyRecommendedTag); 182isEnabledInNonDefaultMode = rule.CustomTags.Contains(s_highlyRecommendedTag) || rule.CustomTags.Contains(s_recommendedTag);
dotnet-format (1)
Analyzers\AnalyzerOptionExtensions.cs (1)
64descriptor.CustomTags.Any(tag => tag == WellKnownDiagnosticTags.Compiler || tag == WellKnownDiagnosticTags.NotConfigurable))
GenerateDocumentationAndConfigFiles (10)
Program.cs (5)
708if (descriptor.CustomTags.Any()) 712foreach (string tag in descriptor.CustomTags) 1303return !rule.CustomTags.Contains(customTag); 1307return rule.CustomTags.Contains(customTag); 1499isEnabledRuleForNonDefaultAnalysisMode = rule.CustomTags.Contains(WellKnownDiagnosticTagsExtensions.EnabledRuleInAggressiveMode);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (1)
183effectiveSeverity.Value, rule.IsEnabledByDefault, rule.Description, rule.HelpLinkUri, rule.CustomTags.ToArray());
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AbstractCategorizedAnalyzerConfigOptions.cs (1)
100|| TryGetAnySpecificOptionValue(rule.CustomTags, optionKeyPrefix, out optionValue)))
src\roslyn\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]);
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.Analyzers (5)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (1)
183effectiveSeverity.Value, rule.IsEnabledByDefault, rule.Description, rule.HelpLinkUri, rule.CustomTags.ToArray());
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AbstractCategorizedAnalyzerConfigOptions.cs (1)
100|| TryGetAnySpecificOptionValue(rule.CustomTags, optionKeyPrefix, out optionValue)))
src\roslyn\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]);
Microsoft.CodeAnalysis.AnalyzerUtilities (5)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (1)
183effectiveSeverity.Value, rule.IsEnabledByDefault, rule.Description, rule.HelpLinkUri, rule.CustomTags.ToArray());
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AbstractCategorizedAnalyzerConfigOptions.cs (1)
100|| TryGetAnySpecificOptionValue(rule.CustomTags, optionKeyPrefix, out optionValue)))
src\roslyn\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]);
Microsoft.CodeAnalysis.CodeStyle (8)
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\Helpers\DiagnosticHelper.cs (2)
297foreach (var customTag in descriptor.CustomTags) 308foreach (var customTag in descriptor.CustomTags)
src\roslyn\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]);
Microsoft.CodeAnalysis.Features (6)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaBatchFixHelpers.cs (1)
84customTags: diagnostic.Descriptor.CustomTags,
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\Helpers\DiagnosticHelper.cs (2)
297foreach (var customTag in descriptor.CustomTags) 308foreach (var customTag in descriptor.CustomTags)
Microsoft.CodeAnalysis.ResxSourceGenerator (5)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (1)
183effectiveSeverity.Value, rule.IsEnabledByDefault, rule.Description, rule.HelpLinkUri, rule.CustomTags.ToArray());
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AbstractCategorizedAnalyzerConfigOptions.cs (1)
100|| TryGetAnySpecificOptionValue(rule.CustomTags, optionKeyPrefix, out optionValue)))
src\roslyn\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]);
Microsoft.CodeAnalysis.Workspaces (4)
Diagnostics\DiagnosticDescriptorData.cs (1)
54customTags: descriptor.CustomTags.AsImmutableOrEmpty());
src\roslyn\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]);
Roslyn.Diagnostics.Analyzers (5)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (1)
183effectiveSeverity.Value, rule.IsEnabledByDefault, rule.Description, rule.HelpLinkUri, rule.CustomTags.ToArray());
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AbstractCategorizedAnalyzerConfigOptions.cs (1)
100|| TryGetAnySpecificOptionValue(rule.CustomTags, optionKeyPrefix, out optionValue)))
src\roslyn\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]);