186 references to Warn
BuildActionTelemetryTable (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\EditorConfigSeverityStrings.cs (1)
36reportDiagnostic = ReportDiagnostic.Warn;
CodeStyleConfigFileGenerator (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\EditorConfigSeverityStrings.cs (1)
36reportDiagnostic = ReportDiagnostic.Warn;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticSeverityExtensions_Shared.cs (1)
27DiagnosticSeverity.Warning => ReportDiagnostic.Warn,
Microsoft.CodeAnalysis (15)
CommandLine\AnalyzerConfigSet.cs (1)
346severity = ReportDiagnostic.Warn;
Diagnostic\CommonMessageProvider.cs (1)
140case ReportDiagnostic.Warn:
Diagnostic\Diagnostic.cs (1)
538case ReportDiagnostic.Warn:
Diagnostic\DiagnosticDescriptor.cs (2)
258return ReportDiagnostic.Warn; 272case ReportDiagnostic.Warn:
DiagnosticAnalyzer\AnalyzerDriver.cs (2)
963if (defaultSeverity == ReportDiagnostic.Warn && 986if (severity == ReportDiagnostic.Warn &&
DiagnosticAnalyzer\AnalyzerOptionsExtensions.cs (2)
70if (severity == ReportDiagnostic.Warn && compilation.Options.GeneralDiagnosticOption == ReportDiagnostic.Error) 82if (severity == ReportDiagnostic.Warn && compilation.Options.GeneralDiagnosticOption == ReportDiagnostic.Error)
RuleSet\RuleSet.cs (5)
84case ReportDiagnostic.Warn: 232return action1 == ReportDiagnostic.Warn || action1 == ReportDiagnostic.Error || action1 == ReportDiagnostic.Info || action1 == ReportDiagnostic.Hidden; 234return action1 == ReportDiagnostic.Warn || action1 == ReportDiagnostic.Error || action1 == ReportDiagnostic.Info; 236return action1 == ReportDiagnostic.Warn || action1 == ReportDiagnostic.Error; 237case ReportDiagnostic.Warn:
RuleSet\RuleSetProcessor.cs (1)
211return ReportDiagnostic.Warn;
Microsoft.CodeAnalysis.CodeStyle (10)
src\Analyzers\Core\Analyzers\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (1)
137if (effectiveSeverity is ReportDiagnostic.Warn or ReportDiagnostic.Error)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\EditorConfigSeverityStrings.cs (1)
36reportDiagnostic = ReportDiagnostic.Warn;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\NotificationOption2.cs (3)
35/// Notification option for a warning option with <see cref="ReportDiagnostic.Warn"/>. 37public static NotificationOption2 Warning => new(ReportDiagnostic.Warn, false); 51ReportDiagnostic.Warn => Warning,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticSeverityExtensions_Shared.cs (1)
27DiagnosticSeverity.Warning => ReportDiagnostic.Warn,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ReportDiagnosticExtensions.cs (3)
32case ReportDiagnostic.Warn: 78ReportDiagnostic.Warn => EditorConfigSeverityStrings.Warning, 90ReportDiagnostic.Warn => NotificationOption2.Warning,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_NamingRule.cs (1)
89case EditorConfigSeverityStrings.Warning: return ReportDiagnostic.Warn;
Microsoft.CodeAnalysis.CSharp (4)
CommandLine\CSharpCommandLineParser.cs (1)
891if (diagnosticOptions[key] == ReportDiagnostic.Warn)
Compilation\CSharpDiagnosticFilter.cs (3)
216if (report == ReportDiagnostic.Warn && generalDiagnosticOption == ReportDiagnostic.Error && !specifiedWarnAsErrorMinus) 239if (!specifiedWarnAsErrorMinus && report == ReportDiagnostic.Warn && generalDiagnosticOption == ReportDiagnostic.Error) 271case ReportDiagnostic.Warn:
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\UseExpressionBodyForLambda\UseExpressionBodyForLambdaDiagnosticAnalyzer.cs (1)
49case ReportDiagnostic.Warn:
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (19)
CommandLineTests.cs (18)
2843Assert.True(parsedArgs.CompilationOptions.SpecificDiagnosticOptions["CA1013"] == ReportDiagnostic.Warn); 2846Assert.True(parsedArgs.CompilationOptions.GeneralDiagnosticOption == ReportDiagnostic.Warn); 3178Assert.Equal(actual: arguments.CompilationOptions.SpecificDiagnosticOptions["Test001"], expected: ReportDiagnostic.Warn); 3212Assert.Equal(actual: arguments.CompilationOptions.SpecificDiagnosticOptions["Test001"], expected: ReportDiagnostic.Warn); 3246Assert.Equal(actual: arguments.CompilationOptions.SpecificDiagnosticOptions["Test001"], expected: ReportDiagnostic.Warn); 13145TestBulkAnalyzerConfigurationCore(analyzer, analyzerConfigText, errorlog, expectedDiagnosticSeverity: ReportDiagnostic.Warn, rulesetText: rulesetText); 13152TestBulkAnalyzerConfigurationCore(analyzer, analyzerConfigText, errorlog, expectedDiagnosticSeverity: ReportDiagnostic.Warn); 13159TestBulkAnalyzerConfigurationCore(analyzer, analyzerConfigText, errorlog, expectedDiagnosticSeverity: ReportDiagnostic.Warn); 13166TestBulkAnalyzerConfigurationCore(analyzer, analyzerConfigText, errorlog, expectedDiagnosticSeverity: ReportDiagnostic.Warn); 13173TestBulkAnalyzerConfigurationCore(analyzer, analyzerConfigText, errorlog, expectedDiagnosticSeverity: ReportDiagnostic.Warn); 13251TestBulkAnalyzerConfigurationCore(analyzer, analyzerConfigText, errorlog, expectedDiagnosticSeverity: ReportDiagnostic.Warn, rulesetText: rulesetText); 13255expectedDiagnosticSeverity = customConfigurable ? defaultReportDiagnostic : ReportDiagnostic.Warn; 13272expectedDiagnosticSeverity = customConfigurable && defaultReportDiagnostic != ReportDiagnostic.Warn ? defaultReportDiagnostic : ReportDiagnostic.Error; 13339TestBulkAnalyzerConfigurationCore(analyzer, analyzerConfigText, errorlog, expectedDiagnosticSeverity: ReportDiagnostic.Warn); 13352TestBulkAnalyzerConfigurationCore(analyzer, analyzerConfigText, errorlog, expectedDiagnosticSeverity: ReportDiagnostic.Warn, rulesetText); 13410ReportDiagnostic.Warn => "warning", 13655analyzerConfigSeverity == ReportDiagnostic.Warn || 13658var prefix = analyzerConfigSeverity == ReportDiagnostic.Error ? "error" : analyzerConfigSeverity == ReportDiagnostic.Warn ? "warning" : "info";
SarifV2ErrorLoggerTests.cs (1)
580(AnalyzerForErrorLogTest.Descriptor1.Id, 0, ImmutableHashSet.Create(ReportDiagnostic.Suppress, ReportDiagnostic.Warn))));
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (4)
Diagnostics\NamingStyles\EditorConfigNamingStyleParserTests.cs (3)
45Assert.Equal(ReportDiagnostic.Warn, namingRule.EnforcementLevel); 90Assert.Equal(ReportDiagnostic.Warn, namingRule.EnforcementLevel); 452Assert.Equal(ReportDiagnostic.Warn, namingRule.EnforcementLevel);
EditorConfigSettings\Updater\SettingsUpdaterTests.cs (1)
113[CombinatorialValues(ReportDiagnostic.Warn, ReportDiagnostic.Error, ReportDiagnostic.Info, ReportDiagnostic.Hidden, ReportDiagnostic.Suppress)]
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (15)
Attributes\AttributeTests_WellKnownAttributes.cs (2)
8787verify(TestOptions.DebugDll.WithGeneralDiagnosticOption(ReportDiagnostic.Warn), 8807verify(TestOptions.DebugDll.WithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>.Empty.Add("TEST1", ReportDiagnostic.Warn)),
Diagnostics\DiagnosticAnalyzerTests.cs (11)
347specificDiagOptions.Add(errorDiagDescriptor.Id, ReportDiagnostic.Warn); 410options = TestOptions.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Warn); 459specificDiagOptions.Add(disabledDiagDescriptor.Id, ReportDiagnostic.Warn); 531specificDiagOptions.Add(FullyDisabledAnalyzer.desc1.Id, ReportDiagnostic.Warn); 540specificDiagOptions.Add(FullyDisabledAnalyzer.desc3.Id, ReportDiagnostic.Warn); 1150specificDiagOptions.Add(NotConfigurableDiagnosticAnalyzer.DisabledRule.Id, ReportDiagnostic.Warn); 1294TestEffectiveSeverity(DiagnosticSeverity.Warning, ReportDiagnostic.Warn); 1305TestEffectiveSeverity(DiagnosticSeverity.Warning, expectedEffectiveSeverity: ReportDiagnostic.Warn, specificOptions: specificOptions, generalOption: generalOption); 1345var specificOption = ReportDiagnostic.Warn; 4185new TestSyntaxTreeOptionsProvider(tree1, (AnalyzerWithDisabledRules.Rule.Id, ReportDiagnostic.Warn))); 4195.WithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>.Empty.Add(AnalyzerWithDisabledRules.Rule.Id, ReportDiagnostic.Warn))
Semantics\CollectionExpressionTests.cs (2)
28KeyValuePairUtil.Create(GetIdForErrorCode(ErrorCode.WRN_CollectionExpressionRefStructMayAllocate), ReportDiagnostic.Warn), 29KeyValuePairUtil.Create(GetIdForErrorCode(ErrorCode.WRN_CollectionExpressionRefStructSpreadMayAllocate), ReportDiagnostic.Warn)
Microsoft.CodeAnalysis.CSharp.Features (2)
src\Analyzers\CSharp\Analyzers\UseExpressionBodyForLambda\UseExpressionBodyForLambdaDiagnosticAnalyzer.cs (1)
49case ReportDiagnostic.Warn:
UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeRefactoringProvider.cs (1)
52case ReportDiagnostic.Warn:
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (2)
Diagnostics\Suppression\SuppressionTests.cs (2)
760var specificDiagnosticOptions = new[] { KeyValuePairUtil.Create(IDEDiagnosticIds.FormattingDiagnosticId, ReportDiagnostic.Warn) }; 1002var specificDiagnosticOptions = new[] { KeyValuePairUtil.Create(IDEDiagnosticIds.FormattingDiagnosticId, ReportDiagnostic.Warn) };
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\CompilationAPITests.cs (1)
77new TestSyntaxTreeOptionsProvider((tree, new[] { ("CS0078", ReportDiagnostic.Warn) })));
Compilation\CSharpCompilationOptionsTests.cs (1)
232{ MessageProvider.Instance.GetIdForErrorCode(3), ReportDiagnostic.Warn }
Microsoft.CodeAnalysis.CSharp.Test.Utilities (5)
CSharpTestBase.cs (5)
2383KeyValuePairUtil.Create(GetIdForErrorCode(ErrorCode.WRN_UseDefViolationPropertySupportedVersion), ReportDiagnostic.Warn), 2384KeyValuePairUtil.Create(GetIdForErrorCode(ErrorCode.WRN_UseDefViolationFieldSupportedVersion), ReportDiagnostic.Warn), 2385KeyValuePairUtil.Create(GetIdForErrorCode(ErrorCode.WRN_UseDefViolationThisSupportedVersion), ReportDiagnostic.Warn), 2386KeyValuePairUtil.Create(GetIdForErrorCode(ErrorCode.WRN_UnassignedThisAutoPropertySupportedVersion), ReportDiagnostic.Warn), 2387KeyValuePairUtil.Create(GetIdForErrorCode(ErrorCode.WRN_UnassignedThisSupportedVersion), ReportDiagnostic.Warn),
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (3)
CodeStyle\CSharpEditorConfigCodeStyleParserTests.cs (3)
44[InlineData("true:warning", (int)ExpressionBodyPreference.WhenPossible, ReportDiagnostic.Warn)] 49[InlineData("true : warning", (int)ExpressionBodyPreference.WhenPossible, ReportDiagnostic.Warn)] 67[InlineData("inside_namespace:warning", AddImportPlacement.InsideNamespace, ReportDiagnostic.Warn)]
Microsoft.CodeAnalysis.EditorFeatures (2)
EditorConfigSettings\Data\CodeStyleSetting.cs (1)
40ReportDiagnostic.Warn => NotificationOption2.Warning,
EditorConfigSettings\Updater\SettingsUpdateHelper.cs (1)
71ReportDiagnostic.Warn => "warning",
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (1)
341var newSpecificOptions = project.CompilationOptions.SpecificDiagnosticOptions.Add(NamedTypeAnalyzer.DiagnosticId, ReportDiagnostic.Warn);
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\Analyzers\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (1)
137if (effectiveSeverity is ReportDiagnostic.Warn or ReportDiagnostic.Error)
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
DeterministicKeyBuilderTests.cs (1)
398]", ("CA109", ReportDiagnostic.Error), ("CA200", ReportDiagnostic.Warn));
Microsoft.CodeAnalysis.Test.Utilities (2)
Diagnostics\CommonDiagnosticAnalyzers.cs (1)
436ReportDiagnostic.Warn => "warning",
Diagnostics\ReportDiagnosticExtensions.cs (1)
18ReportDiagnostic.Warn => "warning",
Microsoft.CodeAnalysis.UnitTests (35)
Analyzers\AnalyzerConfigTests.cs (8)
1140("cs000", ReportDiagnostic.Warn), 1143("cs000", ReportDiagnostic.Warn), 1412new[] { ("cs000", ReportDiagnostic.Warn) } 1510CreateImmutableDictionary(("", ReportDiagnostic.Warn)), 1571("cs000", ReportDiagnostic.Warn)), 1573("cs000", ReportDiagnostic.Warn)), 1609Assert.Equal(KeyValuePair.Create("cs000", ReportDiagnostic.Warn), options[0].TreeOptions.Single()); 2133CreateImmutableDictionary(("cs000", ReportDiagnostic.Warn))
CommonCommandLineParserTests.cs (27)
202Assert.Equal(ReportDiagnostic.Warn, ruleSet.GeneralDiagnosticOption); 413Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1013"]); 478Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1013"]); 503Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1012"]); 505Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1013"]); 531Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1012"]); 533Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1013"]); 559Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1012"]); 561Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1013"]); 588Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1012"]); 590Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1013"]); 626Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1012"]); 664Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1012"]); 666Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1013"]); 668Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1014"]); 694Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1012"]); 730Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1012"]); 764Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1012"]); 791Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1012"]); 815Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1012"]); 864Assert.Equal(ReportDiagnostic.Warn, ruleSet.GeneralDiagnosticOption); 887Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1012"]); 912Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1012"]); 952Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1000"]); 953Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA1001"]); 955Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA2104"]); 956Assert.Equal(ReportDiagnostic.Warn, ruleSet.SpecificDiagnosticOptions["CA2105"]);
Microsoft.CodeAnalysis.VisualBasic (3)
CommandLine\VisualBasicCommandLineParser.vb (1)
832If pair.Value = ReportDiagnostic.Warn Then
Compilation\VisualBasicDiagnosticFilter.vb (2)
166If report = ReportDiagnostic.Warn AndAlso generalDiagnosticOption = ReportDiagnostic.Error AndAlso Not specifiedWarnAsErrorMinus Then 188If Not specifiedWarnAsErrorMinus AndAlso report = ReportDiagnostic.Warn AndAlso generalDiagnosticOption = ReportDiagnostic.Error Then
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (6)
CommandLineTests.vb (6)
2845Assert.True(parsedArgs.CompilationOptions.SpecificDiagnosticOptions("CA1013") = ReportDiagnostic.Warn) 2848Assert.True(parsedArgs.CompilationOptions.GeneralDiagnosticOption = ReportDiagnostic.Warn) 8778Assert.Equal(expected:=ReportDiagnostic.Warn, actual:=arguments.CompilationOptions.SpecificDiagnosticOptions("Test001")) 8799Assert.Equal(expected:=ReportDiagnostic.Warn, actual:=arguments.CompilationOptions.SpecificDiagnosticOptions("Test001")) 8820Assert.Equal(expected:=ReportDiagnostic.Warn, actual:=arguments.CompilationOptions.SpecificDiagnosticOptions("Test001")) 8863Assert.Equal(expected:=ReportDiagnostic.Warn, actual:=arguments.CompilationOptions.SpecificDiagnosticOptions("Test001"))
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (10)
Compilation\CompilationAPITests.vb (2)
50New TestSyntaxTreeOptionsProvider(tree, ("BC42024", ReportDiagnostic.Warn))) 92Dim options = WithDiagnosticOptions(tree, ("BC42024", ReportDiagnostic.Warn))
Diagnostics\DiagnosticAnalyzerTests.vb (8)
93specificDiagOptions.Add(errorDiagDescriptor.Id, ReportDiagnostic.Warn) 153options = TestOptions.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Warn) 202specificDiagOptions.Add(disabledDiagDescriptor.Id, ReportDiagnostic.Warn) 254specificDiagOptions.Add(FullyDisabledAnalyzer.desc1.Id, ReportDiagnostic.Warn) 698specificDiagOptions.Add(NotConfigurableDiagnosticAnalyzer.DisabledRule.Id, ReportDiagnostic.Warn) 766TestEffectiveSeverity(DiagnosticSeverity.Warning, ReportDiagnostic.Warn) 776TestEffectiveSeverity(DiagnosticSeverity.Warning, expectedEffectiveSeverity:=ReportDiagnostic.Warn, specificOptions:=specificOptions, generalOption:=generalOption) 812Dim specificOption = ReportDiagnostic.Warn
Microsoft.CodeAnalysis.Workspaces (12)
CodeStyle\NotificationOption2_operators.cs (2)
17ReportDiagnostic.Warn => NotificationOption.Warning, 31ReportDiagnostic.Warn => WorkspacesResources.Warning,
Diagnostics\DiagnosticData.cs (1)
326case ReportDiagnostic.Warn:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\EditorConfigSeverityStrings.cs (1)
36reportDiagnostic = ReportDiagnostic.Warn;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\NotificationOption2.cs (3)
35/// Notification option for a warning option with <see cref="ReportDiagnostic.Warn"/>. 37public static NotificationOption2 Warning => new(ReportDiagnostic.Warn, false); 51ReportDiagnostic.Warn => Warning,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticSeverityExtensions_Shared.cs (1)
27DiagnosticSeverity.Warning => ReportDiagnostic.Warn,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ReportDiagnosticExtensions.cs (3)
32case ReportDiagnostic.Warn: 78ReportDiagnostic.Warn => EditorConfigSeverityStrings.Warning, 90ReportDiagnostic.Warn => NotificationOption2.Warning,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_NamingRule.cs (1)
89case EditorConfigSeverityStrings.Warning: return ReportDiagnostic.Warn;
Microsoft.CodeAnalysis.Workspaces.UnitTests (6)
CodeStyle\EditorConfigCodeStyleParserTests.cs (6)
19[InlineData("true:warning", true, ReportDiagnostic.Warn)] 26[InlineData("false:warning", false, ReportDiagnostic.Warn)] 33[InlineData("true : warning", true, ReportDiagnostic.Warn)] 34[InlineData("false : warning", false, ReportDiagnostic.Warn)] 49[InlineData("for_non_interface_members:warning", AccessibilityModifiersRequired.ForNonInterfaceMembers, ReportDiagnostic.Warn)] 53[InlineData("for_non_interface_members : warning", AccessibilityModifiersRequired.ForNonInterfaceMembers, ReportDiagnostic.Warn)]
Microsoft.VisualStudio.LanguageServices (8)
EditorConfigSettings\Analyzers\View\ColumnDefinitions\AnalyzerSeverityColumnDefinition.cs (1)
47CodeAnalysis.ReportDiagnostic.Warn => ServicesVSResources.Warning,
EditorConfigSettings\Analyzers\ViewModel\SeverityViewModel.cs (2)
54ReportDiagnostic.Warn => 3, 753 => ReportDiagnostic.Warn,
EditorConfigSettings\CodeStyle\ViewModel\CodeStyleSeverityViewModel.cs (2)
55ReportDiagnostic.Warn => 2, 692 => ReportDiagnostic.Warn,
EditorConfigSettings\NamingStyle\View\ColumnDefinitions\NamingStylesSeverityColumnDefinition.cs (1)
53ReportDiagnostic.Warn => ServicesVSResources.Warning,
EditorConfigSettings\NamingStyle\ViewModel\ColumnViewModels\NamingStylesSeverityViewModel.cs (2)
24ReportDiagnostic.Warn => 3, 393 => ReportDiagnostic.Warn,
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ProjectSystemShim\CSharpProjectShim.OptionsProcessor.cs (1)
96if (pair.Value == ReportDiagnostic.Warn)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
ProjectSystemShim\LegacyProject\AnalyzersTests.cs (2)
82Assert.Equal(expected: ReportDiagnostic.Warn, actual: options.GeneralDiagnosticOption); 259Assert.Equal(expected: ReportDiagnostic.Warn, actual: options.GeneralDiagnosticOption);
Microsoft.VisualStudio.LanguageServices.UnitTests (10)
ProjectSystemShim\ConvertedVisualBasicProjectOptionsTests.vb (8)
25Dim convertedOptions = GetConvertedOptions(ruleSetGeneralOption:=ReportDiagnostic.Warn, commandLineGeneralOption:=WarningLevel.WARN_AsError) 35{"Test001", ReportDiagnostic.Warn} 80{"Test001", ReportDiagnostic.Warn} 90Assert.Equal(expected:=ReportDiagnostic.Warn, actual:=convertedOptions.SpecificDiagnosticOptions("Test001")) 97{"Test001", ReportDiagnostic.Warn} 107Assert.Equal(expected:=ReportDiagnostic.Warn, actual:=convertedOptions.SpecificDiagnosticOptions("Test001")) 116{"Test002", ReportDiagnostic.Warn}, 135{"Test001", ReportDiagnostic.Warn}
SolutionExplorer\RuleSetDocumentExtensionsTests.vb (2)
43document.SetSeverity("Alpha.Analyzer", "Test001", ReportDiagnostic.Warn) 66document.SetSeverity("Beta.Analyzer", "Test001", ReportDiagnostic.Warn)
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
ProjectSystemShim\VisualBasicProject.OptionsProcessor.vb (1)
273If pair.Value = ReportDiagnostic.Warn Then