39 references to Warning
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (18)
ConvertNamespace\ConvertNamespaceRefactoringFixAllTests.cs (2)
22=> this.Option(CSharpCodeStyleOptions.NamespaceDeclarations, NamespaceDeclarationPreference.BlockScoped, NotificationOption2.Warning); 25=> this.Option(CSharpCodeStyleOptions.NamespaceDeclarations, NamespaceDeclarationPreference.FileScoped, NotificationOption2.Warning);
ConvertSwitchStatementToExpressionTests.cs (1)
899{ CSharpCodeStyleOptions.PreferSwitchExpression, true, NotificationOption2.Warning },
CSharpIsAndCastCheckDiagnosticAnalyzerTests.cs (1)
655var warningOption = new CodeStyleOption2<bool>(true, NotificationOption2.Warning);
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.cs (1)
1358", new TestParameters(options: Option(CodeStyleOptions2.PreferAutoProperties, true, NotificationOption2.Warning)));
EditorConfigSettings\Updater\SettingsUpdaterTests.cs (1)
102var option = new CodeStyleOption2<AddImportPlacement>(AddImportPlacement.InsideNamespace, NotificationOption2.Warning);
InitializeParameter\InitializeMemberFromParameterTests.cs (3)
1578private TestParameters OmitIfDefault_Warning => new TestParameters(options: Option(CodeStyleOptions2.AccessibilityModifiersRequired, AccessibilityModifiersRequired.OmitIfDefault, NotificationOption2.Warning)); 1579private TestParameters Never_Warning => new TestParameters(options: Option(CodeStyleOptions2.AccessibilityModifiersRequired, AccessibilityModifiersRequired.Never, NotificationOption2.Warning)); 1580private TestParameters Always_Warning => new TestParameters(options: Option(CodeStyleOptions2.AccessibilityModifiersRequired, AccessibilityModifiersRequired.Always, NotificationOption2.Warning));
QualifyMemberAccessTests.cs (1)
1586CodeStyleOptions2.QualifyPropertyAccess, NotificationOption2.Warning);
SimplifyThisOrMe\SimplifyThisOrMeTests.cs (1)
105options: Option(CodeStyleOptions2.QualifyPropertyAccess, false, NotificationOption2.Warning),
UseExplicitTupleNameTests.cs (2)
226{ CodeStyleOptions2.PreferExplicitTupleNames, false, NotificationOption2.Warning } 251{ CodeStyleOptions2.PreferExplicitTupleNames, false, NotificationOption2.Warning }
UseExplicitTypeTests.cs (1)
34private readonly CodeStyleOption2<bool> offWithWarning = new(false, NotificationOption2.Warning);
UseExpressionBodyForMethodsAnalyzerTests.cs (1)
76Assert.Equal(NotificationOption2.Warning, option.Notification);
UseImplicitTypeTests.cs (1)
35private static readonly CodeStyleOption2<bool> onWithWarning = new(true, NotificationOption2.Warning);
UseVarTestExtensions.cs (2)
25private static readonly CodeStyleOption2<bool> onWithWarning = new CodeStyleOption2<bool>(true, NotificationOption2.Warning); 26private static readonly CodeStyleOption2<bool> offWithWarning = new CodeStyleOption2<bool>(false, NotificationOption2.Warning);
Microsoft.CodeAnalysis.EditorFeatures (1)
EditorConfigSettings\Data\CodeStyleSetting.cs (1)
41DiagnosticSeverity.Warning => NotificationOption2.Warning,
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (2)
Simplification\TypeNameSimplifierTest.vb (2)
3203Await TestAsync(input, expected, QualifyPropertyAccessOptionWithNotification(LanguageNames.CSharp, NotificationOption2.Warning)) 5734Await TestAsync(input, expected, QualifyPropertyAccessOptionWithNotification(LanguageNames.VisualBasic, NotificationOption2.Warning))
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (4)
InitializeParameter\InitializeMemberFromParameterTests.vb (3)
1000Return New TestParameters(options:=[Option](CodeStyleOptions2.AccessibilityModifiersRequired, AccessibilityModifiersRequired.OmitIfDefault, NotificationOption2.Warning)) 1006Return New TestParameters(options:=[Option](CodeStyleOptions2.AccessibilityModifiersRequired, AccessibilityModifiersRequired.Never, NotificationOption2.Warning)) 1012Return New TestParameters(options:=[Option](CodeStyleOptions2.AccessibilityModifiersRequired, AccessibilityModifiersRequired.Always, NotificationOption2.Warning))
QualifyMemberAccessTests.vb (1)
563CodeStyleOptions2.QualifyPropertyAccess, NotificationOption2.Warning)
Microsoft.CodeAnalysis.Workspaces (5)
CodeStyle\NotificationOption.cs (2)
54/// <inheritdoc cref="NotificationOption2.Warning"/> 55public static readonly NotificationOption Warning = new(NotificationOption2.Warning);
CodeStyleHelpers.cs (1)
108case EditorConfigSeverityStrings.Warning: notification = NotificationOption2.Warning; return true;
CodeStyleOption2`1.cs (1)
210DiagnosticSeverity.Warning => NotificationOption2.Warning,
ReportDiagnosticExtensions.cs (1)
92return NotificationOption2.Warning;
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Options\OptionsTestHelpers.cs (1)
129.WithNotification((codeStyle.Notification == NotificationOption2.Error) ? NotificationOption2.Warning : NotificationOption2.Error),
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
WorkspaceServiceTests\GlobalOptionServiceTests.cs (2)
273var perLanguageOption2 = new PerLanguageOption2<CodeStyleOption2<bool>>("test", new CodeStyleOption2<bool>(false, NotificationOption2.Warning)).WithPublicOption("test", "test"); 289var option2 = new Option2<CodeStyleOption2<bool>>("test", new CodeStyleOption2<bool>(false, NotificationOption2.Warning)).WithPublicOption("test", "test");
Microsoft.VisualStudio.LanguageServices.Implementation (3)
Options\Style\AbstractCodeStyleOptionViewModel.cs (1)
72new NotificationOptionViewModel(NotificationOption2.Warning, KnownMonikers.StatusWarning),
Options\Style\NamingPreferences\NamingStyleOptionPageControl.xaml.cs (1)
46new NotificationOptionViewModel(NotificationOption2.Warning, KnownMonikers.StatusWarning),
Options\Style\NamingPreferences\NamingStyleOptionPageViewModel.cs (1)
29new NotificationOptionViewModel(NotificationOption2.Warning, KnownMonikers.StatusWarning),
Roslyn.VisualStudio.Next.UnitTests (3)
Options\VisualStudioSettingsOptionPersisterTests.cs (3)
96optionType == typeof(CodeStyleOption2<bool>) ? (new CodeStyleOption2<bool>(false, NotificationOption2.Warning), new CodeStyleOption2<bool>(false, NotificationOption2.Warning).ToXElement().ToString()) : 278var value1 = new CodeStyleOption2<int>(1, NotificationOption2.Warning);