36 references to Suggestion
Microsoft.CodeAnalysis.CodeStyle (13)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
109
case EditorConfigSeverityStrings.Suggestion: notification = NotificationOption2.
Suggestion
; return true;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (3)
43
public static readonly CodeStyleOption2<bool> TrueWithSuggestionEnforcement = new(value: true, notification: NotificationOption2.
Suggestion
);
44
public static readonly CodeStyleOption2<bool> FalseWithSuggestionEnforcement = new(value: false, notification: NotificationOption2.
Suggestion
);
193
DiagnosticSeverity.Info => NotificationOption2.
Suggestion
,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOptions2.cs (4)
97
defaultValue: new CodeStyleOption2<CollectionExpressionPreference>(CollectionExpressionPreference.WhenTypesLooselyMatch, NotificationOption2.
Suggestion
),
180
defaultValue: new CodeStyleOption2<UnusedParametersPreference>(UnusedParametersPreference.AllMethods, NotificationOption2.
Suggestion
),
307
defaultValue: new CodeStyleOption2<ForEachExplicitCastInSourcePreference>(ForEachExplicitCastInSourcePreference.WhenStronglyTyped, NotificationOption2.
Suggestion
),
331
defaultValue: new CodeStyleOption2<bool>(value: true, notification: NotificationOption2.
Suggestion
));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\NotificationOption2.cs (2)
51
ReportDiagnostic.Info =>
Suggestion
,
62
DiagnosticSeverity.Info =>
Suggestion
,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\VisualBasic\VisualBasicCodeStyleOptions.cs (1)
52
defaultValue: new CodeStyleOption2<UnusedValuePreference>(UnusedValuePreference.UnusedLocalVariable, NotificationOption2.
Suggestion
),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticSeverityExtensions.cs (1)
17
DiagnosticSeverity.Info => NotificationOption2.
Suggestion
,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ReportDiagnosticExtensions.cs (1)
32
ReportDiagnostic.Info => NotificationOption2.
Suggestion
,
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (2)
src\Features\DiagnosticsTestUtilities\Diagnostics\ParenthesesOptionsProvider.cs (2)
27
new CodeStyleOption2<ParenthesesPreference>(ParenthesesPreference.AlwaysForClarity, NotificationOption2.
Suggestion
);
30
new CodeStyleOption2<ParenthesesPreference>(ParenthesesPreference.NeverIfUnnecessary, NotificationOption2.
Suggestion
);
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\Analyzers\CSharp\Analyzers\UseNameofInNullableAttribute\CSharpUseNameofInNullableAttributeDiagnosticAnalyzer.cs (1)
103
NotificationOption2.
Suggestion
,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (3)
99
new(ExpressionBodyPreference.Never, NotificationOption2.
Suggestion
);
105
new(ExpressionBodyPreference.WhenPossible, NotificationOption2.
Suggestion
);
239
defaultValue: new CodeStyleOption2<UnusedValuePreference>(UnusedValuePreference.DiscardVariable, NotificationOption2.
Suggestion
),
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (17)
src\Analyzers\CSharp\Tests\ConvertNamespace\ConvertToBlockScopedNamespaceAnalyzerTests.cs (1)
67
{ CSharpCodeStyleOptions.NamespaceDeclarations, NamespaceDeclarationPreference.BlockScoped, NotificationOption2.
Suggestion
}
src\Analyzers\CSharp\Tests\ConvertNamespace\ConvertToFileScopedNamespaceAnalyzerTests.cs (1)
87
{ CSharpCodeStyleOptions.NamespaceDeclarations, NamespaceDeclarationPreference.FileScoped, NotificationOption2.
Suggestion
}
src\Analyzers\CSharp\Tests\InlineDeclaration\CSharpInlineDeclarationTests.cs (1)
30
private readonly CodeStyleOption2<bool> s_offWithInfo = new(false, NotificationOption2.
Suggestion
);
src\Analyzers\CSharp\Tests\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementTests.cs (1)
77
Options = { { CSharpCodeStyleOptions.AllowEmbeddedStatementsOnSameLine, true, NotificationOption2.
Suggestion
} }
src\Analyzers\CSharp\Tests\QualifyMemberAccess\QualifyMemberAccessTests.cs (1)
1447
CodeStyleOptions2.QualifyPropertyAccess, NotificationOption2.
Suggestion
);
src\Analyzers\CSharp\Tests\QualifyMemberAccess\QualifyMemberAccessTests_FixAllTests.cs (1)
93
new(options: Option(CodeStyleOptions2.QualifyPropertyAccess, true, NotificationOption2.
Suggestion
)));
src\Analyzers\CSharp\Tests\RemoveUnusedParametersAndValues\RemoveUnusedParametersTests.cs (2)
43
new CodeStyleOption2<UnusedParametersPreference>(UnusedParametersPreference.NonPublicMethods, NotificationOption2.
Suggestion
));
1383
new CodeStyleOption2<UnusedParametersPreference>(default, NotificationOption2.
Suggestion
));
src\Analyzers\CSharp\Tests\RemoveUnusedParametersAndValues\RemoveUnusedValueAssignmentTests.cs (2)
34
new CodeStyleOption2<UnusedValuePreference>(UnusedValuePreference.DiscardVariable, NotificationOption2.
Suggestion
));
38
new CodeStyleOption2<UnusedValuePreference>(UnusedValuePreference.UnusedLocalVariable, NotificationOption2.
Suggestion
));
src\Analyzers\CSharp\Tests\UseExpressionBody\UseExpressionBodyForMethodsAnalyzerTests.cs (1)
76
Assert.Equal(NotificationOption2.
Suggestion
.WithIsExplicitlySpecified(true), option.Notification);
src\Analyzers\CSharp\Tests\UseImplicitOrExplicitType\UseExplicitTypeTests.cs (2)
28
private readonly CodeStyleOption2<bool> onWithInfo = new(true, NotificationOption2.
Suggestion
);
29
private readonly CodeStyleOption2<bool> offWithInfo = new(false, NotificationOption2.
Suggestion
);
src\Analyzers\CSharp\Tests\UseImplicitOrExplicitType\UseImplicitTypeTests.cs (2)
29
private static readonly CodeStyleOption2<bool> onWithInfo = new(true, NotificationOption2.
Suggestion
);
30
private static readonly CodeStyleOption2<bool> offWithInfo = new(false, NotificationOption2.
Suggestion
);
src\Analyzers\CSharp\Tests\UseVarTestExtensions.cs (2)
18
private static readonly CodeStyleOption2<bool> onWithInfo = new(true, NotificationOption2.
Suggestion
);
19
private static readonly CodeStyleOption2<bool> offWithInfo = new(false, NotificationOption2.
Suggestion
);