1 write to Category
Microsoft.CodeAnalysis (1)
Diagnostic\DiagnosticDescriptor.cs (1)
186this.Category = category;
55 references to Category
BuildActionTelemetryTable (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (4)
120var categoryBasedKey = $"{DotnetAnalyzerDiagnosticPrefix}.{CategoryPrefix}-{descriptor.Category}.{SeveritySuffix}"; 187var categoryBasedKey = $"{DotnetAnalyzerDiagnosticPrefix}.{CategoryPrefix}-{descriptor.Category}.{SeveritySuffix}"; 232var categoryBasedKey = $"{DotnetAnalyzerDiagnosticPrefix}.{CategoryPrefix}-{descriptor.Category}.{SeveritySuffix}"; 263descriptor.Category, descriptor.DefaultSeverity, descriptor.IsEnabledByDefault,
ILLink.CodeFixProvider (1)
UnconditionalSuppressMessageCodeFixProvider.cs (1)
44 syntaxGenerator.LiteralExpression (diagnostic.Descriptor.Category));
Microsoft.CodeAnalysis (15)
CommandLine\SarifDiagnosticComparer.cs (3)
49return x.Category == y.Category 66return Hash.Combine(obj.Category.GetHashCode(),
CommandLine\SarifErrorLogger.cs (1)
89Debug.Assert(diagnostic.Category == diagnostic.Descriptor.Category);
CommandLine\SarifV1ErrorLogger.cs (2)
184if (!string.IsNullOrEmpty(descriptor.Category)) 186_writer.Write("category", descriptor.Category);
CommandLine\SarifV2ErrorLogger.cs (3)
279if (!string.IsNullOrEmpty(descriptor.Category) || isEverSuppressed || reportAnalyzerExecutionTime || descriptor.ImmutableCustomTags.Any()) 283if (!string.IsNullOrEmpty(descriptor.Category)) 285_writer.Write("category", descriptor.Category);
Diagnostic\CustomObsoleteDiagnosticInfo.cs (1)
98category: baseDescriptor.Category,
Diagnostic\Diagnostic.cs (1)
308internal virtual string Category { get { return this.Descriptor.Category; } }
Diagnostic\DiagnosticDescriptor.cs (3)
204this.Category == other.Category && 221return Hash.Combine(this.Category.GetHashCode(),
DiagnosticAnalyzer\AnalyzerOptionsExtensions.cs (1)
65var categoryBasedKey = GetCategoryBasedDotnetAnalyzerDiagnosticSeverityKey(descriptor.Category);
Microsoft.CodeAnalysis.CodeStyle (6)
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (1)
225var categoryConfigurationKey = $"{DotnetAnalyzerDiagnosticPrefix}.{CategoryPrefix}-{descriptor.Category}.{SeveritySuffix}";
src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (1)
272descriptor.Category,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (4)
120var categoryBasedKey = $"{DotnetAnalyzerDiagnosticPrefix}.{CategoryPrefix}-{descriptor.Category}.{SeveritySuffix}"; 187var categoryBasedKey = $"{DotnetAnalyzerDiagnosticPrefix}.{CategoryPrefix}-{descriptor.Category}.{SeveritySuffix}"; 232var categoryBasedKey = $"{DotnetAnalyzerDiagnosticPrefix}.{CategoryPrefix}-{descriptor.Category}.{SeveritySuffix}"; 263descriptor.Category, descriptor.DefaultSeverity, descriptor.IsEnabledByDefault,
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
CommandLineTests.cs (2)
13157var category = analyzer.Descriptor.Category; 13347var category = analyzer.Descriptor.Category;
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Diagnostics\DiagnosticAnalyzerTests.cs (1)
736var category = descriptor.Category;
Microsoft.CodeAnalysis.CSharp.Features (1)
CodeFixes\Suppression\CSharpSuppressionCodeFixProvider.cs (1)
180var category = LiteralExpression(SyntaxKind.StringLiteralExpression, Literal(diagnostic.Descriptor.Category));
Microsoft.CodeAnalysis.EditorFeatures (1)
EditorConfigSettings\Data\AnalyzerSetting.cs (1)
43public string Category => _descriptor.Category;
Microsoft.CodeAnalysis.Features (5)
CodeFixes\Configuration\ConfigureSeverity\ConfigureSeverityLevelCodeFixProvider.cs (2)
77if (!string.IsNullOrEmpty(diagnostic.Descriptor.Category)) 79var diagnosticsForCategory = analyzerDiagnosticsByCategory.GetOrAdd(diagnostic.Descriptor.Category, _ => ArrayBuilder<Diagnostic>.GetInstance());
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaBatchFixHelpers.cs (1)
73category: diagnostic.Descriptor.Category,
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (1)
225var categoryConfigurationKey = $"{DotnetAnalyzerDiagnosticPrefix}.{CategoryPrefix}-{descriptor.Category}.{SeveritySuffix}";
src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (1)
272descriptor.Category,
Microsoft.CodeAnalysis.Features.UnitTests (3)
EditAndContinue\EditAndContinueDiagnosticDescriptorsTests.cs (3)
22Assert.Equal(DiagnosticCategory.EditAndContinue, d.Category); 34Assert.Equal(DiagnosticCategory.EditAndContinue, d.Category); 44Assert.Equal(DiagnosticCategory.EditAndContinue, d.Category);
Microsoft.CodeAnalysis.Test.Utilities (8)
Diagnostics\CommonDiagnosticAnalyzers.cs (6)
154""category"": """ + Descriptor1.Category + @""", 168""category"": """ + Descriptor2.Category + @""", 231""category"": """ + Descriptor1.Category + @""", 245""category"": """ + Descriptor2.Category + @""", 470""category"": """ + Descriptor1.Category + @"""" + GetExpectedV2SuppressionTextForRulesSection(suppressionKinds1) + @", 491""category"": """ + Descriptor2.Category + @"""" + GetExpectedV2SuppressionTextForRulesSection(suppressionKinds2) + @",
Diagnostics\DescriptorFactory.cs (1)
22/// - empty <see cref="DiagnosticDescriptor.Title"/> and <see cref="DiagnosticDescriptor.Category"/>
Diagnostics\DiagnosticDescription.cs (1)
489var isCSharpOrRazor = actual.Any() && actual.First() is CSDiagnostic or { Descriptor.Category: "Razor" };
Microsoft.CodeAnalysis.VisualBasic.Features (1)
CodeFixes\Suppression\VisualBasicSuppressionCodeFixProvider.vb (1)
179Dim category = SyntaxFactory.LiteralExpression(SyntaxKind.StringLiteralExpression, SyntaxFactory.Literal(diagnostic.Descriptor.Category))
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Diagnostics\DiagnosticAnalyzerTests.vb (1)
486Dim category = descriptor.Category
Microsoft.CodeAnalysis.Workspaces (5)
Diagnostics\DiagnosticData.cs (1)
230diagnostic.Descriptor.Category,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (4)
120var categoryBasedKey = $"{DotnetAnalyzerDiagnosticPrefix}.{CategoryPrefix}-{descriptor.Category}.{SeveritySuffix}"; 187var categoryBasedKey = $"{DotnetAnalyzerDiagnosticPrefix}.{CategoryPrefix}-{descriptor.Category}.{SeveritySuffix}"; 232var categoryBasedKey = $"{DotnetAnalyzerDiagnosticPrefix}.{CategoryPrefix}-{descriptor.Category}.{SeveritySuffix}"; 263descriptor.Category, descriptor.DefaultSeverity, descriptor.IsEnabledByDefault,
Microsoft.VisualStudio.LanguageServices (1)
TaskList\ProjectExternalErrorReporter.cs (1)
282category = descriptor.Category;