34 references to Suggestion
Microsoft.CodeAnalysis.CodeStyle (9)
CodeStyleHelpers.cs (1)
107case EditorConfigSeverityStrings.Suggestion: notification = NotificationOption2.Suggestion; return true;
CodeStyleOption2`1.cs (3)
46public static readonly CodeStyleOption2<bool> TrueWithSuggestionEnforcement = new(value: true, notification: NotificationOption2.Suggestion); 47public static readonly CodeStyleOption2<bool> FalseWithSuggestionEnforcement = new(value: false, notification: NotificationOption2.Suggestion); 209DiagnosticSeverity.Info => NotificationOption2.Suggestion,
IdeAnalyzerOptions.cs (1)
23new(value: true, notification: NotificationOption2.Suggestion);
IdeCodeStyleOptions.cs (2)
14new(UnusedParametersPreference.AllMethods, NotificationOption2.Suggestion); 26new(ForEachExplicitCastInSourcePreference.WhenStronglyTyped, NotificationOption2.Suggestion);
ReportDiagnosticExtensions.cs (1)
95return NotificationOption2.Suggestion;
VisualBasicIdeCodeStyleOptions.cs (1)
19new(UnusedValuePreference.UnusedLocalVariable, NotificationOption2.Suggestion);
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (2)
ParenthesesOptionsProvider.cs (2)
27new CodeStyleOption2<ParenthesesPreference>(ParenthesesPreference.AlwaysForClarity, NotificationOption2.Suggestion); 30new CodeStyleOption2<ParenthesesPreference>(ParenthesesPreference.NeverIfUnnecessary, NotificationOption2.Suggestion);
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
CSharpCodeStyleOptions.cs (2)
95new(ExpressionBodyPreference.Never, NotificationOption2.Suggestion); 101new(ExpressionBodyPreference.WhenPossible, NotificationOption2.Suggestion);
CSharpIdeCodeStyleOptions.cs (1)
35new(UnusedValuePreference.DiscardVariable, NotificationOption2.Suggestion);
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (16)
ConvertToBlockScopedNamespaceAnalyzerTests.cs (1)
59{ CSharpCodeStyleOptions.NamespaceDeclarations, NamespaceDeclarationPreference.BlockScoped, NotificationOption2.Suggestion }
ConvertToFileScopedNamespaceAnalyzerTests.cs (1)
98{ CSharpCodeStyleOptions.NamespaceDeclarations, NamespaceDeclarationPreference.FileScoped, NotificationOption2.Suggestion }
EmbeddedStatementPlacementTests.cs (1)
86Options = { { CSharpCodeStyleOptions.AllowEmbeddedStatementsOnSameLine, true, NotificationOption2.Suggestion } }
QualifyMemberAccessTests.cs (1)
1557CodeStyleOptions2.QualifyPropertyAccess, NotificationOption2.Suggestion);
QualifyMemberAccessTests_FixAllTests.cs (1)
98options: Option(CodeStyleOptions2.QualifyPropertyAccess, true, NotificationOption2.Suggestion));
RemoveUnusedParametersTests.cs (2)
36new CodeStyleOption2<UnusedParametersPreference>(UnusedParametersPreference.NonPublicMethods, NotificationOption2.Suggestion)); 1471new CodeStyleOption2<UnusedParametersPreference>(default, NotificationOption2.Suggestion));
RemoveUnusedValueAssignmentTests.cs (2)
40new CodeStyleOption2<UnusedValuePreference>(UnusedValuePreference.DiscardVariable, NotificationOption2.Suggestion)); 44new CodeStyleOption2<UnusedValuePreference>(UnusedValuePreference.UnusedLocalVariable, NotificationOption2.Suggestion));
UseExplicitTypeTests.cs (2)
32private readonly CodeStyleOption2<bool> onWithInfo = new(true, NotificationOption2.Suggestion); 33private readonly CodeStyleOption2<bool> offWithInfo = new(false, NotificationOption2.Suggestion);
UseExpressionBodyForMethodsAnalyzerTests.cs (1)
80Assert.Equal(NotificationOption2.Suggestion, option.Notification);
UseImplicitTypeTests.cs (2)
33private static readonly CodeStyleOption2<bool> onWithInfo = new(true, NotificationOption2.Suggestion); 34private static readonly CodeStyleOption2<bool> offWithInfo = new(false, NotificationOption2.Suggestion);
UseVarTestExtensions.cs (2)
23private static readonly CodeStyleOption2<bool> onWithInfo = new CodeStyleOption2<bool>(true, NotificationOption2.Suggestion); 24private static readonly CodeStyleOption2<bool> offWithInfo = new CodeStyleOption2<bool>(false, NotificationOption2.Suggestion);
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.UnitTests (4)
QualifyMemberAccessTests.vb (1)
555CodeStyleOptions2.QualifyPropertyAccess, NotificationOption2.Suggestion)
QualifyMemberAccessTests_FixAllTests.vb (1)
83options:=[Option](CodeStyleOptions2.QualifyPropertyAccess, True, NotificationOption2.Suggestion))
RemoveUnusedValueAssignmentTests.vb (2)
24New CodeStyleOption2(Of UnusedValuePreference)(UnusedValuePreference.DiscardVariable, NotificationOption2.Suggestion)) 31New CodeStyleOption2(Of UnusedValuePreference)(UnusedValuePreference.UnusedLocalVariable, NotificationOption2.Suggestion))