@@ -80,14 +80,14 @@ csharp_style_var_for_built_in_types = false
80
80
csharp_style_var_when_type_is_apparent = false
81
81
82
82
# Expression-bodied members
83
- csharp_style_expression_bodied_accessors = true
84
- csharp_style_expression_bodied_constructors = false
85
- csharp_style_expression_bodied_indexers = true
86
- csharp_style_expression_bodied_lambdas = true
87
- csharp_style_expression_bodied_local_functions = false
88
- csharp_style_expression_bodied_methods = false
89
- csharp_style_expression_bodied_operators = false
90
- csharp_style_expression_bodied_properties = true
83
+ csharp_style_expression_bodied_accessors = true : silent
84
+ csharp_style_expression_bodied_constructors = false : silent
85
+ csharp_style_expression_bodied_indexers = true : silent
86
+ csharp_style_expression_bodied_lambdas = true : silent
87
+ csharp_style_expression_bodied_local_functions = false : silent
88
+ csharp_style_expression_bodied_methods = false : silent
89
+ csharp_style_expression_bodied_operators = false : silent
90
+ csharp_style_expression_bodied_properties = true : silent
91
91
92
92
# Pattern matching preferences
93
93
csharp_style_pattern_matching_over_as_with_null_check = true
@@ -104,26 +104,26 @@ csharp_prefer_static_local_function = true
104
104
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async
105
105
106
106
# Code-block preferences
107
- csharp_prefer_braces = true
108
- csharp_prefer_simple_using_statement = true
107
+ csharp_prefer_braces = true : silent
108
+ csharp_prefer_simple_using_statement = true : suggestion
109
109
110
110
# Expression-level preferences
111
- csharp_prefer_simple_default_expression = true
112
- csharp_style_deconstructed_variable_declaration = true
113
- csharp_style_implicit_object_creation_when_type_is_apparent = true
114
- csharp_style_inlined_variable_declaration = true
111
+ csharp_prefer_simple_default_expression = true : suggestion
112
+ csharp_style_deconstructed_variable_declaration = true : suggestion
113
+ csharp_style_implicit_object_creation_when_type_is_apparent = true : suggestion
114
+ csharp_style_inlined_variable_declaration = true : suggestion
115
115
csharp_style_pattern_local_over_anonymous_function = true
116
- csharp_style_prefer_index_operator = true
117
- csharp_style_prefer_range_operator = true
118
- csharp_style_throw_expression = true
116
+ csharp_style_prefer_index_operator = true : suggestion
117
+ csharp_style_prefer_range_operator = true : suggestion
118
+ csharp_style_throw_expression = true : suggestion
119
119
csharp_style_unused_value_assignment_preference = discard_variable
120
120
csharp_style_unused_value_expression_statement_preference = discard_variable
121
121
122
122
# 'using' directive preferences
123
- csharp_using_directive_placement = outside_namespace
123
+ csharp_using_directive_placement = outside_namespace:silent
124
124
125
125
# New line preferences
126
- csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = true
126
+ csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = true : silent
127
127
csharp_style_allow_blank_lines_between_consecutive_braces_experimental = true
128
128
csharp_style_allow_embedded_statements_on_same_line_experimental = true
129
129
@@ -215,3 +215,33 @@ dotnet_naming_style.begins_with_i.required_prefix = I
215
215
dotnet_naming_style.begins_with_i.required_suffix =
216
216
dotnet_naming_style.begins_with_i.word_separator =
217
217
dotnet_naming_style.begins_with_i.capitalization = pascal_case
218
+ csharp_style_namespace_declarations = file_scoped:silent
219
+ csharp_style_prefer_method_group_conversion = true :silent
220
+ csharp_style_prefer_top_level_statements = true :silent
221
+ csharp_style_prefer_primary_constructors = true :suggestion
222
+ csharp_style_prefer_null_check_over_type_check = true :suggestion
223
+ csharp_style_prefer_local_over_anonymous_function = true :suggestion
224
+ csharp_style_prefer_tuple_swap = true :suggestion
225
+ csharp_style_prefer_utf8_string_literals = true :suggestion
226
+
227
+ [* .{cs,vb} ]
228
+ dotnet_style_operator_placement_when_wrapping = beginning_of_line
229
+ tab_width = 4
230
+ indent_size = 4
231
+ end_of_line = crlf
232
+ dotnet_style_coalesce_expression = true :suggestion
233
+ dotnet_style_null_propagation = true :suggestion
234
+ dotnet_style_prefer_is_null_check_over_reference_equality_method = true :suggestion
235
+ dotnet_style_prefer_auto_properties = true :silent
236
+ dotnet_style_object_initializer = true :suggestion
237
+ dotnet_style_prefer_collection_expression = true :suggestion
238
+ dotnet_style_collection_initializer = true :suggestion
239
+ dotnet_style_prefer_simplified_boolean_expressions = true :suggestion
240
+ dotnet_style_prefer_conditional_expression_over_assignment = true :silent
241
+ dotnet_style_prefer_conditional_expression_over_return = true :silent
242
+ dotnet_style_explicit_tuple_names = true :suggestion
243
+ dotnet_style_prefer_inferred_tuple_names = true :suggestion
244
+ dotnet_style_prefer_inferred_anonymous_type_member_names = true :suggestion
245
+ dotnet_style_prefer_compound_assignment = true :suggestion
246
+ dotnet_style_prefer_simplified_interpolation = true :suggestion
247
+ dotnet_style_namespace_match_folder = true :suggestion
0 commit comments