122 references to Hidden
BuildActionTelemetryTable (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\EditorConfigSeverityStrings.cs (1)
28reportDiagnostic = ReportDiagnostic.Hidden;
CodeStyleConfigFileGenerator (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\EditorConfigSeverityStrings.cs (1)
28reportDiagnostic = ReportDiagnostic.Hidden;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticSeverityExtensions_Shared.cs (1)
25DiagnosticSeverity.Hidden => ReportDiagnostic.Hidden,
Microsoft.CodeAnalysis (11)
CommandLine\AnalyzerConfigSet.cs (1)
356severity = ReportDiagnostic.Hidden;
Diagnostic\CommonMessageProvider.cs (1)
144case ReportDiagnostic.Hidden:
Diagnostic\Diagnostic.cs (1)
542case ReportDiagnostic.Hidden:
Diagnostic\DiagnosticDescriptor.cs (2)
254return ReportDiagnostic.Hidden; 276case ReportDiagnostic.Hidden:
Diagnostic\SeverityFilter.cs (2)
27ReportDiagnostic.Hidden => (severityFilter & SeverityFilter.Hidden) != 0, 35if (!severityFilter.Contains(ReportDiagnostic.Hidden))
RuleSet\RuleSet.cs (3)
86case ReportDiagnostic.Hidden: 232return action1 == ReportDiagnostic.Warn || action1 == ReportDiagnostic.Error || action1 == ReportDiagnostic.Info || action1 == ReportDiagnostic.Hidden; 233case ReportDiagnostic.Hidden:
RuleSet\RuleSetProcessor.cs (1)
223return ReportDiagnostic.Hidden;
Microsoft.CodeAnalysis.CodeStyle (13)
src\Analyzers\Core\Analyzers\OrderModifiers\AbstractOrderModifiersDiagnosticAnalyzer.cs (1)
75if (notificationOption.Severity.WithDefaultSeverity(DiagnosticSeverity.Hidden) == ReportDiagnostic.Hidden)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (2)
52(true, ReportDiagnostic.Hidden) => TrueWithSilentEnforcement, 54(false, ReportDiagnostic.Hidden) => FalseWithSilentEnforcement,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\EditorConfigSeverityStrings.cs (1)
28reportDiagnostic = ReportDiagnostic.Hidden;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\NotificationOption2.cs (3)
25/// Notification option for a silent or hidden option with <see cref="ReportDiagnostic.Hidden"/>. 27public static NotificationOption2 Silent => new(ReportDiagnostic.Hidden, false); 53ReportDiagnostic.Hidden or ReportDiagnostic.Default => Silent,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticSeverityExtensions_Shared.cs (1)
25DiagnosticSeverity.Hidden => ReportDiagnostic.Hidden,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ReportDiagnosticExtensions.cs (3)
38case ReportDiagnostic.Hidden: 76ReportDiagnostic.Hidden => EditorConfigSeverityStrings.Silent, 92ReportDiagnostic.Hidden => NotificationOption2.Silent,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_NamingRule.cs (2)
86return ReportDiagnostic.Hidden; 91default: return ReportDiagnostic.Hidden;
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
src\Analyzers\Core\CodeFixes\Naming\FallbackNamingRules.cs (3)
33enforcementLevel: ReportDiagnostic.Hidden), 40enforcementLevel: ReportDiagnostic.Hidden), 44enforcementLevel: ReportDiagnostic.Hidden),
Microsoft.CodeAnalysis.CSharp (1)
Compilation\CSharpDiagnosticFilter.cs (1)
269case ReportDiagnostic.Hidden:
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\Analyzers\CSharp\Analyzers\ConvertNamespace\ConvertToBlockScopedNamespaceDiagnosticAnalyzer.cs (1)
53var diagnosticLocation = severity.WithDefaultSeverity(DiagnosticSeverity.Hidden) != ReportDiagnostic.Hidden
src\Analyzers\CSharp\Analyzers\ConvertNamespace\ConvertToFileScopedNamespaceDiagnosticAnalyzer.cs (1)
56var diagnosticLocation = option.Notification.Severity.WithDefaultSeverity(DiagnosticSeverity.Hidden) != ReportDiagnostic.Hidden
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertToProgramMainDiagnosticAnalyzer.cs (1)
58root, isHidden: severity.WithDefaultSeverity(DiagnosticSeverity.Hidden) == ReportDiagnostic.Hidden),
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertToTopLevelStatementsDiagnosticAnalyzer.cs (1)
78methodDeclaration, isHidden: option.Notification.Severity.WithDefaultSeverity(DiagnosticSeverity.Hidden) == ReportDiagnostic.Hidden),
src\Analyzers\CSharp\Analyzers\UseExpressionBody\UseExpressionBodyDiagnosticAnalyzer.cs (2)
100var location = severity.WithDefaultSeverity(DiagnosticSeverity.Hidden) == ReportDiagnostic.Hidden 115var location = severity.WithDefaultSeverity(DiagnosticSeverity.Hidden) == ReportDiagnostic.Hidden
src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
139if (styleOption.Notification.Severity.WithDefaultSeverity(DiagnosticSeverity.Hidden) < ReportDiagnostic.Hidden)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
13412ReportDiagnostic.Hidden => null,
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Diagnostics\NamingStyles\EditorConfigNamingStyleParserTests.cs (1)
221Assert.Equal(ReportDiagnostic.Hidden, namingRule.EnforcementLevel);
EditorConfigSettings\Updater\SettingsUpdaterTests.cs (1)
113[CombinatorialValues(ReportDiagnostic.Warn, ReportDiagnostic.Error, ReportDiagnostic.Info, ReportDiagnostic.Hidden, ReportDiagnostic.Suppress)]
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
Attributes\AttributeTests_WellKnownAttributes.cs (2)
8799verify(TestOptions.DebugDll.WithGeneralDiagnosticOption(ReportDiagnostic.Hidden), 8819verify(TestOptions.DebugDll.WithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>.Empty.Add("TEST1", ReportDiagnostic.Hidden)),
Diagnostics\DiagnosticAnalyzerTests.cs (2)
345specificDiagOptions.Add(infoDiagDescriptor.Id, ReportDiagnostic.Hidden); 424options = TestOptions.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Hidden);
Microsoft.CodeAnalysis.CSharp.Features (10)
ConvertProgram\ConvertToProgramMainCodeFixProvider.cs (1)
41var priority = options.PreferTopLevelStatements.Notification.Severity == ReportDiagnostic.Hidden
ConvertProgram\ConvertToTopLevelStatementsCodeFixProvider.cs (1)
41var priority = options.PreferTopLevelStatements.Notification.Severity == ReportDiagnostic.Hidden
src\Analyzers\CSharp\Analyzers\ConvertNamespace\ConvertToBlockScopedNamespaceDiagnosticAnalyzer.cs (1)
53var diagnosticLocation = severity.WithDefaultSeverity(DiagnosticSeverity.Hidden) != ReportDiagnostic.Hidden
src\Analyzers\CSharp\Analyzers\ConvertNamespace\ConvertToFileScopedNamespaceDiagnosticAnalyzer.cs (1)
56var diagnosticLocation = option.Notification.Severity.WithDefaultSeverity(DiagnosticSeverity.Hidden) != ReportDiagnostic.Hidden
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertToProgramMainDiagnosticAnalyzer.cs (1)
58root, isHidden: severity.WithDefaultSeverity(DiagnosticSeverity.Hidden) == ReportDiagnostic.Hidden),
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertToTopLevelStatementsDiagnosticAnalyzer.cs (1)
78methodDeclaration, isHidden: option.Notification.Severity.WithDefaultSeverity(DiagnosticSeverity.Hidden) == ReportDiagnostic.Hidden),
src\Analyzers\CSharp\Analyzers\UseExpressionBody\UseExpressionBodyDiagnosticAnalyzer.cs (2)
100var location = severity.WithDefaultSeverity(DiagnosticSeverity.Hidden) == ReportDiagnostic.Hidden 115var location = severity.WithDefaultSeverity(DiagnosticSeverity.Hidden) == ReportDiagnostic.Hidden
src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
139if (styleOption.Notification.Severity.WithDefaultSeverity(DiagnosticSeverity.Hidden) < ReportDiagnostic.Hidden)
UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeRefactoringProvider.cs (1)
41case ReportDiagnostic.Hidden:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (20)
Semantics\NullableReferenceTypesTests.cs (20)
125210comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Hidden)); 125220WithSpecificDiagnosticOptions(id, ReportDiagnostic.Hidden). 125231WithGeneralDiagnosticOption(ReportDiagnostic.Hidden)); 125242WithGeneralDiagnosticOption(ReportDiagnostic.Hidden)); 125350comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions.WithSpecificDiagnosticOptions(id1, id2, ReportDiagnostic.Hidden)); 125354WithSpecificDiagnosticOptions(id1, id2, ReportDiagnostic.Hidden). 125359WithGeneralDiagnosticOption(ReportDiagnostic.Hidden)); 125364WithGeneralDiagnosticOption(ReportDiagnostic.Hidden)); 125545comp = CreateCompilation(new[] { source, source2 }, options: options.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Hidden)); 125555WithSpecificDiagnosticOptions(id, ReportDiagnostic.Hidden). 125566WithGeneralDiagnosticOption(ReportDiagnostic.Hidden)); 125577WithGeneralDiagnosticOption(ReportDiagnostic.Hidden)); 126049comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Hidden)); 126054WithSpecificDiagnosticOptions(id, ReportDiagnostic.Hidden). 126060WithGeneralDiagnosticOption(ReportDiagnostic.Hidden)); 126066WithGeneralDiagnosticOption(ReportDiagnostic.Hidden)); 126195comp = CreateCompilation(new[] { source, source2 }, options: options.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Hidden)); 126200WithSpecificDiagnosticOptions(id, ReportDiagnostic.Hidden). 126206WithGeneralDiagnosticOption(ReportDiagnostic.Hidden)); 126212WithGeneralDiagnosticOption(ReportDiagnostic.Hidden));
Microsoft.CodeAnalysis.EditorFeatures (3)
EditorConfigSettings\Data\CodeStyleSetting.cs (2)
22severity = ReportDiagnostic.Hidden; 38ReportDiagnostic.Hidden => NotificationOption2.Silent,
EditorConfigSettings\Updater\SettingsUpdateHelper.cs (1)
69ReportDiagnostic.Hidden => "silent",
Microsoft.CodeAnalysis.Features (4)
src\Analyzers\Core\Analyzers\OrderModifiers\AbstractOrderModifiersDiagnosticAnalyzer.cs (1)
75if (notificationOption.Severity.WithDefaultSeverity(DiagnosticSeverity.Hidden) == ReportDiagnostic.Hidden)
src\Analyzers\Core\CodeFixes\Naming\FallbackNamingRules.cs (3)
33enforcementLevel: ReportDiagnostic.Hidden), 40enforcementLevel: ReportDiagnostic.Hidden), 44enforcementLevel: ReportDiagnostic.Hidden),
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer_IncrementalAnalyzer.cs (1)
147return descriptors.Any(static (d, arg) => d.GetEffectiveSeverity(arg.CompilationOptions, arg.isHostAnalyzer ? arg.analyzerConfigOptions?.ConfigOptionsWithFallback : arg.analyzerConfigOptions?.ConfigOptionsWithoutFallback, arg.analyzerConfigOptions?.TreeOptions) != ReportDiagnostic.Hidden, (project.CompilationOptions, isHostAnalyzer, analyzerConfigOptions));
Microsoft.CodeAnalysis.Test.Utilities (2)
Diagnostics\CommonDiagnosticAnalyzers.cs (1)
437ReportDiagnostic.Info or ReportDiagnostic.Hidden => "note",
Diagnostics\ReportDiagnosticExtensions.cs (1)
20ReportDiagnostic.Hidden => "silent",
Microsoft.CodeAnalysis.UnitTests (4)
Analyzers\AnalyzerConfigTests.cs (2)
1086("cs000", ReportDiagnostic.Hidden), 1087("cs001", ReportDiagnostic.Hidden)),
CommonCommandLineParserTests.cs (2)
419Assert.Equal(ReportDiagnostic.Hidden, ruleSet.SpecificDiagnosticOptions["CA1016"]); 529Assert.Equal(ReportDiagnostic.Hidden, ruleSet.GeneralDiagnosticOption);
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Diagnostics\DiagnosticAnalyzerTests.vb (2)
91specificDiagOptions.Add(infoDiagDescriptor.Id, ReportDiagnostic.Hidden) 167options = TestOptions.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Hidden)
Microsoft.CodeAnalysis.Workspaces (15)
CodeStyle\NotificationOption2_operators.cs (2)
15ReportDiagnostic.Hidden => NotificationOption.Silent, 29ReportDiagnostic.Hidden => WorkspacesResources.Refactoring_Only,
Diagnostics\DiagnosticData.cs (1)
320case ReportDiagnostic.Hidden:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (2)
52(true, ReportDiagnostic.Hidden) => TrueWithSilentEnforcement, 54(false, ReportDiagnostic.Hidden) => FalseWithSilentEnforcement,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\EditorConfigSeverityStrings.cs (1)
28reportDiagnostic = ReportDiagnostic.Hidden;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\NotificationOption2.cs (3)
25/// Notification option for a silent or hidden option with <see cref="ReportDiagnostic.Hidden"/>. 27public static NotificationOption2 Silent => new(ReportDiagnostic.Hidden, false); 53ReportDiagnostic.Hidden or ReportDiagnostic.Default => Silent,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticSeverityExtensions_Shared.cs (1)
25DiagnosticSeverity.Hidden => ReportDiagnostic.Hidden,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ReportDiagnosticExtensions.cs (3)
38case ReportDiagnostic.Hidden: 76ReportDiagnostic.Hidden => EditorConfigSeverityStrings.Silent, 92ReportDiagnostic.Hidden => NotificationOption2.Silent,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_NamingRule.cs (2)
86return ReportDiagnostic.Hidden; 91default: return ReportDiagnostic.Hidden;
Microsoft.CodeAnalysis.Workspaces.UnitTests (8)
CodeStyle\EditorConfigCodeStyleParserTests.cs (8)
16[InlineData("true:refactoring", true, ReportDiagnostic.Hidden)] 17[InlineData("true:silent", true, ReportDiagnostic.Hidden)] 21[InlineData("true", true, ReportDiagnostic.Hidden)] 23[InlineData("false:refactoring", false, ReportDiagnostic.Hidden)] 24[InlineData("false:silent", false, ReportDiagnostic.Hidden)] 28[InlineData("false", false, ReportDiagnostic.Hidden)] 29[InlineData("*", false, ReportDiagnostic.Hidden)] 30[InlineData("false:false", false, ReportDiagnostic.Hidden)]
Microsoft.VisualStudio.LanguageServices (8)
EditorConfigSettings\Analyzers\View\ColumnDefinitions\AnalyzerSeverityColumnDefinition.cs (1)
45CodeAnalysis.ReportDiagnostic.Hidden => ServicesVSResources.Refactoring_Only,
EditorConfigSettings\Analyzers\ViewModel\SeverityViewModel.cs (2)
52ReportDiagnostic.Hidden => 1, 731 => ReportDiagnostic.Hidden,
EditorConfigSettings\CodeStyle\ViewModel\CodeStyleSeverityViewModel.cs (2)
53ReportDiagnostic.Hidden => 0, 670 => ReportDiagnostic.Hidden,
EditorConfigSettings\NamingStyle\View\ColumnDefinitions\NamingStylesSeverityColumnDefinition.cs (1)
51ReportDiagnostic.Hidden => ServicesVSResources.Refactoring_Only,
EditorConfigSettings\NamingStyle\ViewModel\ColumnViewModels\NamingStylesSeverityViewModel.cs (2)
22ReportDiagnostic.Hidden => 1, 371 => ReportDiagnostic.Hidden,