50 instantiations of DiagnosticSet
Microsoft.CodeAnalysis.CSharp.EditorFeatures (49)
CodeCleanup\CSharpCodeCleanupService.cs (49)
27
new
DiagnosticSet
(FeaturesResources.Apply_using_directive_placement_preferences,
29
new
DiagnosticSet
(FeaturesResources.Apply_file_header_preferences,
31
new
DiagnosticSet
(AnalyzersResources.Add_this_or_Me_qualification,
34
new
DiagnosticSet
(FeaturesResources.Apply_language_framework_type_preferences,
36
new
DiagnosticSet
(FeaturesResources.Apply_parentheses_preferences,
39
new
DiagnosticSet
(AnalyzersResources.Add_accessibility_modifiers,
41
new
DiagnosticSet
(FeaturesResources.Apply_coalesce_expression_preferences,
43
new
DiagnosticSet
(FeaturesResources.Apply_object_collection_initialization_preferences,
45
new
DiagnosticSet
(FeaturesResources.Apply_tuple_name_preferences,
47
new
DiagnosticSet
(FeaturesResources.Apply_namespace_matches_folder_preferences,
49
new
DiagnosticSet
(FeaturesResources.Apply_null_propagation_preferences,
51
new
DiagnosticSet
(FeaturesResources.Apply_object_initializer_preferences,
53
new
DiagnosticSet
(FeaturesResources.Apply_auto_property_preferences,
55
new
DiagnosticSet
(FeaturesResources.Apply_compound_assignment_preferences,
58
new
DiagnosticSet
(FeaturesResources.Apply_conditional_expression_preferences,
63
new
DiagnosticSet
(FeaturesResources.Apply_inferred_anonymous_type_member_names_preferences,
65
new
DiagnosticSet
(FeaturesResources.Apply_null_checking_preferences,
67
new
DiagnosticSet
(FeaturesResources.Apply_simplify_boolean_expression_preferences,
69
new
DiagnosticSet
(FeaturesResources.Apply_string_interpolation_preferences,
71
new
DiagnosticSet
(CSharpFeaturesResources.Make_private_field_readonly_when_possible,
73
new
DiagnosticSet
(FeaturesResources.Remove_unused_parameters,
75
new
DiagnosticSet
(FeaturesResources.Remove_unused_suppressions,
77
new
DiagnosticSet
(FeaturesResources.Apply_blank_line_preferences_experimental,
79
new
DiagnosticSet
(FeaturesResources.Apply_statement_after_block_preferences_experimental,
81
new
DiagnosticSet
(CSharpFeaturesResources.Apply_var_preferences,
84
new
DiagnosticSet
(CSharpFeaturesResources.Apply_expression_block_body_preferences,
102
new
DiagnosticSet
(CSharpFeaturesResources.Apply_pattern_matching_preferences,
117
new
DiagnosticSet
(CSharpFeaturesResources.Apply_conditional_delegate_call_preferences,
119
new
DiagnosticSet
(CSharpFeaturesResources.Apply_static_local_function_preferences,
121
new
DiagnosticSet
(FeaturesResources.Sort_accessibility_modifiers,
124
new
DiagnosticSet
(CSharpFeaturesResources.Apply_readonly_struct_preferences,
126
new
DiagnosticSet
(CSharpFeaturesResources.Add_required_braces_for_single_line_control_statements,
128
new
DiagnosticSet
(CSharpFeaturesResources.Apply_using_statement_preferences,
130
new
DiagnosticSet
(CSharpFeaturesResources.Apply_namespace_preferences,
132
new
DiagnosticSet
(CSharpFeaturesResources.Apply_method_group_conversion_preferences,
134
new
DiagnosticSet
(CSharpFeaturesResources.Apply_default_T_preferences,
136
new
DiagnosticSet
(CSharpFeaturesResources.Apply_deconstruct_preferences,
141
new
DiagnosticSet
(CSharpFeaturesResources.Apply_new_preferences,
143
new
DiagnosticSet
(CSharpFeaturesResources.Apply_inline_out_variable_preferences,
145
new
DiagnosticSet
(CSharpFeaturesResources.Apply_range_preferences,
150
new
DiagnosticSet
(CSharpFeaturesResources.Apply_local_over_anonymous_function_preferences,
152
new
DiagnosticSet
(CSharpFeaturesResources.Apply_throw_expression_preferences,
154
new
DiagnosticSet
(FeaturesResources.Apply_unused_value_preferences,
157
new
DiagnosticSet
(CSharpFeaturesResources.Apply_blank_line_after_colon_in_constructor_initializer_preferences_experimental,
159
new
DiagnosticSet
(CSharpFeaturesResources.Apply_blank_lines_between_consecutive_braces_preferences_experimental,
161
new
DiagnosticSet
(CSharpFeaturesResources.Apply_embedded_statements_on_same_line_preferences_experimental,
163
new
DiagnosticSet
(FeaturesResources.Remove_unnecessary_casts,
165
new
DiagnosticSet
(FeaturesResources.Remove_unused_variables,
168
new
DiagnosticSet
(CSharpAnalyzersResources.Remove_unnecessary_nullable_directive,
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\CodeCleanup\DiagnosticSet.cs (1)
42
return
new
(Description, DiagnosticIds, isAnyDiagnosticIdExplicitlyEnabled);
15 references to DiagnosticSet
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
CodeCleanup\CSharpCodeCleanupService.cs (2)
25
private static readonly ImmutableArray<
DiagnosticSet
> s_diagnosticSets =
177
protected override ImmutableArray<
DiagnosticSet
> GetDiagnosticSets()
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (4)
src\VisualStudio\Core\Def\CodeCleanup\AbstractCodeCleanUpFixer_Helper.cs (4)
25
var enabledDiagnosticSets = ArrayBuilder<
DiagnosticSet
>.GetInstance();
27
foreach (
var
diagnostic in enabledDiagnostics.Diagnostics)
51
var enabledDiagnosticSets = ArrayBuilder<
DiagnosticSet
>.GetInstance();
53
foreach (
var
diagnostic in enabledDiagnostics.Diagnostics)
Microsoft.CodeAnalysis.LanguageServer.Protocol (5)
Features\CodeCleanup\AbstractCodeCleanupService.cs (3)
28
protected abstract ImmutableArray<
DiagnosticSet
> GetDiagnosticSets();
146
Document document, ImmutableArray<
DiagnosticSet
> enabledDiagnosticSets,
150
foreach (
var
diagnosticSet in enabledDiagnosticSets)
Features\CodeCleanup\DiagnosticSet.cs (1)
37
public
DiagnosticSet
With(bool isAnyDiagnosticIdExplicitlyEnabled)
Features\CodeCleanup\EnabledDiagnosticOptions.cs (1)
12
internal sealed record EnabledDiagnosticOptions(bool FormatDocument, bool RunThirdPartyFixers, ImmutableArray<
DiagnosticSet
> Diagnostics, OrganizeUsingsSet OrganizeUsings);
Microsoft.VisualStudio.LanguageServices (4)
CodeCleanup\AbstractCodeCleanUpFixer_Helper.cs (4)
25
var enabledDiagnosticSets = ArrayBuilder<
DiagnosticSet
>.GetInstance();
27
foreach (
var
diagnostic in enabledDiagnostics.Diagnostics)
51
var enabledDiagnosticSets = ArrayBuilder<
DiagnosticSet
>.GetInstance();
53
foreach (
var
diagnostic in enabledDiagnostics.Diagnostics)