1 write to Category
Microsoft.CodeAnalysis (1)
Diagnostic\DiagnosticDescriptor.cs (1)
176this.Category = category;
57 references to Category
BuildActionTelemetryTable (4)
DiagnosticDescriptorExtensions.cs (4)
81var categoryBasedKey = $"{DotnetAnalyzerDiagnosticPrefix}.{CategoryPrefix}-{descriptor.Category}.{SeveritySuffix}"; 123var categoryBasedKey = $"{DotnetAnalyzerDiagnosticPrefix}.{CategoryPrefix}-{descriptor.Category}.{SeveritySuffix}"; 168var categoryBasedKey = $"{DotnetAnalyzerDiagnosticPrefix}.{CategoryPrefix}-{descriptor.Category}.{SeveritySuffix}"; 199descriptor.Category, descriptor.DefaultSeverity, descriptor.IsEnabledByDefault,
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)
180if (!string.IsNullOrEmpty(descriptor.Category)) 182_writer.Write("category", descriptor.Category);
CommandLine\SarifV2ErrorLogger.cs (3)
255if (!string.IsNullOrEmpty(descriptor.Category) || isEverSuppressed || descriptor.ImmutableCustomTags.Any()) 259if (!string.IsNullOrEmpty(descriptor.Category)) 261_writer.Write("category", descriptor.Category);
Diagnostic\CustomObsoleteDiagnosticInfo.cs (1)
101category: baseDescriptor.Category,
Diagnostic\Diagnostic.cs (1)
308internal virtual string Category { get { return this.Descriptor.Category; } }
Diagnostic\DiagnosticDescriptor.cs (3)
194this.Category == other.Category && 211return Hash.Combine(this.Category.GetHashCode(),
DiagnosticAnalyzer\AnalyzerOptionsExtensions.cs (1)
65var categoryBasedKey = GetCategoryBasedDotnetAnalyzerDiagnosticSeverityKey(descriptor.Category);
Microsoft.CodeAnalysis.CodeStyle (5)
DiagnosticDescriptorExtensions.cs (4)
81var categoryBasedKey = $"{DotnetAnalyzerDiagnosticPrefix}.{CategoryPrefix}-{descriptor.Category}.{SeveritySuffix}"; 123var categoryBasedKey = $"{DotnetAnalyzerDiagnosticPrefix}.{CategoryPrefix}-{descriptor.Category}.{SeveritySuffix}"; 168var categoryBasedKey = $"{DotnetAnalyzerDiagnosticPrefix}.{CategoryPrefix}-{descriptor.Category}.{SeveritySuffix}"; 199descriptor.Category, descriptor.DefaultSeverity, descriptor.IsEnabledByDefault,
DiagnosticHelper.cs (1)
242descriptor.Category,
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
CommandLineTests.cs (2)
12530var category = analyzer.Descriptor.Category; 12702var category = analyzer.Descriptor.Category;
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Diagnostics\DiagnosticAnalyzerTests.cs (1)
735var category = descriptor.Category;
Microsoft.CodeAnalysis.CSharp.Features (1)
CodeFixes\Suppression\CSharpSuppressionCodeFixProvider.cs (1)
178var category = SyntaxFactory.LiteralExpression(SyntaxKind.StringLiteralExpression, SyntaxFactory.Literal(diagnostic.Descriptor.Category));
Microsoft.CodeAnalysis.EditorFeatures (1)
EditorConfigSettings\Data\AnalyzerSetting.cs (1)
48public string Category => _descriptor.Category;
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (3)
Diagnostics\AbstractSuppressionAllCodeTests.cs (3)
137=> x.Id == y.Id && x.Descriptor.Category == y.Descriptor.Category; 140=> Hash.Combine(obj.Id, obj.Descriptor.Category.GetHashCode());
Microsoft.CodeAnalysis.EditorFeatures.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.Features (4)
CodeFixes\Configuration\ConfigureSeverity\ConfigureSeverityLevelCodeFixProvider.cs (2)
76if (!string.IsNullOrEmpty(diagnostic.Descriptor.Category)) 78var diagnosticsForCategory = analyzerDiagnosticsByCategory.GetOrAdd(diagnostic.Descriptor.Category, _ => ArrayBuilder<Diagnostic>.GetInstance());
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaBatchFixHelpers.cs (1)
74category: diagnostic.Descriptor.Category,
DiagnosticHelper.cs (1)
242descriptor.Category,
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer_BuildSynchronization.cs (1)
172descriptor.Category,
Microsoft.CodeAnalysis.Test.Utilities (7)
Diagnostics\CommonDiagnosticAnalyzers.cs (6)
149""category"": """ + Descriptor1.Category + @""", 163""category"": """ + Descriptor2.Category + @""", 226""category"": """ + Descriptor1.Category + @""", 240""category"": """ + Descriptor2.Category + @""", 388""category"": """ + Descriptor1.Category + @"""" + GetExpectedV2SuppressionTextForRulesSection(suppressionKinds1) + @", 407""category"": """ + Descriptor2.Category + @"""" + GetExpectedV2SuppressionTextForRulesSection(suppressionKinds2) + @",
Diagnostics\DescriptorFactory.cs (1)
22/// - empty <see cref="DiagnosticDescriptor.Title"/> and <see cref="DiagnosticDescriptor.Category"/>
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)
DiagnosticDescriptorExtensions.cs (4)
81var categoryBasedKey = $"{DotnetAnalyzerDiagnosticPrefix}.{CategoryPrefix}-{descriptor.Category}.{SeveritySuffix}"; 123var categoryBasedKey = $"{DotnetAnalyzerDiagnosticPrefix}.{CategoryPrefix}-{descriptor.Category}.{SeveritySuffix}"; 168var categoryBasedKey = $"{DotnetAnalyzerDiagnosticPrefix}.{CategoryPrefix}-{descriptor.Category}.{SeveritySuffix}"; 199descriptor.Category, descriptor.DefaultSeverity, descriptor.IsEnabledByDefault,
Diagnostics\DiagnosticData.cs (1)
255diagnostic.Descriptor.Category,
Microsoft.VisualStudio.LanguageServices (1)
TaskList\ProjectExternalErrorReporter.cs (1)
291category = descriptor.Category;
Microsoft.VisualStudio.LanguageServices.Implementation (1)
SolutionExplorer\DiagnosticItem\DiagnosticItem.BrowseObject.cs (1)
67return _diagnosticItem.Descriptor.Category;
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
Diagnostics\ExternalDiagnosticUpdateSourceTests.vb (1)
515category:=analyzer.Descriptor.Category,