@@ -81,14 +81,14 @@ csharp_style_var_for_built_in_types = false
81
81
csharp_style_var_when_type_is_apparent = false
82
82
83
83
# Expression-bodied members
84
- csharp_style_expression_bodied_accessors = true
85
- csharp_style_expression_bodied_constructors = false
86
- csharp_style_expression_bodied_indexers = true
87
- csharp_style_expression_bodied_lambdas = true
88
- csharp_style_expression_bodied_local_functions = false
89
- csharp_style_expression_bodied_methods = false
90
- csharp_style_expression_bodied_operators = false
91
- csharp_style_expression_bodied_properties = true
84
+ csharp_style_expression_bodied_accessors = true : silent
85
+ csharp_style_expression_bodied_constructors = false : silent
86
+ csharp_style_expression_bodied_indexers = true : silent
87
+ csharp_style_expression_bodied_lambdas = true : silent
88
+ csharp_style_expression_bodied_local_functions = false : silent
89
+ csharp_style_expression_bodied_methods = false : silent
90
+ csharp_style_expression_bodied_operators = false : silent
91
+ csharp_style_expression_bodied_properties = true : silent
92
92
93
93
# Pattern matching preferences
94
94
csharp_style_pattern_matching_over_as_with_null_check = true
@@ -107,11 +107,11 @@ csharp_preferred_modifier_order = public,private,protected,internal,static,exter
107
107
csharp_style_prefer_readonly_struct = true
108
108
109
109
# Code-block preferences
110
- csharp_prefer_braces = true
111
- csharp_prefer_simple_using_statement = true
112
- csharp_style_namespace_declarations = block_scoped
113
- csharp_style_prefer_method_group_conversion = true
114
- csharp_style_prefer_top_level_statements = true
110
+ csharp_prefer_braces = true : silent
111
+ csharp_prefer_simple_using_statement = true : suggestion
112
+ csharp_style_namespace_declarations = block_scoped:silent
113
+ csharp_style_prefer_method_group_conversion = true : silent
114
+ csharp_style_prefer_top_level_statements = true : silent
115
115
116
116
# Expression-level preferences
117
117
csharp_prefer_simple_default_expression = true
@@ -129,7 +129,7 @@ csharp_style_unused_value_assignment_preference = discard_variable
129
129
csharp_style_unused_value_expression_statement_preference = discard_variable
130
130
131
131
# 'using' directive preferences
132
- csharp_using_directive_placement = outside_namespace
132
+ csharp_using_directive_placement = outside_namespace:silent
133
133
134
134
# New line preferences
135
135
csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = true
@@ -237,3 +237,23 @@ dotnet_naming_style.starts_with__.required_prefix = _
237
237
dotnet_naming_style.starts_with__.required_suffix =
238
238
dotnet_naming_style.starts_with__.word_separator =
239
239
dotnet_naming_style.starts_with__.capitalization = camel_case
240
+ csharp_style_prefer_primary_constructors = true :suggestion
241
+ csharp_prefer_system_threading_lock = true :suggestion
242
+
243
+ [* .{cs,vb} ]
244
+ dotnet_style_coalesce_expression = true :suggestion
245
+ dotnet_style_null_propagation = true :suggestion
246
+ dotnet_style_prefer_is_null_check_over_reference_equality_method = true :suggestion
247
+ dotnet_style_prefer_auto_properties = true :silent
248
+ dotnet_style_object_initializer = true :suggestion
249
+ dotnet_style_collection_initializer = true :suggestion
250
+ dotnet_style_prefer_simplified_boolean_expressions = true :suggestion
251
+ dotnet_style_prefer_conditional_expression_over_assignment = true :silent
252
+ dotnet_style_prefer_conditional_expression_over_return = true :silent
253
+ dotnet_style_explicit_tuple_names = true :suggestion
254
+ dotnet_style_prefer_inferred_tuple_names = true :suggestion
255
+ dotnet_style_operator_placement_when_wrapping = beginning_of_line
256
+ tab_width = 2
257
+ indent_size = 4
258
+ end_of_line = crlf
259
+ dotnet_style_prefer_inferred_anonymous_type_member_names = true :suggestion
0 commit comments