387 references to Suppress
BuildActionTelemetryTable (1)
EditorConfigSeverityStrings.cs (1)
23reportDiagnostic = ReportDiagnostic.Suppress;
CodeStyleConfigFileGenerator (1)
EditorConfigSeverityStrings.cs (1)
23reportDiagnostic = ReportDiagnostic.Suppress;
Microsoft.CodeAnalysis (16)
CommandLine\AnalyzerConfigSet.cs (1)
372severity = ReportDiagnostic.Suppress;
Diagnostic\CommonMessageProvider.cs (1)
146case ReportDiagnostic.Suppress:
Diagnostic\Diagnostic.cs (1)
529case ReportDiagnostic.Suppress:
Diagnostic\DiagnosticDescriptor.cs (1)
235return effectiveDiagnostic != null ? MapSeverityToReport(effectiveDiagnostic.Severity) : ReportDiagnostic.Suppress;
Diagnostic\SuppressionDescriptor.cs (1)
110reportDiagnostic == ReportDiagnostic.Suppress;
DiagnosticAnalyzer\AnalyzerDriver.cs (3)
371Debug.Assert(!severityFilter.Contains(ReportDiagnostic.Suppress)); 1321configuredSeverity = ReportDiagnostic.Suppress; 1324if (configuredSeverity != ReportDiagnostic.Suppress)
DiagnosticAnalyzer\AnalyzerManager.cs (3)
336isSuppressed = severity == ReportDiagnostic.Suppress; 340severity = isSuppressed ? ReportDiagnostic.Suppress : DiagnosticDescriptor.MapSeverityToReport(diag.DefaultSeverity); 390if (configuredValue != ReportDiagnostic.Suppress && !severityFilter.Contains(configuredValue))
RuleSet\RuleSet.cs (4)
81case ReportDiagnostic.Suppress: 91if (item.Value != ReportDiagnostic.Suppress && item.Value != ReportDiagnostic.Default) 119if (ruleSetInclude.Action == ReportDiagnostic.Suppress) 229case ReportDiagnostic.Suppress:
RuleSet\RuleSetProcessor.cs (1)
227return ReportDiagnostic.Suppress;
Microsoft.CodeAnalysis.CodeStyle (28)
AbstractQualifyMemberAccessDiagnosticAnalyzer.cs (1)
128if (!shouldOptionBePresent || severity == ReportDiagnostic.Suppress)
AbstractRemoveUnnecessaryParenthesesDiagnosticAnalyzer.cs (1)
88if (preference.Notification.Severity == ReportDiagnostic.Suppress)
AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
105if (severity == ReportDiagnostic.Suppress)
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (9)
205if (unusedParametersOption.Notification.Severity == ReportDiagnostic.Suppress && 206unusedValueExpressionStatementSeverity == ReportDiagnostic.Suppress && 207unusedValueAssignmentSeverity == ReportDiagnostic.Suppress) 222option.Notification.Severity == ReportDiagnostic.Suppress) 225return (default(UnusedValuePreference), ReportDiagnostic.Suppress); 252Debug.Assert(unusedValueExpressionStatementSeverity != ReportDiagnostic.Suppress || 253unusedValueAssignmentSeverity != ReportDiagnostic.Suppress || 254unusedParametersSeverity != ReportDiagnostic.Suppress); 277if (unusedParametersSeverity == ReportDiagnostic.Suppress)
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (3)
131if (_options.UnusedValueExpressionStatementSeverity == ReportDiagnostic.Suppress) 422if (_options.UnusedValueAssignmentSeverity == ReportDiagnostic.Suppress && 566if (_options.UnusedValueAssignmentSeverity == ReportDiagnostic.Suppress ||
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
142if (option.Notification.Severity == ReportDiagnostic.Suppress ||
AbstractUseAutoPropertyAnalyzer.cs (2)
97return preferAutoProps.Value && preferAutoProps.Notification.Severity != ReportDiagnostic.Suppress; 194if (severity == ReportDiagnostic.Suppress)
DiagnosticHelper.cs (1)
248effectiveSeverity == ReportDiagnostic.Suppress,
EditorConfigNamingStyleParser_NamingRule.cs (1)
82return ReportDiagnostic.Suppress;
EditorConfigSeverityStrings.cs (1)
23reportDiagnostic = ReportDiagnostic.Suppress;
NamingStyleDiagnosticAnalyzerBase.cs (1)
141applicableRule.EnforcementLevel == ReportDiagnostic.Suppress)
NotificationOption2.cs (2)
19/// Notification option to disable or suppress an option with <see cref="ReportDiagnostic.Suppress"/>. 21public static NotificationOption2 None => new(ReportDiagnostic.Suppress);
ReportDiagnosticExtensions.cs (3)
41case ReportDiagnostic.Suppress: 75ReportDiagnostic.Suppress => EditorConfigSeverityStrings.None, 100case ReportDiagnostic.Suppress:
UseExplicitTupleNameDiagnosticAnalyzer.cs (1)
43if (severity == ReportDiagnostic.Suppress)
Microsoft.CodeAnalysis.CSharp (13)
CommandLine\CSharpCommandLineParser.cs (3)
244AddWarnings(noWarns, ReportDiagnostic.Suppress, valueMemory.Value); 2125if (existing != ReportDiagnostic.Suppress) 2165if (value != ReportDiagnostic.Suppress)
Compilation\CSharpDiagnosticFilter.cs (10)
167return ReportDiagnostic.Suppress; 174return ReportDiagnostic.Suppress; 217report = isEnabledByDefault ? ReportDiagnostic.Default : ReportDiagnostic.Suppress; 220if (report == ReportDiagnostic.Suppress) 222return ReportDiagnostic.Suppress; 244case ReportDiagnostic.Suppress: 260else if (report == ReportDiagnostic.Suppress) // check options (/nowarn) 262return ReportDiagnostic.Suppress; 278case ReportDiagnostic.Suppress: 284report = ReportDiagnostic.Suppress;
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
ConvertNamespaceAnalysis.cs (2)
31var analyzerDisabled = option.Notification.Severity == ReportDiagnostic.Suppress; 61var analyzerDisabled = option.Notification.Severity == ReportDiagnostic.Suppress;
ConvertProgramAnalysis_ProgramMain.cs (1)
52var analyzerDisabled = option.Notification.Severity == ReportDiagnostic.Suppress;
ConvertProgramAnalysis_TopLevelStatements.cs (1)
20var analyzerDisabled = option.Notification.Severity == ReportDiagnostic.Suppress;
CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
67if (preference.Notification.Severity == ReportDiagnostic.Suppress)
UseExpressionBodyHelper`1.cs (2)
92var analyzerDisabled = preference.Notification.Severity == ReportDiagnostic.Suppress; 176var analyzerDisabled = preference.Notification.Severity == ReportDiagnostic.Suppress;
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (39)
CommandLineTests.cs (39)
252Assert.Equal(ReportDiagnostic.Suppress, severity); 254Assert.Equal(ReportDiagnostic.Suppress, severity); 2729Assert.True(parsedArgs.CompilationOptions.SpecificDiagnosticOptions["CA1014"] == ReportDiagnostic.Suppress); 3165Assert.Equal(expected: ReportDiagnostic.Suppress, actual: arguments.CompilationOptions.SpecificDiagnosticOptions["Test001"]); 3200Assert.Equal(expected: ReportDiagnostic.Suppress, actual: arguments.CompilationOptions.SpecificDiagnosticOptions["Test001"]); 3235Assert.Equal(expected: ReportDiagnostic.Suppress, actual: arguments.CompilationOptions.SpecificDiagnosticOptions["Test001"]); 3262Assert.Equal(expected: ReportDiagnostic.Suppress, actual: arguments.CompilationOptions.SpecificDiagnosticOptions[warning]); 3265Assert.Equal(expected: ReportDiagnostic.Suppress, 3267Assert.Equal(expected: ReportDiagnostic.Suppress, 3295Assert.Equal(expected: ReportDiagnostic.Suppress, actual: arguments.CompilationOptions.SpecificDiagnosticOptions[warning]); 3298Assert.Equal(expected: ReportDiagnostic.Suppress, 3300Assert.Equal(expected: ReportDiagnostic.Suppress, 3328Assert.Equal(expected: ReportDiagnostic.Suppress, actual: arguments.CompilationOptions.SpecificDiagnosticOptions[warning]); 3331Assert.Equal(expected: ReportDiagnostic.Suppress, actual: arguments.CompilationOptions.SpecificDiagnosticOptions["Test001"]); 3332Assert.Equal(expected: ReportDiagnostic.Suppress, 3334Assert.Equal(expected: ReportDiagnostic.Suppress, 5325AssertSpecificDiagnostics(new[] { 1062, 1066, 1734 }, new[] { ReportDiagnostic.Suppress, ReportDiagnostic.Suppress, ReportDiagnostic.Suppress }, parsedArgs); 5331AssertSpecificDiagnostics(new[] { 1062, 1066, 1734 }, new[] { ReportDiagnostic.Suppress, ReportDiagnostic.Suppress, ReportDiagnostic.Suppress }, parsedArgs); 5337AssertSpecificDiagnostics(new[] { 1062, 1066, 1734, 1762 }, new[] { ReportDiagnostic.Suppress, ReportDiagnostic.Suppress, ReportDiagnostic.Suppress, ReportDiagnostic.Error }, parsedArgs); 5343AssertSpecificDiagnostics(new[] { 1062, 1066, 1734, 1762 }, new[] { ReportDiagnostic.Suppress, ReportDiagnostic.Suppress, ReportDiagnostic.Suppress, ReportDiagnostic.Error }, parsedArgs); 12539TestBulkAnalyzerConfigurationCore(analyzer, analyzerConfigText, errorlog, expectedDiagnosticSeverity: ReportDiagnostic.Suppress, noWarn: true); 12589TestBulkAnalyzerConfigurationCore(analyzer, analyzerConfigText, errorlog, expectedDiagnosticSeverity: ReportDiagnostic.Suppress); 12596TestBulkAnalyzerConfigurationCore(analyzer, analyzerConfigText, errorlog, expectedDiagnosticSeverity: ReportDiagnostic.Suppress); 12603TestBulkAnalyzerConfigurationCore(analyzer, analyzerConfigText: string.Empty, errorlog, expectedDiagnosticSeverity: ReportDiagnostic.Suppress); 12609TestBulkAnalyzerConfigurationCore(analyzer, analyzerConfigText, errorlog, expectedDiagnosticSeverity: ReportDiagnostic.Suppress); 12615TestBulkAnalyzerConfigurationCore(analyzer, analyzerConfigText, errorlog, expectedDiagnosticSeverity: ReportDiagnostic.Suppress); 12638TestBulkAnalyzerConfigurationCore(analyzer, analyzerConfigText, errorlog, expectedDiagnosticSeverity: ReportDiagnostic.Suppress, noWarn: true); 12674TestBulkAnalyzerConfigurationCore(analyzer, analyzerConfigText, errorlog, expectedDiagnosticSeverity: ReportDiagnostic.Suppress); 12681TestBulkAnalyzerConfigurationCore(analyzer, analyzerConfigText: string.Empty, errorlog, expectedDiagnosticSeverity: ReportDiagnostic.Suppress); 12687TestBulkAnalyzerConfigurationCore(analyzer, analyzerConfigText, errorlog, expectedDiagnosticSeverity: ReportDiagnostic.Suppress); 12798ReportDiagnostic.Suppress => null,
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (4)
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.cs (1)
1066.Add(IDEDiagnosticIds.RemoveUnnecessarySuppressionDiagnosticId, ReportDiagnostic.Suppress));
EditorConfigSettings\Updater\SettingsUpdaterTests.cs (2)
134var analyzerSetting = new AnalyzerSetting(descriptor, ReportDiagnostic.Suppress, null!, language, new SettingLocation(EditorConfigSettings.LocationKind.VisualStudio, null)); 333var analyzerSetting = new AnalyzerSetting(descriptor, ReportDiagnostic.Suppress, updater, Language.CSharp, new SettingLocation(EditorConfigSettings.LocationKind.VisualStudio, null));
Semantics\SpeculationAnalyzerTests.cs (1)
513TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(new[] { KeyValuePairUtil.Create("CS0219", ReportDiagnostic.Suppress) }));
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
Emit\CompilationEmitTests.cs (1)
4743warnings.Add(MessageProvider.Instance.GetIdForErrorCode((int)ErrorCode.WRN_ALinkWarn), ReportDiagnostic.Suppress);
Emit\EmitErrorTests.cs (1)
305warnOpts.Add(MessageProvider.Instance.GetIdForErrorCode((int)ErrorCode.WRN_UnreferencedVarAssg), ReportDiagnostic.Suppress);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (25)
Attributes\AttributeTests_Assembly.cs (3)
182warnings.Add(MessageProvider.Instance.GetIdForErrorCode((int)ErrorCode.WRN_ALinkWarn), ReportDiagnostic.Suppress); 214warnings.Add(MessageProvider.Instance.GetIdForErrorCode((int)ErrorCode.WRN_ALinkWarn), ReportDiagnostic.Suppress); 430warnings.Add(MessageProvider.Instance.GetIdForErrorCode((int)ErrorCode.WRN_ALinkWarn), ReportDiagnostic.Suppress);
Attributes\AttributeTests_WellKnownAttributes.cs (3)
8718verify(TestOptions.DebugDll.WithGeneralDiagnosticOption(ReportDiagnostic.Suppress)); 8739verify(TestOptions.DebugDll.WithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>.Empty.Add("TEST1", ReportDiagnostic.Suppress))); 8748verify(TestOptions.DebugDll.WithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>.Empty.Add("CS0618", ReportDiagnostic.Suppress)),
Diagnostics\DiagnosticAnalyzerTests.cs (18)
144new[] { KeyValuePairUtil.Create("CA9999_UseOfVariableThatStartsWithX", ReportDiagnostic.Suppress) }); 331specificDiagOptions.Add(noneDiagDescriptor.Id, ReportDiagnostic.Suppress); 332specificDiagOptions.Add(infoDiagDescriptor.Id, ReportDiagnostic.Suppress); 333specificDiagOptions.Add(warningDiagDescriptor.Id, ReportDiagnostic.Suppress); 334specificDiagOptions.Add(errorDiagDescriptor.Id, ReportDiagnostic.Suppress); 430options = TestOptions.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Suppress); 459specificDiagOptions.Add(enabledDiagDescriptor.Id, ReportDiagnostic.Suppress); 531specificDiagOptions.Add(PartiallyDisabledAnalyzer.desc2.Id, ReportDiagnostic.Suppress); 1140specificDiagOptions.Add(NotConfigurableDiagnosticAnalyzer.EnabledRule.Id, ReportDiagnostic.Suppress); 1321var specificOption = ReportDiagnostic.Suppress; 1336TestEffectiveSeverity(DiagnosticSeverity.Warning, expectedEffectiveSeverity: ReportDiagnostic.Suppress, generalOption: generalOption, isEnabledByDefault: enabledByDefault); 3293new TestSyntaxTreeOptionsProvider(tree2, (NamedTypeAnalyzer.RuleId, ReportDiagnostic.Suppress))); 3336new TestSyntaxTreeOptionsProvider(tree2, (NamedTypeAnalyzer.RuleId, ReportDiagnostic.Suppress)) 3388new TestSyntaxTreeOptionsProvider(tree2, (NamedTypeAnalyzer.RuleId, ReportDiagnostic.Suppress)) 3440new TestSyntaxTreeOptionsProvider((NamedTypeAnalyzer.RuleId, ReportDiagnostic.Suppress))); 3461new TestSyntaxTreeOptionsProvider((NamedTypeAnalyzer.RuleId, ReportDiagnostic.Suppress), (tree1, new[] { (NamedTypeAnalyzer.RuleId, ReportDiagnostic.Default) }))); 4043(tree2, new[] { (AnalyzerWithDisabledRules.Rule.Id, ReportDiagnostic.Suppress) }), 4044(tree3, new[] { (AnalyzerWithDisabledRules.Rule.Id, ReportDiagnostic.Suppress) })));
Diagnostics\DiagnosticSuppressorTests.cs (1)
225var specificDiagnosticOptions = compilation.Options.SpecificDiagnosticOptions.Add(suppressionId, ReportDiagnostic.Suppress);
Microsoft.CodeAnalysis.CSharp.Features (9)
CodeRefactorings\UseExplicitOrImplicitType\AbstractUseTypeCodeRefactoringProvider.cs (1)
57if (typeStyle.IsStylePreferred && typeStyle.Severity != ReportDiagnostic.Suppress)
ConvertNamespaceAnalysis.cs (2)
31var analyzerDisabled = option.Notification.Severity == ReportDiagnostic.Suppress; 61var analyzerDisabled = option.Notification.Severity == ReportDiagnostic.Suppress;
ConvertProgramAnalysis_ProgramMain.cs (1)
52var analyzerDisabled = option.Notification.Severity == ReportDiagnostic.Suppress;
ConvertProgramAnalysis_TopLevelStatements.cs (1)
20var analyzerDisabled = option.Notification.Severity == ReportDiagnostic.Suppress;
CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
67if (preference.Notification.Severity == ReportDiagnostic.Suppress)
UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeRefactoringProvider.cs (1)
43case ReportDiagnostic.Suppress:
UseExpressionBodyHelper`1.cs (2)
92var analyzerDisabled = preference.Notification.Severity == ReportDiagnostic.Suppress; 176var analyzerDisabled = preference.Notification.Severity == ReportDiagnostic.Suppress;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (27)
Semantics\NullableReferenceTypesTests.cs (21)
6352var comp2 = CreateCompilation(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Suppress)); 121467WithSpecificDiagnosticOptions(id, ReportDiagnostic.Suppress)); 121472WithSpecificDiagnosticOptions(id, ReportDiagnostic.Suppress). 121478WithGeneralDiagnosticOption(ReportDiagnostic.Suppress)); 121610WithSpecificDiagnosticOptions(id1, id2, ReportDiagnostic.Suppress)); 121614WithSpecificDiagnosticOptions(id1, id2, ReportDiagnostic.Suppress). 121619WithGeneralDiagnosticOption(ReportDiagnostic.Suppress)); 121802WithSpecificDiagnosticOptions(id, ReportDiagnostic.Suppress)); 121807WithSpecificDiagnosticOptions(id, ReportDiagnostic.Suppress). 121813WithGeneralDiagnosticOption(ReportDiagnostic.Suppress)); 122306WithSpecificDiagnosticOptions(id, ReportDiagnostic.Suppress)); 122311WithSpecificDiagnosticOptions(id, ReportDiagnostic.Suppress). 122317WithGeneralDiagnosticOption(ReportDiagnostic.Suppress)); 122452WithSpecificDiagnosticOptions(id, ReportDiagnostic.Suppress)); 122457WithSpecificDiagnosticOptions(id, ReportDiagnostic.Suppress). 122463WithGeneralDiagnosticOption(ReportDiagnostic.Suppress)); 140699options: WithNullableEnable().WithSpecificDiagnosticOptions("CS0436", ReportDiagnostic.Suppress)); 140712options: WithNullableEnable().WithSpecificDiagnosticOptions("CS0436", ReportDiagnostic.Suppress)); 140769", options: WithNullableEnable().WithSpecificDiagnosticOptions("CS0436", ReportDiagnostic.Suppress)); 140787", options: WithNullableEnable().WithSpecificDiagnosticOptions("CS0436", ReportDiagnostic.Suppress)); 140841", options: WithNullableEnable().WithSpecificDiagnosticOptions("CS0436", ReportDiagnostic.Suppress));
Semantics\RecordTests.cs (1)
30172var compB = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions("CS1701", ReportDiagnostic.Suppress), parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.NetCoreApp);
Semantics\SemanticErrorTests.cs (3)
2119{ MessageProvider.Instance.GetIdForErrorCode(649), ReportDiagnostic.Suppress } 11034noWarns.Add(MessageProvider.Instance.GetIdForErrorCode(219), ReportDiagnostic.Suppress); 23418CreateCompilation(builder.ToString(), null, TestOptions.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Suppress)).VerifyEmitDiagnostics(
SourceGeneration\GeneratorDriverTests.cs (2)
1176verifyDiagnosticsWithOptions(options.WithSpecificDiagnosticOptions("GEN001", ReportDiagnostic.Suppress), 1179verifyDiagnosticsWithOptions(options.WithSpecificDiagnosticOptions("GEN002", ReportDiagnostic.Suppress),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (15)
Compilation\CompilationAPITests.cs (7)
54diagnosticOptions: CreateImmutableDictionary(("CS1584", ReportDiagnostic.Suppress)), 73.WithGeneralDiagnosticOption(ReportDiagnostic.Suppress); 102var options = WithDiagnosticOptions(tree, ("CS0078", ReportDiagnostic.Suppress)); 140var options = WithDiagnosticOptions(tree, ("CS0078", ReportDiagnostic.Suppress)); 170(tree, new[] { ("CS0078", ReportDiagnostic.Suppress) }), 196new TestSyntaxTreeOptionsProvider((tree, new[] { ("cs0078", ReportDiagnostic.Suppress) })) 209(tree, new[] { ("cs0078", ReportDiagnostic.Suppress) }))
Compilation\CSharpCompilationOptionsTests.cs (3)
84TestHiddenProperty((old, value) => old.WithGeneralDiagnosticOption(value), opt => opt.GeneralDiagnosticOption, ReportDiagnostic.Suppress); 122TestProperty((old, value) => old.WithGeneralDiagnosticOption(value), opt => opt.GeneralDiagnosticOption, ReportDiagnostic.Suppress); 231{ MessageProvider.Instance.GetIdForErrorCode(2), ReportDiagnostic.Suppress },
Compilation\UsedAssembliesTests.cs (1)
295options = options.WithSpecificDiagnosticOptions(options.SpecificDiagnosticOptions.Add("CS1591", ReportDiagnostic.Suppress));
DocumentationComments\DocumentationCommentCompilerTests.cs (1)
5069var warnDict = new Dictionary<string, ReportDiagnostic> { { MessageProvider.Instance.GetIdForErrorCode((int)ErrorCode.WRN_MissingXMLComment), ReportDiagnostic.Suppress } };
Symbols\CovariantReturnTests.cs (1)
515options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions("CS1701", ReportDiagnostic.Suppress),
Symbols\GenericConstraintTests.cs (1)
7315comp.WithOptions(comp.Options.WithSpecificDiagnosticOptions("CS1701", ReportDiagnostic.Suppress)),
Symbols\SymbolErrorTests.cs (1)
107options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(new Dictionary<string, ReportDiagnostic>() { { MessageProvider.Instance.GetIdForErrorCode((int)ErrorCode.WRN_UnreferencedField), ReportDiagnostic.Suppress } }),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (11)
Diagnostics\DiagnosticTest.cs (7)
538warnings.Add(MessageProvider.Instance.GetIdForErrorCode(420), ReportDiagnostic.Suppress); 582warnings.Add(MessageProvider.Instance.GetIdForErrorCode(168), ReportDiagnostic.Suppress); 1467warnings.Add(MessageProvider.Instance.GetIdForErrorCode(1633), ReportDiagnostic.Suppress); 1750warnings[MessageProvider.Instance.GetIdForErrorCode(168)] = ReportDiagnostic.Suppress; 1802warnings[MessageProvider.Instance.GetIdForErrorCode(168)] = ReportDiagnostic.Suppress; 2111var options = TestOptions.DebugDll.WithGeneralDiagnosticOption(ReportDiagnostic.Suppress); 2232warnings[MessageProvider.Instance.GetIdForErrorCode(168)] = ReportDiagnostic.Suppress;
Syntax\SyntaxTreeTests.cs (4)
130var options = CreateImmutableDictionary(("CS0078", ReportDiagnostic.Suppress)); 140var options = CreateImmutableDictionary(("CS0078", ReportDiagnostic.Suppress)); 187var options = CreateImmutableDictionary(("CS0078", ReportDiagnostic.Suppress)); 232new[] { KeyValuePair.Create("CS00778", ReportDiagnostic.Suppress) });
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (2)
CodeStyle\CSharpEditorConfigCodeStyleParserTests.cs (2)
43[InlineData("false:none", (int)ExpressionBodyPreference.Never, ReportDiagnostic.Suppress)] 48[InlineData("false : none", (int)ExpressionBodyPreference.Never, ReportDiagnostic.Suppress)]
Microsoft.CodeAnalysis.EditorFeatures (1)
EditorConfigSettings\Data\AnalyzerSetting.cs (1)
37var enabled = effectiveSeverity != ReportDiagnostic.Suppress;
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
Diagnostics\DiagnosticServiceTests.vb (1)
291suppressDiagOptions.Add(workspaceDiagnosticAnalyzer.DiagDescriptor.Id, ReportDiagnostic.Suppress)
Microsoft.CodeAnalysis.Features (22)
AbstractQualifyMemberAccessDiagnosticAnalyzer.cs (1)
128if (!shouldOptionBePresent || severity == ReportDiagnostic.Suppress)
AbstractRemoveUnnecessaryParenthesesDiagnosticAnalyzer.cs (1)
88if (preference.Notification.Severity == ReportDiagnostic.Suppress)
AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
105if (severity == ReportDiagnostic.Suppress)
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (9)
205if (unusedParametersOption.Notification.Severity == ReportDiagnostic.Suppress && 206unusedValueExpressionStatementSeverity == ReportDiagnostic.Suppress && 207unusedValueAssignmentSeverity == ReportDiagnostic.Suppress) 222option.Notification.Severity == ReportDiagnostic.Suppress) 225return (default(UnusedValuePreference), ReportDiagnostic.Suppress); 252Debug.Assert(unusedValueExpressionStatementSeverity != ReportDiagnostic.Suppress || 253unusedValueAssignmentSeverity != ReportDiagnostic.Suppress || 254unusedParametersSeverity != ReportDiagnostic.Suppress); 277if (unusedParametersSeverity == ReportDiagnostic.Suppress)
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (3)
131if (_options.UnusedValueExpressionStatementSeverity == ReportDiagnostic.Suppress) 422if (_options.UnusedValueAssignmentSeverity == ReportDiagnostic.Suppress && 566if (_options.UnusedValueAssignmentSeverity == ReportDiagnostic.Suppress ||
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
142if (option.Notification.Severity == ReportDiagnostic.Suppress ||
AbstractUseAutoPropertyAnalyzer.cs (2)
97return preferAutoProps.Value && preferAutoProps.Notification.Severity != ReportDiagnostic.Suppress; 194if (severity == ReportDiagnostic.Suppress)
DiagnosticHelper.cs (1)
248effectiveSeverity == ReportDiagnostic.Suppress,
NamingStyleDiagnosticAnalyzerBase.cs (1)
141applicableRule.EnforcementLevel == ReportDiagnostic.Suppress)
PreferFrameworkType\PreferFrameworkTypeDiagnosticAnalyzerBase.cs (1)
110=> !optionValue.Value && optionValue.Notification.Severity != ReportDiagnostic.Suppress;
UseExplicitTupleNameDiagnosticAnalyzer.cs (1)
43if (severity == ReportDiagnostic.Suppress)
Microsoft.CodeAnalysis.Rebuild (1)
CSharpCompilationFactory.cs (1)
104ReportDiagnostic.Suppress,
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\ReportDiagnosticExtensions.cs (1)
21ReportDiagnostic.Suppress => "none",
Microsoft.CodeAnalysis.UnitTests (15)
Analyzers\AnalyzerConfigTests.cs (10)
929CreateImmutableDictionary(("cs000", ReportDiagnostic.Suppress)), 979CreateImmutableDictionary(("cs000", ReportDiagnostic.Suppress)), 1002("cs000", ReportDiagnostic.Suppress), 1048("cs000", ReportDiagnostic.Suppress), 1110("cs000", ReportDiagnostic.Suppress), 1113("cs000", ReportDiagnostic.Suppress)) 1133("cs000", ReportDiagnostic.Suppress)) 1326new[] { ("cs000", ReportDiagnostic.Suppress) }, 1949Assert.Equal(CreateImmutableDictionary(("cs000", ReportDiagnostic.Suppress), 2048CreateImmutableDictionary(("cs000", ReportDiagnostic.Suppress)),
CommonCommandLineParserTests.cs (4)
415Assert.Equal(ReportDiagnostic.Suppress, ruleSet.SpecificDiagnosticOptions["CA1014"]); 889Assert.Equal(ReportDiagnostic.Suppress, ruleSet.SpecificDiagnosticOptions["CA1013"]); 957Assert.Equal(ReportDiagnostic.Suppress, ruleSet.SpecificDiagnosticOptions["CA2111"]); 958Assert.Equal(ReportDiagnostic.Suppress, ruleSet.SpecificDiagnosticOptions["CA2119"]);
Diagnostics\CompilationWithAnalyzersTests.cs (1)
41new[] { KeyValuePairUtil.Create($"CS{(int)ErrorCode.WRN_AlwaysNull:D4}", ReportDiagnostic.Suppress) }));
Microsoft.CodeAnalysis.VisualBasic (12)
CommandLine\VisualBasicCommandLineParser.vb (5)
826If generalDiagnosticOption <> ReportDiagnostic.Suppress Then 848generalDiagnosticOption = ReportDiagnostic.Suppress 853specificDiagnosticOptionsFromGeneralArguments.Add(pair.Key, ReportDiagnostic.Suppress) 860AddWarnings(specificDiagnosticOptionsFromNoWarnArguments, ReportDiagnostic.Suppress, ParseWarnings(value)) 2245If existing <> ReportDiagnostic.Suppress Then
Compilation\VisualBasicDiagnosticFilter.vb (6)
173report = If(isEnabledByDefault, ReportDiagnostic.Default, ReportDiagnostic.Suppress) 177If report = ReportDiagnostic.Suppress Then 178Return ReportDiagnostic.Suppress 183location.SourceTree.GetWarningState(id, location.SourceSpan.Start) = ReportDiagnostic.Suppress Then 194If generalDiagnosticOption = ReportDiagnostic.Suppress AndAlso 196Return ReportDiagnostic.Suppress
Syntax\VisualBasicWarningStateMap.vb (1)
68reportingState = ReportDiagnostic.Suppress
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (16)
CommandLineTests.vb (16)
135Assert.Equal(ReportDiagnostic.Suppress, report) 137Assert.Equal(ReportDiagnostic.Suppress, report) 139Assert.Equal(ReportDiagnostic.Suppress, report) 287Assert.Equal(cmd.Arguments.CompilationOptions.GeneralDiagnosticOption, ReportDiagnostic.Suppress) 296Assert.Equal(cmd.Arguments.CompilationOptions.GeneralDiagnosticOption, ReportDiagnostic.Suppress) 299Assert.Equal(cmd.Arguments.CompilationOptions.GeneralDiagnosticOption, ReportDiagnostic.Suppress) 302Assert.Equal(cmd.Arguments.CompilationOptions.GeneralDiagnosticOption, ReportDiagnostic.Suppress) 2839Assert.True(parsedArgs.CompilationOptions.SpecificDiagnosticOptions("CA1014") = ReportDiagnostic.Suppress) 5808Assert.Equal(ReportDiagnostic.Suppress, parsedArgs.CompilationOptions.GeneralDiagnosticOption) 5817AssertSpecificDiagnostics({42024, 42025}, {ReportDiagnostic.Suppress, ReportDiagnostic.Suppress}, parsedArgs) 8770Assert.Equal(expected:=ReportDiagnostic.Suppress, actual:=arguments.CompilationOptions.GeneralDiagnosticOption) 8793Assert.Equal(expected:=ReportDiagnostic.Suppress, actual:=arguments.CompilationOptions.GeneralDiagnosticOption) 8796Assert.Equal(expected:=ReportDiagnostic.Suppress, actual:=arguments.CompilationOptions.SpecificDiagnosticOptions("Test002")) 8797Assert.Equal(expected:=ReportDiagnostic.Suppress, actual:=arguments.CompilationOptions.SpecificDiagnosticOptions("Test003")) 8818Assert.Equal(expected:=ReportDiagnostic.Suppress, actual:=arguments.CompilationOptions.SpecificDiagnosticOptions("Test001"))
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (1)
Semantics\SpeculationAnalyzerTests.vb (1)
138TestOptions.ReleaseDll.WithSpecificDiagnosticOptions({KeyValuePairUtil.Create("BC0219", ReportDiagnostic.Suppress)}))
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Emit\CompilationEmitTests.vb (1)
3936warns.Add(MessageProvider.Instance.GetIdForErrorCode(40010), ReportDiagnostic.Suppress)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (27)
Compilation\CompilationAPITests.vb (6)
45WithGeneralDiagnosticOption(ReportDiagnostic.Suppress) 73Dim options = WithDiagnosticOptions(tree, ("BC42024", ReportDiagnostic.Suppress)) 108CreateImmutableDictionary(("BC42024", ReportDiagnostic.Suppress))) 136(tree, {("BC42024", ReportDiagnostic.Suppress)}), 156Dim options = WithDiagnosticOptions(tree, ("bc42024", ReportDiagnostic.Suppress)) 165(tree, {("bc42024", ReportDiagnostic.Suppress)}))
Compilation\VisualBasicCompilationOptionsTests.vb (8)
38TestHiddenProperty(Function(old, value) old.WithGeneralDiagnosticOption(value), Function(opt) opt.GeneralDiagnosticOption, ReportDiagnostic.Suppress) 113TestProperty(Function(old, value) old.WithGeneralDiagnosticOption(value), Function(opt) opt.GeneralDiagnosticOption, ReportDiagnostic.Suppress) 427Dim options = commonoption.WithGeneralDiagnosticOption(ReportDiagnostic.Suppress) 434warnings.Add(MessageProvider.Instance.GetIdForErrorCode(42024), ReportDiagnostic.Suppress) 444warnings.Add(MessageProvider.Instance.GetIdForErrorCode(42024), ReportDiagnostic.Suppress) 445warnings.Add(MessageProvider.Instance.GetIdForErrorCode(42099), ReportDiagnostic.Suppress) 488warnings.Add(MessageProvider.Instance.GetIdForErrorCode(42024), ReportDiagnostic.Suppress) 500options = commonoption.WithSpecificDiagnosticOptions(New ReadOnlyDictionary(Of String, ReportDiagnostic)(warnings)).WithGeneralDiagnosticOption(ReportDiagnostic.Suppress)
Diagnostics\DiagnosticAnalyzerTests.vb (10)
78specificDiagOptions.Add(noneDiagDescriptor.Id, ReportDiagnostic.Suppress) 79specificDiagOptions.Add(infoDiagDescriptor.Id, ReportDiagnostic.Suppress) 80specificDiagOptions.Add(warningDiagDescriptor.Id, ReportDiagnostic.Suppress) 81specificDiagOptions.Add(errorDiagDescriptor.Id, ReportDiagnostic.Suppress) 174options = TestOptions.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Suppress) 203specificDiagOptions.Add(enabledDiagDescriptor.Id, ReportDiagnostic.Suppress) 255specificDiagOptions.Add(PartiallyDisabledAnalyzer.desc2.Id, ReportDiagnostic.Suppress) 685specificDiagOptions.Add(NotConfigurableDiagnosticAnalyzer.EnabledRule.Id, ReportDiagnostic.Suppress) 791Dim specificOption = ReportDiagnostic.Suppress 805TestEffectiveSeverity(DiagnosticSeverity.Warning, expectedEffectiveSeverity:=ReportDiagnostic.Suppress, generalOption:=generalOption, isEnabledByDefault:=enabledByDefault)
Semantics\AsyncAwait.vb (1)
5502warnings.Add(MessageProvider.Instance.GetIdForErrorCode(42356), ReportDiagnostic.Suppress)
SourceGeneration\GeneratorDriverTests.vb (2)
201warnings.Add("GEN001", ReportDiagnostic.Suppress) 206warnings.Add("GEN002", ReportDiagnostic.Suppress)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (2)
UsedAssembliesTests.vb (2)
3664WithSpecificDiagnosticOptions({KeyValuePairUtil.Create("BC40057", ReportDiagnostic.Suppress)}), 3676WithSpecificDiagnosticOptions({KeyValuePairUtil.Create("BC40057", ReportDiagnostic.Suppress)}),
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (55)
Parser\ParseDirectives.vb (51)
2792diagOptions.Add(MessageProvider.Instance.GetIdForErrorCode(42024), ReportDiagnostic.Suppress) 2800compOptions = TestOptions.ReleaseExe.WithGeneralDiagnosticOption(ReportDiagnostic.Suppress) 2832diagOptions.Add(MessageProvider.Instance.GetIdForErrorCode(42024), ReportDiagnostic.Suppress) 2840compOptions = TestOptions.ReleaseExe.WithGeneralDiagnosticOption(ReportDiagnostic.Suppress) 2872diagOptions.Add(MessageProvider.Instance.GetIdForErrorCode(42024), ReportDiagnostic.Suppress) 2880compOptions = TestOptions.ReleaseExe.WithGeneralDiagnosticOption(ReportDiagnostic.Suppress) 2912diagOptions.Add(MessageProvider.Instance.GetIdForErrorCode(42024), ReportDiagnostic.Suppress) 2920compOptions = TestOptions.ReleaseExe.WithGeneralDiagnosticOption(ReportDiagnostic.Suppress) 2954diagOptions.Add(MessageProvider.Instance.GetIdForErrorCode(42024), ReportDiagnostic.Suppress) 2965compOptions = TestOptions.ReleaseExe.WithGeneralDiagnosticOption(ReportDiagnostic.Suppress) 2999diagOptions.Add(MessageProvider.Instance.GetIdForErrorCode(42024), ReportDiagnostic.Suppress) 3010compOptions = TestOptions.ReleaseExe.WithGeneralDiagnosticOption(ReportDiagnostic.Suppress) 3044diagOptions.Add(MessageProvider.Instance.GetIdForErrorCode(42024), ReportDiagnostic.Suppress) 3054compOptions = TestOptions.ReleaseExe.WithGeneralDiagnosticOption(ReportDiagnostic.Suppress) 3087diagOptions.Add("bc42024", ReportDiagnostic.Suppress) 3097compOptions = TestOptions.ReleaseExe.WithGeneralDiagnosticOption(ReportDiagnostic.Suppress) 3136diagOptions.Add("bC42024", ReportDiagnostic.Suppress) 3146compOptions = TestOptions.ReleaseExe.WithGeneralDiagnosticOption(ReportDiagnostic.Suppress) 3225diagOptions.Add("SoMeiD", ReportDiagnostic.Suppress) 3233compOptions = TestOptions.ReleaseExe.WithGeneralDiagnosticOption(ReportDiagnostic.Suppress) 3269diagOptions.Add(MessageProvider.Instance.GetIdForErrorCode(42024), ReportDiagnostic.Suppress) 3280compOptions = TestOptions.ReleaseExe.WithGeneralDiagnosticOption(ReportDiagnostic.Suppress) 3332diagOptions.Add("__somethIng_123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789023456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678902345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789023456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678902345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789023456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678902345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", ReportDiagnostic.Suppress) 3340compOptions = TestOptions.ReleaseExe.WithGeneralDiagnosticOption(ReportDiagnostic.Suppress) 3421Assert.Equal(ReportDiagnostic.Suppress, tree.GetWarningState("BC42024", GetEndPosition(tree, "#Disable Warning"))) 3422Assert.Equal(ReportDiagnostic.Suppress, tree.GetWarningState("BC42024", GetStartPosition(tree, "Module Program"))) 3423Assert.Equal(ReportDiagnostic.Suppress, tree.GetWarningState("BC42024", GetEndPosition(tree, "Module Program"))) 3424Assert.Equal(ReportDiagnostic.Suppress, tree.GetWarningState("BC42024", GetStartPosition(tree, "#enable Warning"))) 3425Assert.Equal(ReportDiagnostic.Suppress, tree.GetWarningState("bC42104", GetEndPosition(tree, "#Disable Warning"))) 3426Assert.Equal(ReportDiagnostic.Suppress, tree.GetWarningState("bC42104", GetStartPosition(tree, "Module Program"))) 3427Assert.Equal(ReportDiagnostic.Suppress, tree.GetWarningState("bC42104", GetEndPosition(tree, "Module Program"))) 3428Assert.Equal(ReportDiagnostic.Suppress, tree.GetWarningState("bC42104", GetStartPosition(tree, "#enable Warning"))) 3435Assert.Equal(ReportDiagnostic.Suppress, tree.GetWarningState("BC42024", GetEndPosition(tree, "#Disable Warning BC42024"))) 3436Assert.Equal(ReportDiagnostic.Suppress, tree.GetWarningState("BC42024", GetEndPosition(tree, "Dim b"))) 3440Assert.Equal(ReportDiagnostic.Suppress, tree.GetWarningState("BC42024", GetEndPosition(tree, "#enable warning [bc42024]") - 1)) 3450Assert.Equal(ReportDiagnostic.Suppress, tree.GetWarningState("BC42024", GetEndPosition(tree, "#disable warning BC42024, [bc42104]"))) 3451Assert.Equal(ReportDiagnostic.Suppress, tree.GetWarningState("BC42024", GetEndPosition(tree, "End Module"))) 3454Assert.Equal(ReportDiagnostic.Suppress, tree.GetWarningState("bc42104", GetEndPosition(tree, "#disable warning BC42024, [bc42104]"))) 3455Assert.Equal(ReportDiagnostic.Suppress, tree.GetWarningState("bc42104", GetEndPosition(tree, "End Module"))) 3457Assert.Equal(ReportDiagnostic.Suppress, tree.GetWarningState("BC42024", GetEndPosition(tree, "#enable Warning") - 1)) 3459Assert.Equal(ReportDiagnostic.Suppress, tree.GetWarningState("bc42104", GetEndPosition(tree, "#enable Warning") - 1)) 3463Assert.Equal(ReportDiagnostic.Suppress, tree.GetWarningState("BC42024", endPos - 1)) 3465Assert.Equal(ReportDiagnostic.Suppress, tree.GetWarningState("bc42104", endPos - 1)) 3503Assert.Equal(ReportDiagnostic.Suppress, tree.GetWarningState("BC42024", GetEndPosition(tree, "#Disable Warning bc42024, [BC42025]"))) 3505Assert.Equal(ReportDiagnostic.Suppress, tree.GetWarningState("BC42025", GetEndPosition(tree, "#Disable Warning bc42024, [BC42025]"))) 3507Assert.Equal(ReportDiagnostic.Suppress, tree.GetWarningState("BC42024", GetStartPosition(tree, "#enable warning bc42024, bc42025"))) 3508Assert.Equal(ReportDiagnostic.Suppress, tree.GetWarningState("BC42024", GetEndPosition(tree, "#enable warning bc42024, bc42025"))) 3509Assert.Equal(ReportDiagnostic.Suppress, tree.GetWarningState("BC42025", GetStartPosition(tree, "#enable warning bc42024, bc42025"))) 3510Assert.Equal(ReportDiagnostic.Suppress, tree.GetWarningState("BC42025", GetEndPosition(tree, "#enable warning bc42024, bc42025"))) 3512Assert.Equal(ReportDiagnostic.Suppress, tree.GetWarningState("BC42024", GetStartPosition(tree, "#Enable Warning [bc42025], [bC42024]") + 1)) 3514Assert.Equal(ReportDiagnostic.Suppress, tree.GetWarningState("BC42025", GetStartPosition(tree, "#Enable Warning [bc42025], [bC42024]") + 1))
Syntax\SyntaxTreeTests.vb (4)
25Dim options = CreateImmutableDictionary(("BC000", ReportDiagnostic.Suppress)) 32Dim options = CreateImmutableDictionary(("BC000", ReportDiagnostic.Suppress)) 64Dim options = CreateImmutableDictionary(("BC000", ReportDiagnostic.Suppress)) 100Dim map = CreateImmutableDictionary(("BC000", ReportDiagnostic.Suppress))
Microsoft.CodeAnalysis.Workspaces (10)
CodeStyle\NotificationOption2_operators.cs (2)
14ReportDiagnostic.Suppress => NotificationOption.None, 28ReportDiagnostic.Suppress => WorkspacesResources.None,
Diagnostics\DiagnosticData.cs (1)
317if (reportDiagnostic == ReportDiagnostic.Suppress)
EditorConfigNamingStyleParser_NamingRule.cs (1)
82return ReportDiagnostic.Suppress;
EditorConfigSeverityStrings.cs (1)
23reportDiagnostic = ReportDiagnostic.Suppress;
NotificationOption2.cs (2)
19/// Notification option to disable or suppress an option with <see cref="ReportDiagnostic.Suppress"/>. 21public static NotificationOption2 None => new(ReportDiagnostic.Suppress);
ReportDiagnosticExtensions.cs (3)
41case ReportDiagnostic.Suppress: 75ReportDiagnostic.Suppress => EditorConfigSeverityStrings.None, 100case ReportDiagnostic.Suppress:
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
CodeStyle\EditorConfigCodeStyleParserTests.cs (4)
23[InlineData("true:none", true, ReportDiagnostic.Suppress)] 30[InlineData("false:none", false, ReportDiagnostic.Suppress)] 55[InlineData("never:none", AccessibilityModifiersRequired.Never, ReportDiagnostic.Suppress)] 59[InlineData("never : none", AccessibilityModifiersRequired.Never, ReportDiagnostic.Suppress), WorkItem("https://github.com/dotnet/roslyn/issues/27685")]
Microsoft.VisualStudio.LanguageServices (1)
TableDataSource\Suppression\VisualStudioDiagnosticListTableCommandHandler.cs (1)
276ID.RoslynCommands.ErrorListSetSeverityNone => ReportDiagnostic.Suppress,
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ProjectSystemShim\CSharpProjectShim.OptionsProcessor.cs (1)
124diagnosticOptions[diagnosticID] = ReportDiagnostic.Suppress;
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (3)
ProjectSystemShim\LegacyProject\AnalyzersTests.cs (3)
183Assert.Equal(expected: ReportDiagnostic.Suppress, actual: options.SpecificDiagnosticOptions["CS1014"]); 191Assert.Equal(expected: ReportDiagnostic.Suppress, actual: options.SpecificDiagnosticOptions["CS1014"]); 218Assert.Equal(expected: ReportDiagnostic.Suppress, actual: ca1014DiagnosticOption);
Microsoft.VisualStudio.LanguageServices.Implementation (6)
ProjectSystem\CPS\TempPECompiler.cs (1)
73.WithGeneralDiagnosticOption(ReportDiagnostic.Suppress)
SolutionExplorer\AnalyzersCommandHandler.cs (2)
317case ReportDiagnostic.Suppress: 631selectedAction = ReportDiagnostic.Suppress;
SolutionExplorer\DiagnosticItem\DiagnosticItem.BrowseObject.cs (1)
150ReportDiagnostic.Suppress => SolutionExplorerShim.Suppressed,
SolutionExplorer\DiagnosticItem\DiagnosticItem.cs (1)
68ReportDiagnostic.Suppress => KnownMonikers.CodeSuppressedRule,
SolutionExplorer\RuleSetDocumentExtensions.cs (1)
70case ReportDiagnostic.Suppress:
Microsoft.VisualStudio.LanguageServices.UnitTests (4)
ProjectSystemShim\ConvertedVisualBasicProjectOptionsTests.vb (4)
124Assert.Equal(expected:=ReportDiagnostic.Suppress, actual:=convertedOptions.GeneralDiagnosticOption) 127Assert.Equal(expected:=ReportDiagnostic.Suppress, actual:=convertedOptions.SpecificDiagnosticOptions("Test002")) 128Assert.Equal(expected:=ReportDiagnostic.Suppress, actual:=convertedOptions.SpecificDiagnosticOptions("Test003")) 145Assert.Equal(expected:=ReportDiagnostic.Suppress, actual:=convertedOptions.SpecificDiagnosticOptions("Test001"))
Microsoft.VisualStudio.LanguageServices.VisualBasic (3)
ProjectSystemShim\VisualBasicProject.OptionsProcessor.vb (3)
281diagnosticOptions(pair.Key) = ReportDiagnostic.Suppress 301diagnosticOptions(diagnosticID) = ReportDiagnostic.Suppress 310Return ReportDiagnostic.Suppress