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