1 write to CustomTags
Microsoft.CodeAnalysis (1)
Diagnostic\DiagnosticDescriptor.cs (1)
182this.CustomTags = customTags;
42 references to CustomTags
BuildActionTelemetryTable (3)
DiagnosticDescriptorExtensions.cs (3)
24Debug.Assert(descriptor.CustomTags is ImmutableArray<string>); 25return (ImmutableArray<string>)descriptor.CustomTags; 200descriptor.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)
70Debug.Assert(CustomTags is ImmutableArray<string>); 71return (ImmutableArray<string>)CustomTags;
Microsoft.CodeAnalysis.CodeStyle (7)
AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (1)
40Debug.Assert(!supportedDiagnostics.Any(descriptor => descriptor.CustomTags.Any(t => t == WellKnownDiagnosticTags.Unnecessary)) || this is AbstractBuiltInUnnecessaryCodeStyleDiagnosticAnalyzer);
AbstractBuiltInUnnecessaryCodeStyleDiagnosticAnalyzer.cs (2)
93if (descriptor.CustomTags.Any(t => t == WellKnownDiagnosticTags.Unnecessary)) 132if (descriptor.CustomTags.Any(t => t == WellKnownDiagnosticTags.Unnecessary))
DiagnosticDescriptorExtensions.cs (3)
24Debug.Assert(descriptor.CustomTags is ImmutableArray<string>); 25return (ImmutableArray<string>)descriptor.CustomTags; 200descriptor.Description, descriptor.HelpLinkUri, descriptor.CustomTags.ToArray());
DiagnosticHelper.cs (1)
254descriptor.CustomTags,
Microsoft.CodeAnalysis.CodeStyle.LegacyTestFramework.UnitTestUtilities (1)
AbstractDiagnosticProviderBasedUserDiagnosticTest.cs (1)
126if (descriptor.DefaultSeverity == DiagnosticSeverity.Hidden && descriptor.CustomTags.Contains(WellKnownDiagnosticTags.NotConfigurable))
Microsoft.CodeAnalysis.EditorFeatures (1)
EditorConfigSettings\Data\AnalyzerSetting.cs (1)
41IsNotConfigurable = descriptor.CustomTags.Any(t => t == WellKnownDiagnosticTags.NotConfigurable);
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (1)
Diagnostics\AbstractDiagnosticProviderBasedUserDiagnosticTest.cs (1)
126if (descriptor.DefaultSeverity == DiagnosticSeverity.Hidden && descriptor.CustomTags.Contains(WellKnownDiagnosticTags.NotConfigurable))
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
EditAndContinue\EditAndContinueDiagnosticDescriptorsTests.cs (3)
23Assert.Equal(new[] { "EditAndContinue", "Telemetry", "NotConfigurable", EnforceOnBuild.Never.ToCustomTag() }, d.CustomTags); 35Assert.Equal(new[] { "EditAndContinue", "Telemetry", "NotConfigurable", EnforceOnBuild.Never.ToCustomTag() }, d.CustomTags); 45Assert.Equal(new[] { "EditAndContinue", "Telemetry", "NotConfigurable", EnforceOnBuild.Never.ToCustomTag() }, d.CustomTags);
Microsoft.CodeAnalysis.Features (5)
AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (1)
40Debug.Assert(!supportedDiagnostics.Any(descriptor => descriptor.CustomTags.Any(t => t == WellKnownDiagnosticTags.Unnecessary)) || this is AbstractBuiltInUnnecessaryCodeStyleDiagnosticAnalyzer);
AbstractBuiltInUnnecessaryCodeStyleDiagnosticAnalyzer.cs (2)
93if (descriptor.CustomTags.Any(t => t == WellKnownDiagnosticTags.Unnecessary)) 132if (descriptor.CustomTags.Any(t => t == WellKnownDiagnosticTags.Unnecessary))
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaBatchFixHelpers.cs (1)
85customTags: diagnostic.Descriptor.CustomTags,
DiagnosticHelper.cs (1)
254descriptor.CustomTags,
Microsoft.CodeAnalysis.Test.Utilities (7)
Diagnostics\CommonDiagnosticAnalyzers.cs (6)
152" + String.Join("," + Environment.NewLine + " ", Descriptor1.CustomTags.Select(s => $"\"{s}\"")) + @" 166" + String.Join("," + Environment.NewLine + " ", Descriptor2.CustomTags.Select(s => $"\"{s}\"")) + @" 229" + String.Join("," + Environment.NewLine + " ", Descriptor1.CustomTags.Select(s => $"\"{s}\"")) + @" 243" + String.Join("," + Environment.NewLine + " ", Descriptor2.CustomTags.Select(s => $"\"{s}\"")) + @" 390" + string.Join("," + Environment.NewLine + " ", Descriptor1.CustomTags.Select(s => $"\"{s}\"")) + @" 409" + 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)
DiagnosticDescriptorExtensions.cs (3)
24Debug.Assert(descriptor.CustomTags is ImmutableArray<string>); 25return (ImmutableArray<string>)descriptor.CustomTags; 200descriptor.Description, descriptor.HelpLinkUri, descriptor.CustomTags.ToArray());
Microsoft.VisualStudio.LanguageServices (1)
TaskList\ProjectExternalErrorReporter.cs (1)
294customTags = descriptor.CustomTags.AsImmutableOrEmpty();
Microsoft.VisualStudio.LanguageServices.Implementation (1)
SolutionExplorer\DiagnosticItem\DiagnosticItem.BrowseObject.cs (1)
103return string.Join(" ", _diagnosticItem.Descriptor.CustomTags);
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
Diagnostics\ExternalDiagnosticUpdateSourceTests.vb (1)
521customTags:=analyzer.Descriptor.CustomTags.AsImmutable(),