1 write to IsEnabledByDefault
Microsoft.CodeAnalysis (1)
Diagnostic\DiagnosticDescriptor.cs (1)
189this.IsEnabledByDefault = isEnabledByDefault;
50 references to IsEnabledByDefault
AnalyzerRunner (1)
DiagnosticAnalyzerRunner.cs (1)
273if (analyzer.SupportedDiagnostics.Any(static diagnosticDescriptor => diagnosticDescriptor.IsEnabledByDefault))
BuildActionTelemetryTable (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (4)
112if (!descriptor.IsEnabledByDefault || 179if (!descriptor.IsEnabledByDefault || 223if (!descriptor.IsEnabledByDefault || 263descriptor.Category, descriptor.DefaultSeverity, descriptor.IsEnabledByDefault,
CodeStyleConfigFileGenerator (2)
Program.cs (2)
138if (rule.IsEnabledByDefault == isEnabledByDefault && 190return (isEnabledByDefault: rule.IsEnabledByDefault,
Microsoft.CodeAnalysis (19)
CommandLine\SarifDiagnosticComparer.cs (3)
54&& x.IsEnabledByDefault == y.IsEnabledByDefault 71Hash.Combine(obj.IsEnabledByDefault.GetHashCode(),
CommandLine\SarifErrorLogger.cs (1)
91Debug.Assert(diagnostic.IsEnabledByDefault == diagnostic.Descriptor.IsEnabledByDefault);
CommandLine\SarifV1ErrorLogger.cs (1)
189_writer.Write("isEnabledByDefault", descriptor.IsEnabledByDefault);
CommandLine\SarifV2ErrorLogger.cs (3)
333var defaultSeverity = descriptor.IsEnabledByDefault ? DiagnosticDescriptor.MapSeverityToReport(descriptor.DefaultSeverity) : ReportDiagnostic.Suppress; 431bool emitEnabled = !descriptor.IsEnabledByDefault; 444_writer.Write("enabled", descriptor.IsEnabledByDefault);
Diagnostic\CustomObsoleteDiagnosticInfo.cs (1)
100isEnabledByDefault: baseDescriptor.IsEnabledByDefault,
Diagnostic\Diagnostic.cs (1)
371internal virtual bool IsEnabledByDefault { get { return this.Descriptor.IsEnabledByDefault; } }
Diagnostic\DiagnosticDescriptor.cs (3)
209this.IsEnabledByDefault == other.IsEnabledByDefault && 226Hash.Combine(this.IsEnabledByDefault.GetHashCode(),
Diagnostic\DiagnosticWithInfo.cs (1)
86get { return this.Info.Descriptor.IsEnabledByDefault; }
DiagnosticAnalyzer\AnalyzerDriver.cs (2)
946var defaultSeverity = descriptor.IsEnabledByDefault ? 1401if (!descriptor.IsEnabledByDefault && configuredSeverity == ReportDiagnostic.Default)
DiagnosticAnalyzer\AnalyzerManager.cs (2)
363if (diag.IsEnabledByDefault) 383var isSuppressed = !diag.IsEnabledByDefault;
DiagnosticAnalyzer\AnalyzerOptionsExtensions.cs (1)
43!descriptor.IsEnabledByDefault ||
Microsoft.CodeAnalysis.CodeStyle (6)
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (1)
238if (descriptor.IsEnabledByDefault && descriptor.DefaultSeverity >= _minimumReportedSeverity.Value)
src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (1)
276descriptor.IsEnabledByDefault,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (4)
112if (!descriptor.IsEnabledByDefault || 179if (!descriptor.IsEnabledByDefault || 223if (!descriptor.IsEnabledByDefault || 263descriptor.Category, descriptor.DefaultSeverity, descriptor.IsEnabledByDefault,
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (1)
src\Features\DiagnosticsTestUtilities\CodeActions\CodeFixVerifierHelper.cs (1)
74if (!descriptor.IsEnabledByDefault || descriptor.DefaultSeverity == DiagnosticSeverity.Hidden)
Microsoft.CodeAnalysis.Features (3)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaBatchFixHelpers.cs (1)
77isEnabledByDefault: diagnostic.Descriptor.IsEnabledByDefault,
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (1)
238if (descriptor.IsEnabledByDefault && descriptor.DefaultSeverity >= _minimumReportedSeverity.Value)
src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (1)
276descriptor.IsEnabledByDefault,
Microsoft.CodeAnalysis.Test.Utilities (4)
Diagnostics\CommonDiagnosticAnalyzers.cs (4)
155""isEnabledByDefault"": " + (Descriptor2.IsEnabledByDefault ? "true" : "false") + @", 169""isEnabledByDefault"": " + (Descriptor2.IsEnabledByDefault ? "true" : "false") + @", 232""isEnabledByDefault"": " + (Descriptor2.IsEnabledByDefault ? "true" : "false") + @", 246""isEnabledByDefault"": " + (Descriptor2.IsEnabledByDefault ? "true" : "false") + @",
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Diagnostics\DiagnosticAnalyzerTests.vb (1)
469Assert.Equal(descriptor.IsEnabledByDefault, True)
Microsoft.CodeAnalysis.Workspaces (5)
Diagnostics\DiagnosticData.cs (1)
234diagnostic.Descriptor.IsEnabledByDefault,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (4)
112if (!descriptor.IsEnabledByDefault || 179if (!descriptor.IsEnabledByDefault || 223if (!descriptor.IsEnabledByDefault || 263descriptor.Category, descriptor.DefaultSeverity, descriptor.IsEnabledByDefault,
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
DiagDescriptorsTests.cs (1)
28Assert.True(descriptor.IsEnabledByDefault, descriptor.Id + " should be enabled by default");
Microsoft.Gen.Logging.Unit.Tests (1)
DiagDescriptorsTests.cs (1)
29Assert.True(descriptor.IsEnabledByDefault, descriptor.Id + " should be enabled by default");
Microsoft.Gen.Metrics.Unit.Tests (1)
DiagDescriptorsTests.cs (1)
28Assert.True(descriptor.IsEnabledByDefault, descriptor.Id + " should be enabled by default");
Microsoft.VisualStudio.LanguageServices (1)
TaskList\ProjectExternalErrorReporter.cs (1)
284isEnabledByDefault = descriptor.IsEnabledByDefault;