333 references to Info
CodeStyleConfigFileGenerator (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticSeverityExtensions_Shared.cs (2)
26DiagnosticSeverity.Info => ReportDiagnostic.Info, 37DiagnosticSeverity.Info => EditorConfigSeverityStrings.Suggestion,
Microsoft.AspNetCore.App.Analyzers (5)
DiagnosticDescriptors.cs (5)
124DiagnosticSeverity.Info, 151DiagnosticSeverity.Info, 214DiagnosticSeverity.Info, 232DiagnosticSeverity.Info, 242DiagnosticSeverity.Info,
Microsoft.AspNetCore.App.Analyzers.Test (1)
Infrastructure\WellKnownTypesTests.cs (1)
95DiagnosticSeverity.Info,
Microsoft.AspNetCore.Mvc.Api.Analyzers (2)
ApiDiagnosticDescriptors.cs (2)
35DiagnosticSeverity.Info, 44DiagnosticSeverity.Info,
Microsoft.CodeAnalysis (12)
CommandLine\CommonCompiler.SuppressionDiagnostic.cs (3)
25DiagnosticSeverity.Info, 63public override DiagnosticSeverity Severity => DiagnosticSeverity.Info; 65public override int WarningLevel => GetDefaultWarningLevel(DiagnosticSeverity.Info);
CommandLine\SarifErrorLogger.cs (2)
61case DiagnosticSeverity.Info: 75goto case DiagnosticSeverity.Info;
Diagnostic\CommonMessageProvider.cs (1)
143return diagnosticInfo.GetInstanceWithSeverity(DiagnosticSeverity.Info);
Diagnostic\Diagnostic.cs (2)
541return this.WithSeverity(DiagnosticSeverity.Info); 556/// <see cref="DiagnosticSeverity.Info"/> and <see cref="DiagnosticSeverity.Hidden"/> are treated as warning
Diagnostic\DiagnosticDescriptor.cs (2)
255case DiagnosticSeverity.Info: 275return DiagnosticSeverity.Info;
Diagnostic\DiagnosticFormatter.cs (1)
90case DiagnosticSeverity.Info:
Diagnostic\SeverityFilter.cs (1)
41return DiagnosticSeverity.Info;
Microsoft.CodeAnalysis.CodeStyle (8)
src\Analyzers\Core\Analyzers\AbstractCodeQualityDiagnosticAnalyzer.cs (1)
53DiagnosticSeverity.Info,
src\Analyzers\Core\Analyzers\ValidateFormatString\AbstractValidateFormatStringDiagnosticAnalyzer.cs (1)
39DiagnosticSeverity.Info,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
193DiagnosticSeverity.Info => NotificationOption2.Suggestion,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\NotificationOption2.cs (1)
63DiagnosticSeverity.Info => Suggestion,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticSeverityExtensions.cs (1)
18DiagnosticSeverity.Info => NotificationOption2.Suggestion,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticSeverityExtensions_Shared.cs (2)
26DiagnosticSeverity.Info => ReportDiagnostic.Info, 37DiagnosticSeverity.Info => EditorConfigSeverityStrings.Suggestion,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ReportDiagnosticExtensions.cs (1)
36return DiagnosticSeverity.Info;
Microsoft.CodeAnalysis.CSharp (2)
Compilation\CSharpDiagnosticFilter.cs (1)
313if (severity == DiagnosticSeverity.Warning || severity == DiagnosticSeverity.Info)
Errors\ErrorFacts.cs (1)
122return DiagnosticSeverity.Info;
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (57)
src\Analyzers\CSharp\Tests\MakeStructMemberReadOnly\MakeStructMemberReadOnlyTests.cs (2)
751VerifyCS.Diagnostic("IDE0251").WithSeverity(DiagnosticSeverity.Info).WithSpan(5, 32, 5, 35).WithOptions(DiagnosticOptions.IgnoreAdditionalLocations), 795VerifyCS.Diagnostic("IDE0251").WithSeverity(DiagnosticSeverity.Info).WithSpan(5, 42, 5, 45).WithOptions(DiagnosticOptions.IgnoreAdditionalLocations),
src\Analyzers\CSharp\Tests\RemoveUnusedParametersAndValues\RemoveUnusedValueAssignmentTests.cs (3)
1372VerifyCS.Diagnostic("IDE0059").WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithArguments("y")); 1495VerifyCS.Diagnostic("IDE0059").WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithArguments("y")); 3386VerifyCS.Diagnostic("IDE0059").WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithArguments("x2"));
src\Analyzers\CSharp\Tests\SimplifyInterpolation\SimplifyInterpolationTests.cs (1)
48("IDE0071", DiagnosticSeverity.Info),
src\Analyzers\CSharp\Tests\UseCollectionExpression\UseCollectionExpressionForFluentTests.cs (1)
2076VerifyCS.Diagnostic().WithSpan(8, 51, 8, 57).WithSpan(8, 33, 8, 59).WithSeverity(DiagnosticSeverity.Info),
src\Analyzers\CSharp\Tests\UseImplicitOrExplicitType\UseExplicitTypeTests.cs (1)
2382diagnosticSeverity: DiagnosticSeverity.Info);
src\Analyzers\CSharp\Tests\UseImplicitOrExplicitType\UseImplicitTypeTests.cs (1)
1912diagnosticSeverity: DiagnosticSeverity.Info);
src\Analyzers\CSharp\Tests\UseObjectInitializer\UseObjectInitializerTests.cs (24)
74VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3), 181VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3), 246VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3), 310VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3), 355VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3), 402VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3).WithLocation(4).WithLocation(5), 449VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3), 495VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3), 544VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3), 595VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3), 674VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3), 676VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(4).WithLocation(5).WithLocation(6).WithLocation(7), 730VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3), 732VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(4).WithLocation(5).WithLocation(6).WithLocation(7), 787VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3).WithLocation(4).WithLocation(5), 789VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(6).WithLocation(7).WithLocation(8).WithLocation(9).WithLocation(10).WithLocation(11), 834VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3).WithLocation(4).WithLocation(5), 886VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3).WithLocation(4).WithLocation(5), 987VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3), 1040VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3), 1152VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3), 1217VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3), 1254VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3), 1346VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3));
src\Analyzers\CSharp\Tests\ValidateFormatString\ValidateFormatStringTests.cs (24)
642diagnosticSeverity: DiagnosticSeverity.Info, 677diagnosticSeverity: DiagnosticSeverity.Info, 695diagnosticSeverity: DiagnosticSeverity.Info, 713diagnosticSeverity: DiagnosticSeverity.Info, 732diagnosticSeverity: DiagnosticSeverity.Info, 751diagnosticSeverity: DiagnosticSeverity.Info, 770diagnosticSeverity: DiagnosticSeverity.Info, 790diagnosticSeverity: DiagnosticSeverity.Info, 810diagnosticSeverity: DiagnosticSeverity.Info, 828diagnosticSeverity: DiagnosticSeverity.Info, 846diagnosticSeverity: DiagnosticSeverity.Info, 864diagnosticSeverity: DiagnosticSeverity.Info, 882diagnosticSeverity: DiagnosticSeverity.Info, 901diagnosticSeverity: DiagnosticSeverity.Info, 920diagnosticSeverity: DiagnosticSeverity.Info, 939diagnosticSeverity: DiagnosticSeverity.Info, 966diagnosticSeverity: DiagnosticSeverity.Info, 985diagnosticSeverity: DiagnosticSeverity.Info, 1004diagnosticSeverity: DiagnosticSeverity.Info, 1023diagnosticSeverity: DiagnosticSeverity.Info, 1042diagnosticSeverity: DiagnosticSeverity.Info, 1061diagnosticSeverity: DiagnosticSeverity.Info, 1080diagnosticSeverity: DiagnosticSeverity.Info, 1099diagnosticSeverity: DiagnosticSeverity.Info,
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (30)
CommandLineTests.cs (30)
13148[InlineData(DiagnosticSeverity.Info, true)] 13149[InlineData(DiagnosticSeverity.Info, false)] 13226defaultSeverity == DiagnosticSeverity.Info && !errorlog) 13249[InlineData(DiagnosticSeverity.Info, true, false)] 13250[InlineData(DiagnosticSeverity.Info, false, false)] 13251[InlineData(DiagnosticSeverity.Info, true, true)] 13252[InlineData(DiagnosticSeverity.Info, false, true)] 13318defaultSeverity == DiagnosticSeverity.Info && !errorlog) 13338[InlineData(DiagnosticSeverity.Info, true)] 13339[InlineData(DiagnosticSeverity.Info, false)] 13750defaultSeverity == DiagnosticSeverity.Info && !errorlog) && !customConfigurable; 13788defaultSeverity is DiagnosticSeverity.Hidden or DiagnosticSeverity.Info) && !customConfigurable; 13806if (analyzerShouldBeSkipped || customConfigurable && defaultSeverity is DiagnosticSeverity.Hidden or DiagnosticSeverity.Info) 13820[InlineData(false, false, DiagnosticSeverity.Info, DiagnosticSeverity.Warning, null, DiagnosticSeverity.Error)] 13821[InlineData(true, false, DiagnosticSeverity.Info, DiagnosticSeverity.Warning, null, DiagnosticSeverity.Warning)] 13822[InlineData(false, true, DiagnosticSeverity.Info, DiagnosticSeverity.Warning, null, DiagnosticSeverity.Error)] 13823[InlineData(true, true, DiagnosticSeverity.Info, DiagnosticSeverity.Warning, null, DiagnosticSeverity.Warning)] 13825[InlineData(false, false, DiagnosticSeverity.Info, null, DiagnosticSeverity.Warning, DiagnosticSeverity.Error)] 13826[InlineData(true, false, DiagnosticSeverity.Info, null, DiagnosticSeverity.Warning, DiagnosticSeverity.Warning)] 13827[InlineData(false, true, DiagnosticSeverity.Info, null, DiagnosticSeverity.Warning, DiagnosticSeverity.Error)] 13828[InlineData(true, true, DiagnosticSeverity.Info, null, DiagnosticSeverity.Warning, DiagnosticSeverity.Warning)] 13840[InlineData(false, false, DiagnosticSeverity.Info, DiagnosticSeverity.Error, null, DiagnosticSeverity.Error)] 13841[InlineData(true, false, DiagnosticSeverity.Info, DiagnosticSeverity.Error, null, DiagnosticSeverity.Error)] 13842[InlineData(false, true, DiagnosticSeverity.Info, DiagnosticSeverity.Error, null, DiagnosticSeverity.Error)] 13843[InlineData(true, true, DiagnosticSeverity.Info, DiagnosticSeverity.Error, null, DiagnosticSeverity.Error)] 13845[InlineData(false, false, DiagnosticSeverity.Info, null, DiagnosticSeverity.Error, DiagnosticSeverity.Error)] 13846[InlineData(true, false, DiagnosticSeverity.Info, null, DiagnosticSeverity.Error, DiagnosticSeverity.Error)] 13847[InlineData(false, true, DiagnosticSeverity.Info, null, DiagnosticSeverity.Error, DiagnosticSeverity.Error)] 13848[InlineData(true, true, DiagnosticSeverity.Info, null, DiagnosticSeverity.Error, DiagnosticSeverity.Error)] 15958internal static readonly DiagnosticDescriptor Info01 = new DiagnosticDescriptor("Info01", "", "Throwing a diagnostic for #pragma restore", "", DiagnosticSeverity.Info, isEnabledByDefault: true);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Formatting\CodeCleanupTests.cs (2)
572[CombinatorialValues(DiagnosticSeverity.Warning, DiagnosticSeverity.Info)] DiagnosticSeverity severity) 750[InlineData(DiagnosticSeverity.Info)]
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
PDB\PDBUsingTests.cs (1)
1488compilation.GetDiagnostics().Where(d => d.Severity > DiagnosticSeverity.Info).Verify();
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (10)
Diagnostics\DiagnosticAnalyzerTests.cs (4)
304var infoDiagDescriptor = new DiagnosticDescriptor("XX0002", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Info, isEnabledByDefault: true); 364case DiagnosticSeverity.Info: 388var infoDiagDescriptor = new DiagnosticDescriptor("XX0002", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Info, isEnabledByDefault: true); 422Assert.Equal(1, effectiveDiags.Count(d => d.Severity == DiagnosticSeverity.Info));
Diagnostics\GetDiagnosticsTests.cs (2)
138var info = diag.WithSeverity(DiagnosticSeverity.Info); 139Assert.Equal(DiagnosticSeverity.Info, info.Severity);
FlowAnalysis\FlowDiagnosticTests.cs (4)
160Assert.Equal(0, count[(int)DiagnosticSeverity.Info]); 188Assert.Equal(0, count[(int)DiagnosticSeverity.Info]); 357Assert.Equal(0, count[(int)DiagnosticSeverity.Info]); 392Assert.Equal(0, count[(int)DiagnosticSeverity.Info]);
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (70)
Diagnostics\Configuration\ConfigureSeverity\AllAnalyzersSeverityConfigurationTests.cs (1)
30defaultSeverity: DiagnosticSeverity.Info,
Diagnostics\Configuration\ConfigureSeverity\CategoryBasedSeverityConfigurationTests.cs (1)
30defaultSeverity: DiagnosticSeverity.Info,
Diagnostics\Configuration\ConfigureSeverity\DotNetDiagnosticSeverityBasedSeverityConfigurationTests.cs (1)
30defaultSeverity: DiagnosticSeverity.Info,
Diagnostics\Suppression\RemoveSuppressionTests.cs (1)
30new DiagnosticDescriptor("InfoDiagnostic", "InfoDiagnostic Title", "InfoDiagnostic", "InfoDiagnostic", DiagnosticSeverity.Info, isEnabledByDefault: true);
Diagnostics\Suppression\SuppressionTest_FixMultipleTests.cs (2)
39new DiagnosticDescriptor("InfoDiagnostic", "InfoDiagnostic Title", "InfoDiagnostic", "InfoDiagnostic", DiagnosticSeverity.Info, isEnabledByDefault: true); 41new DiagnosticDescriptor("InfoDiagnostic2", "InfoDiagnostic2 Title", "InfoDiagnostic2", "InfoDiagnostic2", DiagnosticSeverity.Info, isEnabledByDefault: true);
Diagnostics\Suppression\SuppressionTests.cs (6)
693new DiagnosticDescriptor("InfoDiagnostic", "InfoDiagnostic Title", "InfoDiagnostic", "InfoDiagnostic", DiagnosticSeverity.Info, isEnabledByDefault: true); 866new DiagnosticDescriptor("@~DiagnosticWithBadId", "DiagnosticWithBadId", "DiagnosticWithBadId", "DiagnosticWithBadId", DiagnosticSeverity.Info, isEnabledByDefault: true); 916new DiagnosticDescriptor("InfoDiagnostic", "InfoDiagnostic Title", "InfoDiagnostic", "InfoDiagnostic", DiagnosticSeverity.Info, isEnabledByDefault: true); 1057new("InfoDiagnostic", "InfoDiagnostic", "InfoDiagnostic", "InfoDiagnostic", DiagnosticSeverity.Info, isEnabledByDefault: true); 2057new("InfoDiagnostic", "InfoDiagnostic", "InfoDiagnostic", "InfoDiagnostic", DiagnosticSeverity.Info, isEnabledByDefault: true); 2452new("NoLocationDiagnostic", "NoLocationDiagnostic", "NoLocationDiagnostic", "NoLocationDiagnostic", DiagnosticSeverity.Info, isEnabledByDefault: true);
SimplifyPropertyPattern\SimplifyPropertyPatternTests.cs (1)
720VerifyCS.Diagnostic("IDE0170").WithSpan(8, 20, 8, 29).WithSpan(8, 20, 8, 86).WithSeverity(DiagnosticSeverity.Info),
src\Analyzers\CSharp\Tests\MakeStructMemberReadOnly\MakeStructMemberReadOnlyTests.cs (2)
751VerifyCS.Diagnostic("IDE0251").WithSeverity(DiagnosticSeverity.Info).WithSpan(5, 32, 5, 35).WithOptions(DiagnosticOptions.IgnoreAdditionalLocations), 795VerifyCS.Diagnostic("IDE0251").WithSeverity(DiagnosticSeverity.Info).WithSpan(5, 42, 5, 45).WithOptions(DiagnosticOptions.IgnoreAdditionalLocations),
src\Analyzers\CSharp\Tests\RemoveUnusedParametersAndValues\RemoveUnusedValueAssignmentTests.cs (3)
1372VerifyCS.Diagnostic("IDE0059").WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithArguments("y")); 1495VerifyCS.Diagnostic("IDE0059").WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithArguments("y")); 3386VerifyCS.Diagnostic("IDE0059").WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithArguments("x2"));
src\Analyzers\CSharp\Tests\SimplifyInterpolation\SimplifyInterpolationTests.cs (1)
48("IDE0071", DiagnosticSeverity.Info),
src\Analyzers\CSharp\Tests\UseCollectionExpression\UseCollectionExpressionForFluentTests.cs (1)
2076VerifyCS.Diagnostic().WithSpan(8, 51, 8, 57).WithSpan(8, 33, 8, 59).WithSeverity(DiagnosticSeverity.Info),
src\Analyzers\CSharp\Tests\UseImplicitOrExplicitType\UseExplicitTypeTests.cs (1)
2382diagnosticSeverity: DiagnosticSeverity.Info);
src\Analyzers\CSharp\Tests\UseImplicitOrExplicitType\UseImplicitTypeTests.cs (1)
1912diagnosticSeverity: DiagnosticSeverity.Info);
src\Analyzers\CSharp\Tests\UseObjectInitializer\UseObjectInitializerTests.cs (24)
74VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3), 181VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3), 246VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3), 310VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3), 355VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3), 402VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3).WithLocation(4).WithLocation(5), 449VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3), 495VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3), 544VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3), 595VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3), 674VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3), 676VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(4).WithLocation(5).WithLocation(6).WithLocation(7), 730VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3), 732VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(4).WithLocation(5).WithLocation(6).WithLocation(7), 787VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3).WithLocation(4).WithLocation(5), 789VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(6).WithLocation(7).WithLocation(8).WithLocation(9).WithLocation(10).WithLocation(11), 834VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3).WithLocation(4).WithLocation(5), 886VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3).WithLocation(4).WithLocation(5), 987VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3), 1040VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3), 1152VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3), 1217VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3), 1254VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3), 1346VerifyCS.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3));
src\Analyzers\CSharp\Tests\ValidateFormatString\ValidateFormatStringTests.cs (24)
642diagnosticSeverity: DiagnosticSeverity.Info, 677diagnosticSeverity: DiagnosticSeverity.Info, 695diagnosticSeverity: DiagnosticSeverity.Info, 713diagnosticSeverity: DiagnosticSeverity.Info, 732diagnosticSeverity: DiagnosticSeverity.Info, 751diagnosticSeverity: DiagnosticSeverity.Info, 770diagnosticSeverity: DiagnosticSeverity.Info, 790diagnosticSeverity: DiagnosticSeverity.Info, 810diagnosticSeverity: DiagnosticSeverity.Info, 828diagnosticSeverity: DiagnosticSeverity.Info, 846diagnosticSeverity: DiagnosticSeverity.Info, 864diagnosticSeverity: DiagnosticSeverity.Info, 882diagnosticSeverity: DiagnosticSeverity.Info, 901diagnosticSeverity: DiagnosticSeverity.Info, 920diagnosticSeverity: DiagnosticSeverity.Info, 939diagnosticSeverity: DiagnosticSeverity.Info, 966diagnosticSeverity: DiagnosticSeverity.Info, 985diagnosticSeverity: DiagnosticSeverity.Info, 1004diagnosticSeverity: DiagnosticSeverity.Info, 1023diagnosticSeverity: DiagnosticSeverity.Info, 1042diagnosticSeverity: DiagnosticSeverity.Info, 1061diagnosticSeverity: DiagnosticSeverity.Info, 1080diagnosticSeverity: DiagnosticSeverity.Info, 1099diagnosticSeverity: DiagnosticSeverity.Info,
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\MethodBodyModelTests.cs (1)
136Assert.Equal(0, count[(int)DiagnosticSeverity.Info]);
Semantics\OverloadResolutionPerfTests.cs (1)
312var diagnostics = comp.GetDiagnostics().Where(d => d is not { Severity: DiagnosticSeverity.Info, Code: (int)ErrorCode.INF_TooManyBoundLambdas });
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Diagnostics\DiagnosticTest.cs (2)
126var other = diagnostic.GetInstanceWithSeverity(DiagnosticSeverity.Info); 128Assert.Equal(DiagnosticSeverity.Info, other.Severity);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (8)
Diagnostics\DiagnosticDataTests.cs (8)
118severity: DiagnosticSeverity.Info, 119defaultSeverity: DiagnosticSeverity.Info, 151severity: DiagnosticSeverity.Info, 152defaultSeverity: DiagnosticSeverity.Info, 197severity: DiagnosticSeverity.Info, 198defaultSeverity: DiagnosticSeverity.Info, 245severity: DiagnosticSeverity.Info, 246defaultSeverity: DiagnosticSeverity.Info,
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
Suggestions\SuggestedActionsSource.cs (1)
260DiagnosticSeverity.Hidden or DiagnosticSeverity.Info or DiagnosticSeverity.Warning => PredefinedSuggestedActionCategoryNames.CodeFix,
Microsoft.CodeAnalysis.Features (3)
CodeFixes\Suppression\SuppressionHelpers.cs (1)
57case DiagnosticSeverity.Info:
src\Analyzers\Core\Analyzers\AbstractCodeQualityDiagnosticAnalyzer.cs (1)
53DiagnosticSeverity.Info,
src\Analyzers\Core\Analyzers\ValidateFormatString\AbstractValidateFormatStringDiagnosticAnalyzer.cs (1)
39DiagnosticSeverity.Info,
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Extensions\ProtocolConversions.Diagnostics.cs (1)
217DiagnosticSeverity.Info => supportsVisualStudioExtensions ? LSP.DiagnosticSeverity.Information : LSP.DiagnosticSeverity.Hint,
Features\UnifiedSuggestions\UnifiedSuggestedActionsSource.cs (1)
414case DiagnosticSeverity.Info:
Handler\Diagnostics\DiagnosticSources\TaskListDiagnosticSource.cs (2)
53severity: DiagnosticSeverity.Info, 54defaultSeverity: DiagnosticSeverity.Info,
Microsoft.CodeAnalysis.UnitTests (1)
Diagnostics\DiagnosticCreationTests.cs (1)
17var defaultSeverity = DiagnosticSeverity.Info;
Microsoft.CodeAnalysis.VisualBasic (2)
Compilation\VisualBasicDiagnosticFilter.vb (1)
217(severity = DiagnosticSeverity.Warning OrElse severity = DiagnosticSeverity.Info) Then
Errors\MessageProvider.vb (1)
59Return DiagnosticSeverity.Info
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.UnitTests (23)
src\Analyzers\VisualBasic\Tests\SimplifyInterpolation\SimplifyInterpolationTests.vb (1)
35("IDE0071", DiagnosticSeverity.Info)
src\Analyzers\VisualBasic\Tests\UseObjectInitializer\UseObjectInitializerTests.vb (17)
45VerifyVB.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2)) 76VerifyVB.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2)) 109VerifyVB.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2)) 142VerifyVB.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2)) 181VerifyVB.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3)) 216VerifyVB.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2)) 252VerifyVB.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2)) 290VerifyVB.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2)) 347VerifyVB.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2)) 395VerifyVB.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3)) 399VerifyVB.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(4).WithLocation(5).WithLocation(6).WithLocation(7)) 434VerifyVB.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3)) 486VerifyVB.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3)) 541VerifyVB.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3)) 580VerifyVB.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2)) 688VerifyVB.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2)) 745VerifyVB.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2))
src\Analyzers\VisualBasic\Tests\ValidateFormatString\ValidateFormatStringTests.vb (5)
83diagnosticSeverity:=DiagnosticSeverity.Info, 97diagnosticSeverity:=DiagnosticSeverity.Info, 113diagnosticSeverity:=DiagnosticSeverity.Info, 137diagnosticSeverity:=DiagnosticSeverity.Info, 322diagnosticSeverity:=DiagnosticSeverity.Info,
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (21)
CommandLineTests.vb (21)
10174defaultSeverity = DiagnosticSeverity.Info AndAlso Not errorlog) AndAlso Not customConfigurable 10212defaultSeverity = DiagnosticSeverity.Info) AndAlso 10234(customConfigurable AndAlso (defaultSeverity = DiagnosticSeverity.Hidden OrElse defaultSeverity = DiagnosticSeverity.Info)) Then 10244<InlineData(False, False, DiagnosticSeverity.Info, DiagnosticSeverity.Warning, Nothing, DiagnosticSeverity.Error)> 10245<InlineData(True, False, DiagnosticSeverity.Info, DiagnosticSeverity.Warning, Nothing, DiagnosticSeverity.Warning)> 10246<InlineData(False, True, DiagnosticSeverity.Info, DiagnosticSeverity.Warning, Nothing, DiagnosticSeverity.Error)> 10247<InlineData(True, True, DiagnosticSeverity.Info, DiagnosticSeverity.Warning, Nothing, DiagnosticSeverity.Warning)> 10248<InlineData(False, False, DiagnosticSeverity.Info, Nothing, DiagnosticSeverity.Warning, DiagnosticSeverity.Error)> 10249<InlineData(True, False, DiagnosticSeverity.Info, Nothing, DiagnosticSeverity.Warning, DiagnosticSeverity.Warning)> 10250<InlineData(False, True, DiagnosticSeverity.Info, Nothing, DiagnosticSeverity.Warning, DiagnosticSeverity.Error)> 10251<InlineData(True, True, DiagnosticSeverity.Info, Nothing, DiagnosticSeverity.Warning, DiagnosticSeverity.Warning)> 10260<InlineData(False, False, DiagnosticSeverity.Info, DiagnosticSeverity.Error, Nothing, DiagnosticSeverity.Error)> 10261<InlineData(True, False, DiagnosticSeverity.Info, DiagnosticSeverity.Error, Nothing, DiagnosticSeverity.Error)> 10262<InlineData(False, True, DiagnosticSeverity.Info, DiagnosticSeverity.Error, Nothing, DiagnosticSeverity.Error)> 10263<InlineData(True, True, DiagnosticSeverity.Info, DiagnosticSeverity.Error, Nothing, DiagnosticSeverity.Error)> 10264<InlineData(False, False, DiagnosticSeverity.Info, Nothing, DiagnosticSeverity.Error, DiagnosticSeverity.Error)> 10265<InlineData(True, False, DiagnosticSeverity.Info, Nothing, DiagnosticSeverity.Error, DiagnosticSeverity.Error)> 10266<InlineData(False, True, DiagnosticSeverity.Info, Nothing, DiagnosticSeverity.Error, DiagnosticSeverity.Error)> 10267<InlineData(True, True, DiagnosticSeverity.Info, Nothing, DiagnosticSeverity.Error, DiagnosticSeverity.Error)> 10999Friend Shared ReadOnly Info01 As DiagnosticDescriptor = New DiagnosticDescriptor("Info01", "", "Throwing a diagnostic for #Enable", "", DiagnosticSeverity.Info, isEnabledByDefault:=True) 11000Friend Shared ReadOnly Info02 As DiagnosticDescriptor = New DiagnosticDescriptor("Info02", "", "Throwing a diagnostic for something else", "", DiagnosticSeverity.Info, isEnabledByDefault:=True)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
CodeGen\WinRTCollectionTests.vb (1)
6338verifier.Diagnostics.AsEnumerable().Where(Function(d) d.Severity > DiagnosticSeverity.Info).Verify()
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (5)
Diagnostics\Configuration\ConfigureSeverity\DotNetDiagnosticSeverityBasedSeverityConfigurationTests.vb (1)
24defaultSeverity:=DiagnosticSeverity.Info,
Diagnostics\Suppression\SuppressionTests.vb (4)
697Private ReadOnly _descriptor As New DiagnosticDescriptor("InfoDiagnostic", "InfoDiagnostic", "InfoDiagnostic", "InfoDiagnostic", DiagnosticSeverity.Info, isEnabledByDefault:=True) 772Private ReadOnly _descriptor As New DiagnosticDescriptor("#$DiagnosticWithBadId", "DiagnosticWithBadId", "DiagnosticWithBadId", "DiagnosticWithBadId", DiagnosticSeverity.Info, isEnabledByDefault:=True) 1002Private ReadOnly _descriptor As New DiagnosticDescriptor("InfoDiagnostic", "InfoDiagnostic", "InfoDiagnostic", "InfoDiagnostic", DiagnosticSeverity.Info, isEnabledByDefault:=True) 1718Private ReadOnly _descriptor As New DiagnosticDescriptor("InfoDiagnostic", "InfoDiagnostic", "InfoDiagnostic", "InfoDiagnostic", DiagnosticSeverity.Info, isEnabledByDefault:=True)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (6)
Diagnostics\DiagnosticAnalyzerTests.vb (4)
50Dim infoDiagDescriptor = New DiagnosticDescriptor("XX0002", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Info, isEnabledByDefault:=True) 107Case DiagnosticSeverity.Info 131Dim infoDiagDescriptor = New DiagnosticDescriptor("XX0002", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Info, isEnabledByDefault:=True) 165Assert.Equal(1, effectiveDiags.Count(Function(d) d.Severity = DiagnosticSeverity.Info))
Diagnostics\GetDiagnosticsTests.vb (2)
122Dim info = warning.WithSeverity(DiagnosticSeverity.Info) 123Assert.Equal(DiagnosticSeverity.Info, info.Severity)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (2)
CompilationTestUtils.vb (2)
742diags = diags.WhereAsArray(Function(d) d.Severity > DiagnosticSeverity.Info) 994If Not suppressInfos OrElse e.Diagnostic.Severity > DiagnosticSeverity.Info Then
Microsoft.CodeAnalysis.Workspaces (7)
Diagnostics\DiagnosticData.cs (1)
324return DiagnosticSeverity.Info;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
193DiagnosticSeverity.Info => NotificationOption2.Suggestion,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\NotificationOption2.cs (1)
63DiagnosticSeverity.Info => Suggestion,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticSeverityExtensions.cs (1)
18DiagnosticSeverity.Info => NotificationOption2.Suggestion,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticSeverityExtensions_Shared.cs (2)
26DiagnosticSeverity.Info => ReportDiagnostic.Info, 37DiagnosticSeverity.Info => EditorConfigSeverityStrings.Suggestion,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ReportDiagnosticExtensions.cs (1)
36return DiagnosticSeverity.Info;
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
VisualStudioMSBuildWorkspaceTests.cs (2)
2413comp.GetDiagnostics().Where(d => d.Severity > DiagnosticSeverity.Info).Verify(); 2430comp.GetDiagnostics().Where(d => d.Severity > DiagnosticSeverity.Info).Verify();
Microsoft.Extensions.Logging.Generators (2)
DiagnosticDescriptors.cs (2)
49DiagnosticSeverity.Info, 217DiagnosticSeverity.Info,
Microsoft.Extensions.Options.SourceGeneration (1)
DiagDescriptors.cs (1)
107defaultSeverity: DiagnosticSeverity.Info);
Microsoft.Gen.ComplianceReports (1)
ComplianceReportsGenerator.cs (1)
97DiagnosticSeverity.Info,
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
GeneratorTests.cs (1)
134Assert.Equal(DiagnosticSeverity.Info, diag.Severity);
Microsoft.Gen.Logging (2)
Parsing\DiagDescriptors.cs (2)
90DiagnosticSeverity.Info); 260DiagnosticSeverity.Info);
Microsoft.Gen.MetricsReports (1)
MetricsReportsGenerator.cs (1)
76DiagnosticSeverity.Info,
Microsoft.Gen.MetricsReports.Unit.Tests (1)
GeneratorTests.cs (1)
115Assert.Equal(DiagnosticSeverity.Info, diag.Severity);
Microsoft.Interop.ComInterfaceGenerator (7)
Analyzers\AnalyzerDiagnostics.cs (2)
40DiagnosticSeverity.Info, 50DiagnosticSeverity.Info,
GeneratorDiagnostics.cs (5)
426DiagnosticSeverity.Info, 441DiagnosticSeverity.Info, 476DiagnosticSeverity.Info, 486DiagnosticSeverity.Info, 496DiagnosticSeverity.Info,
Microsoft.Interop.LibraryImportGenerator (14)
Analyzers\ConvertToLibraryImportAnalyzer.cs (1)
29DiagnosticSeverity.Info,
Analyzers\CustomMarshallerAttributeAnalyzer.cs (10)
419DiagnosticSeverity.Info, 430DiagnosticSeverity.Info, 441DiagnosticSeverity.Info, 452DiagnosticSeverity.Info, 463DiagnosticSeverity.Info, 474DiagnosticSeverity.Info, 485DiagnosticSeverity.Info, 496DiagnosticSeverity.Info, 507DiagnosticSeverity.Info, 518DiagnosticSeverity.Info,
GeneratorDiagnostics.cs (3)
214DiagnosticSeverity.Info, 229DiagnosticSeverity.Info, 264DiagnosticSeverity.Info,
Microsoft.Interop.LibraryImportGenerator.Downlevel (3)
GeneratorDiagnostics.cs (3)
214DiagnosticSeverity.Info, 229DiagnosticSeverity.Info, 264DiagnosticSeverity.Info,
Microsoft.VisualStudio.LanguageServices (3)
PreviewPane\PreviewPaneService.cs (1)
52case DiagnosticSeverity.Info:
TaskList\ExternalErrorDiagnosticUpdateSource.cs (1)
241CodeAnalysis.DiagnosticSeverity.Info => RpcContracts.DiagnosticManagement.DiagnosticSeverity.Information,
TaskList\ProjectExternalErrorReporter.cs (1)
219VSTASKPRIORITY.TP_LOW => DiagnosticSeverity.Info,
Roslyn.VisualStudio.Next.UnitTests (3)
Services\VisualStudioDiagnosticAnalyzerExecutorTests.cs (3)
62Assert.Equal(isHostAnalyzer ? DiagnosticSeverity.Info : DiagnosticSeverity.Hidden, diagnostics[0].Severity); 92Assert.Equal(DiagnosticSeverity.Info, diagnostics[0].Severity); 101Assert.Equal(isHostAnalyzer ? DiagnosticSeverity.Error : DiagnosticSeverity.Info, diagnostics[0].Severity);
System.Text.RegularExpressions.Generator (2)
DiagnosticDescriptors.cs (2)
54DiagnosticSeverity.Info, 62DiagnosticSeverity.Info,