@@ -82,14 +82,14 @@ csharp_style_var_for_built_in_types = false
82
82
csharp_style_var_when_type_is_apparent = false
83
83
84
84
# Expression-bodied members
85
- csharp_style_expression_bodied_accessors = true
86
- csharp_style_expression_bodied_constructors = false
87
- csharp_style_expression_bodied_indexers = true
88
- csharp_style_expression_bodied_lambdas = true
89
- csharp_style_expression_bodied_local_functions = false
90
- csharp_style_expression_bodied_methods = false
91
- csharp_style_expression_bodied_operators = false
92
- csharp_style_expression_bodied_properties = true
85
+ csharp_style_expression_bodied_accessors = true : silent
86
+ csharp_style_expression_bodied_constructors = false : silent
87
+ csharp_style_expression_bodied_indexers = true : silent
88
+ csharp_style_expression_bodied_lambdas = true : silent
89
+ csharp_style_expression_bodied_local_functions = false : silent
90
+ csharp_style_expression_bodied_methods = false : silent
91
+ csharp_style_expression_bodied_operators = false : silent
92
+ csharp_style_expression_bodied_properties = true : silent
93
93
94
94
# Pattern matching preferences
95
95
csharp_style_pattern_matching_over_as_with_null_check = true
@@ -110,12 +110,12 @@ csharp_style_prefer_readonly_struct = true
110
110
csharp_style_prefer_readonly_struct_member = true
111
111
112
112
# Code-block preferences
113
- csharp_prefer_braces = true
114
- csharp_prefer_simple_using_statement = true
115
- csharp_style_namespace_declarations = block_scoped
116
- csharp_style_prefer_method_group_conversion = true
117
- csharp_style_prefer_primary_constructors = true
118
- csharp_style_prefer_top_level_statements = true
113
+ csharp_prefer_braces = true : silent
114
+ csharp_prefer_simple_using_statement = true : suggestion
115
+ csharp_style_namespace_declarations = block_scoped:silent
116
+ csharp_style_prefer_method_group_conversion = true : silent
117
+ csharp_style_prefer_primary_constructors = true : suggestion
118
+ csharp_style_prefer_top_level_statements = true : silent
119
119
120
120
# Expression-level preferences
121
121
csharp_prefer_simple_default_expression = true
@@ -133,7 +133,7 @@ csharp_style_unused_value_assignment_preference = discard_variable
133
133
csharp_style_unused_value_expression_statement_preference = discard_variable
134
134
135
135
# 'using' directive preferences
136
- csharp_using_directive_placement = outside_namespace
136
+ csharp_using_directive_placement = outside_namespace:silent
137
137
138
138
# New line preferences
139
139
csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = true
@@ -230,3 +230,21 @@ dotnet_naming_style.begins_with_i.required_prefix = I
230
230
dotnet_naming_style.begins_with_i.required_suffix =
231
231
dotnet_naming_style.begins_with_i.word_separator =
232
232
dotnet_naming_style.begins_with_i.capitalization = pascal_case
233
+
234
+ [* .{cs,vb} ]
235
+ dotnet_style_coalesce_expression = true :suggestion
236
+ dotnet_style_null_propagation = true :suggestion
237
+ dotnet_style_prefer_is_null_check_over_reference_equality_method = true :suggestion
238
+ dotnet_style_prefer_auto_properties = true :silent
239
+ dotnet_style_object_initializer = true :suggestion
240
+ dotnet_style_collection_initializer = true :suggestion
241
+ dotnet_style_prefer_simplified_boolean_expressions = true :suggestion
242
+ dotnet_style_prefer_conditional_expression_over_assignment = true :silent
243
+ dotnet_style_prefer_conditional_expression_over_return = true :silent
244
+ dotnet_style_explicit_tuple_names = true :suggestion
245
+ dotnet_style_prefer_inferred_tuple_names = true :suggestion
246
+ dotnet_style_operator_placement_when_wrapping = beginning_of_line
247
+ tab_width = 2
248
+ indent_size = 2
249
+ end_of_line = crlf
250
+ dotnet_style_prefer_inferred_anonymous_type_member_names = true :suggestion
0 commit comments