444 references to Suppress
BuildActionTelemetryTable (1)
CodeStyleConfigFileGenerator (1)
GenerateDocumentationAndConfigFiles (11)
Metrics (11)
Metrics.Legacy (11)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (3)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (3)
Microsoft.CodeAnalysis (19)
Microsoft.CodeAnalysis.Analyzers (11)
Microsoft.CodeAnalysis.Analyzers.UnitTests (8)
Microsoft.CodeAnalysis.AnalyzerUtilities (11)
Microsoft.CodeAnalysis.BannedApiAnalyzers (11)
Microsoft.CodeAnalysis.CodeStyle (23)
Microsoft.CodeAnalysis.CSharp (13)
Microsoft.CodeAnalysis.CSharp.CodeStyle (6)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (44)
CommandLineTests.cs (41)
309Assert.Equal(ReportDiagnostic.Suppress, severity);
311Assert.Equal(ReportDiagnostic.Suppress, severity);
2846Assert.True(parsedArgs.CompilationOptions.SpecificDiagnosticOptions["CA1014"] == ReportDiagnostic.Suppress);
3282Assert.Equal(expected: ReportDiagnostic.Suppress, actual: arguments.CompilationOptions.SpecificDiagnosticOptions["Test001"]);
3317Assert.Equal(expected: ReportDiagnostic.Suppress, actual: arguments.CompilationOptions.SpecificDiagnosticOptions["Test001"]);
3352Assert.Equal(expected: ReportDiagnostic.Suppress, actual: arguments.CompilationOptions.SpecificDiagnosticOptions["Test001"]);
3379Assert.Equal(expected: ReportDiagnostic.Suppress, actual: arguments.CompilationOptions.SpecificDiagnosticOptions[warning]);
3382Assert.Equal(expected: ReportDiagnostic.Suppress,
3384Assert.Equal(expected: ReportDiagnostic.Suppress,
3412Assert.Equal(expected: ReportDiagnostic.Suppress, actual: arguments.CompilationOptions.SpecificDiagnosticOptions[warning]);
3415Assert.Equal(expected: ReportDiagnostic.Suppress,
3417Assert.Equal(expected: ReportDiagnostic.Suppress,
3445Assert.Equal(expected: ReportDiagnostic.Suppress, actual: arguments.CompilationOptions.SpecificDiagnosticOptions[warning]);
3448Assert.Equal(expected: ReportDiagnostic.Suppress, actual: arguments.CompilationOptions.SpecificDiagnosticOptions["Test001"]);
3449Assert.Equal(expected: ReportDiagnostic.Suppress,
3451Assert.Equal(expected: ReportDiagnostic.Suppress,
5546AssertSpecificDiagnostics(new[] { 1062, 1066, 1734 }, new[] { ReportDiagnostic.Suppress, ReportDiagnostic.Suppress, ReportDiagnostic.Suppress }, parsedArgs);
5552AssertSpecificDiagnostics(new[] { 1062, 1066, 1734 }, new[] { ReportDiagnostic.Suppress, ReportDiagnostic.Suppress, ReportDiagnostic.Suppress }, parsedArgs);
5558AssertSpecificDiagnostics(new[] { 1062, 1066, 1734, 1762 }, new[] { ReportDiagnostic.Suppress, ReportDiagnostic.Suppress, ReportDiagnostic.Suppress, ReportDiagnostic.Error }, parsedArgs);
5564AssertSpecificDiagnostics(new[] { 1062, 1066, 1734, 1762 }, new[] { ReportDiagnostic.Suppress, ReportDiagnostic.Suppress, ReportDiagnostic.Suppress, ReportDiagnostic.Error }, parsedArgs);
13167TestBulkAnalyzerConfigurationCore(analyzer, analyzerConfigText, errorlog, expectedDiagnosticSeverity: ReportDiagnostic.Suppress, noWarn: true);
13217TestBulkAnalyzerConfigurationCore(analyzer, analyzerConfigText, errorlog, expectedDiagnosticSeverity: ReportDiagnostic.Suppress);
13224TestBulkAnalyzerConfigurationCore(analyzer, analyzerConfigText, errorlog, expectedDiagnosticSeverity: ReportDiagnostic.Suppress);
13231TestBulkAnalyzerConfigurationCore(analyzer, analyzerConfigText: string.Empty, errorlog, expectedDiagnosticSeverity: ReportDiagnostic.Suppress);
13237TestBulkAnalyzerConfigurationCore(analyzer, analyzerConfigText, errorlog, expectedDiagnosticSeverity: ReportDiagnostic.Suppress);
13243TestBulkAnalyzerConfigurationCore(analyzer, analyzerConfigText, errorlog, expectedDiagnosticSeverity: ReportDiagnostic.Suppress);
13273TestBulkAnalyzerConfigurationCore(analyzer, analyzerConfigText, errorlog, expectedDiagnosticSeverity: ReportDiagnostic.Suppress, noWarn: true);
13312expectedDiagnosticSeverity = customConfigurable ? defaultReportDiagnostic : ReportDiagnostic.Suppress;
13323expectedDiagnosticSeverity = customConfigurable ? defaultReportDiagnostic : ReportDiagnostic.Suppress;
13329expectedDiagnosticSeverity = customConfigurable ? defaultReportDiagnostic : ReportDiagnostic.Suppress;
13444ReportDiagnostic.Suppress => null,
15662var comp = CreateCompilation(src, options: TestOptions.DebugExe.WithGeneralDiagnosticOption(ReportDiagnostic.Suppress));
15798var comp = CreateCompilation(src, options: TestOptions.DebugExe.WithGeneralDiagnosticOption(ReportDiagnostic.Suppress));
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (4)
EditorConfigSettings\Updater\SettingsUpdaterTests.cs (3)
109[CombinatorialValues(ReportDiagnostic.Warn, ReportDiagnostic.Error, ReportDiagnostic.Info, ReportDiagnostic.Hidden, ReportDiagnostic.Suppress)]
130var analyzerSetting = new AnalyzerSetting(descriptor, ReportDiagnostic.Suppress, null!, language, new SettingLocation(EditorConfigSettings.LocationKind.VisualStudio, null));
317var analyzerSetting = new AnalyzerSetting(descriptor, ReportDiagnostic.Suppress, updater, Language.CSharp, new SettingLocation(EditorConfigSettings.LocationKind.VisualStudio, null));
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (5)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (32)
Diagnostics\DiagnosticAnalyzerTests.cs (18)
146new[] { KeyValuePair.Create("CA9999_UseOfVariableThatStartsWithX", ReportDiagnostic.Suppress) });
333specificDiagOptions.Add(noneDiagDescriptor.Id, ReportDiagnostic.Suppress);
334specificDiagOptions.Add(infoDiagDescriptor.Id, ReportDiagnostic.Suppress);
335specificDiagOptions.Add(warningDiagDescriptor.Id, ReportDiagnostic.Suppress);
336specificDiagOptions.Add(errorDiagDescriptor.Id, ReportDiagnostic.Suppress);
432options = TestOptions.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Suppress);
461specificDiagOptions.Add(enabledDiagDescriptor.Id, ReportDiagnostic.Suppress);
533specificDiagOptions.Add(PartiallyDisabledAnalyzer.desc2.Id, ReportDiagnostic.Suppress);
1142specificDiagOptions.Add(NotConfigurableDiagnosticAnalyzer.EnabledRule.Id, ReportDiagnostic.Suppress);
1323var specificOption = ReportDiagnostic.Suppress;
1338TestEffectiveSeverity(DiagnosticSeverity.Warning, expectedEffectiveSeverity: ReportDiagnostic.Suppress, generalOption: generalOption, isEnabledByDefault: enabledByDefault);
3387new TestSyntaxTreeOptionsProvider(tree2, (NamedTypeAnalyzer.RuleId, ReportDiagnostic.Suppress)));
3430new TestSyntaxTreeOptionsProvider(tree2, (NamedTypeAnalyzer.RuleId, ReportDiagnostic.Suppress))
3482new TestSyntaxTreeOptionsProvider(tree2, (NamedTypeAnalyzer.RuleId, ReportDiagnostic.Suppress))
3534new TestSyntaxTreeOptionsProvider((NamedTypeAnalyzer.RuleId, ReportDiagnostic.Suppress)));
3555new TestSyntaxTreeOptionsProvider((NamedTypeAnalyzer.RuleId, ReportDiagnostic.Suppress), (tree1, new[] { (NamedTypeAnalyzer.RuleId, ReportDiagnostic.Default) })));
4198(tree2, new[] { (AnalyzerWithDisabledRules.Rule.Id, ReportDiagnostic.Suppress) }),
4199(tree3, new[] { (AnalyzerWithDisabledRules.Rule.Id, ReportDiagnostic.Suppress) })));
Microsoft.CodeAnalysis.CSharp.Features (8)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (28)
Semantics\NullableReferenceTypesTests.cs (21)
6364var comp2 = CreateCompilation(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Suppress));
125264WithSpecificDiagnosticOptions(id, ReportDiagnostic.Suppress));
125269WithSpecificDiagnosticOptions(id, ReportDiagnostic.Suppress).
125275WithGeneralDiagnosticOption(ReportDiagnostic.Suppress));
125407WithSpecificDiagnosticOptions(id1, id2, ReportDiagnostic.Suppress));
125411WithSpecificDiagnosticOptions(id1, id2, ReportDiagnostic.Suppress).
125416WithGeneralDiagnosticOption(ReportDiagnostic.Suppress));
125599WithSpecificDiagnosticOptions(id, ReportDiagnostic.Suppress));
125604WithSpecificDiagnosticOptions(id, ReportDiagnostic.Suppress).
125610WithGeneralDiagnosticOption(ReportDiagnostic.Suppress));
126103WithSpecificDiagnosticOptions(id, ReportDiagnostic.Suppress));
126108WithSpecificDiagnosticOptions(id, ReportDiagnostic.Suppress).
126114WithGeneralDiagnosticOption(ReportDiagnostic.Suppress));
126249WithSpecificDiagnosticOptions(id, ReportDiagnostic.Suppress));
126254WithSpecificDiagnosticOptions(id, ReportDiagnostic.Suppress).
126260WithGeneralDiagnosticOption(ReportDiagnostic.Suppress));
145052options: WithNullableEnable().WithSpecificDiagnosticOptions("CS0436", ReportDiagnostic.Suppress));
145065options: WithNullableEnable().WithSpecificDiagnosticOptions("CS0436", ReportDiagnostic.Suppress));
145122", options: WithNullableEnable().WithSpecificDiagnosticOptions("CS0436", ReportDiagnostic.Suppress));
145140", options: WithNullableEnable().WithSpecificDiagnosticOptions("CS0436", ReportDiagnostic.Suppress));
145194", options: WithNullableEnable().WithSpecificDiagnosticOptions("CS0436", ReportDiagnostic.Suppress));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (15)
Compilation\CompilationAPITests.cs (7)
52diagnosticOptions: CreateImmutableDictionary(("CS1584", ReportDiagnostic.Suppress)),
71.WithGeneralDiagnosticOption(ReportDiagnostic.Suppress);
100var options = WithDiagnosticOptions(tree, ("CS0078", ReportDiagnostic.Suppress));
138var options = WithDiagnosticOptions(tree, ("CS0078", ReportDiagnostic.Suppress));
168(tree, new[] { ("CS0078", ReportDiagnostic.Suppress) }),
194new TestSyntaxTreeOptionsProvider((tree, new[] { ("cs0078", ReportDiagnostic.Suppress) }))
207(tree, new[] { ("cs0078", ReportDiagnostic.Suppress) }))
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (11)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (2)
Microsoft.CodeAnalysis.EditorFeatures (2)
Microsoft.CodeAnalysis.Extensions.Package (1)
Microsoft.CodeAnalysis.Features (16)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (11)
Microsoft.CodeAnalysis.PublicApiAnalyzers (11)
Microsoft.CodeAnalysis.Rebuild (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (11)
Microsoft.CodeAnalysis.Test.Utilities (2)
Microsoft.CodeAnalysis.UnitTests (16)
Analyzers\AnalyzerConfigTests.cs (11)
963CreateImmutableDictionary(("cs000", ReportDiagnostic.Suppress)),
992CreateImmutableDictionary(("cs000", ReportDiagnostic.Suppress))
1040CreateImmutableDictionary(("cs000", ReportDiagnostic.Suppress)),
1063("cs000", ReportDiagnostic.Suppress),
1109("cs000", ReportDiagnostic.Suppress),
1193("cs000", ReportDiagnostic.Suppress),
1196("cs000", ReportDiagnostic.Suppress))
1216("cs000", ReportDiagnostic.Suppress))
1409new[] { ("cs000", ReportDiagnostic.Suppress) },
2032Assert.Equal(CreateImmutableDictionary(("cs000", ReportDiagnostic.Suppress),
2131CreateImmutableDictionary(("cs000", ReportDiagnostic.Suppress)),
Microsoft.CodeAnalysis.VisualBasic (12)
Microsoft.CodeAnalysis.Workspaces (11)
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
Microsoft.VisualStudio.LanguageServices (6)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (3)
Microsoft.VisualStudio.LanguageServices.Implementation (6)
Mvc.Api.Analyzers.Test (1)
Roslyn.Diagnostics.Analyzers (11)
RulesetToEditorconfigConverter (2)
Test.Utilities (11)
Text.Analyzers (11)