@@ -18,7 +18,6 @@ indent_size = 4
18
18
tab_width = 4
19
19
20
20
# New line preferences
21
- end_of_line = crlf
22
21
insert_final_newline = false
23
22
24
23
# ### .NET Coding Conventions ####
@@ -52,13 +51,16 @@ dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
52
51
dotnet_style_coalesce_expression = true :suggestion
53
52
dotnet_style_collection_initializer = true :suggestion
54
53
dotnet_style_explicit_tuple_names = true :suggestion
54
+ dotnet_style_namespace_match_folder = true :suggestion
55
55
dotnet_style_null_propagation = true :suggestion
56
56
dotnet_style_object_initializer = true :suggestion
57
57
dotnet_style_operator_placement_when_wrapping = beginning_of_line
58
58
dotnet_style_prefer_auto_properties = true :suggestion
59
+ dotnet_style_prefer_collection_expression = when_types_loosely_match:suggestion
59
60
dotnet_style_prefer_compound_assignment = true :suggestion
60
61
dotnet_style_prefer_conditional_expression_over_assignment = true :suggestion
61
62
dotnet_style_prefer_conditional_expression_over_return = true :suggestion
63
+ dotnet_style_prefer_foreach_explicit_cast_in_source = when_strongly_typed:suggestion
62
64
dotnet_style_prefer_inferred_anonymous_type_member_names = true :suggestion
63
65
dotnet_style_prefer_inferred_tuple_names = true :suggestion
64
66
dotnet_style_prefer_is_null_check_over_reference_equality_method = true :suggestion
@@ -77,9 +79,6 @@ dotnet_remove_unnecessary_suppression_exclusions = none
77
79
# ### C# Coding Conventions ####
78
80
[* .cs ]
79
81
80
- # namespace style
81
- csharp_style_namespace_declarations =file_scoped:suggestion
82
-
83
82
# var preferences
84
83
csharp_style_var_elsewhere = false :silent
85
84
csharp_style_var_for_built_in_types = false :silent
@@ -98,6 +97,7 @@ csharp_style_expression_bodied_properties = true:silent
98
97
# Pattern matching preferences
99
98
csharp_style_pattern_matching_over_as_with_null_check = true :suggestion
100
99
csharp_style_pattern_matching_over_is_with_cast_check = true :suggestion
100
+ csharp_style_prefer_extended_property_pattern = true :suggestion
101
101
csharp_style_prefer_not_pattern = true :suggestion
102
102
csharp_style_prefer_pattern_matching = true :silent
103
103
csharp_style_prefer_switch_expression = true :suggestion
@@ -106,20 +106,31 @@ csharp_style_prefer_switch_expression = true:suggestion
106
106
csharp_style_conditional_delegate_call = true :suggestion
107
107
108
108
# Modifier preferences
109
+ csharp_prefer_static_anonymous_function = true :suggestion
109
110
csharp_prefer_static_local_function = true :warning
110
111
csharp_preferred_modifier_order = public,private,protected,internal,file,const,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,required,volatile,async:suggestion
112
+ csharp_style_prefer_readonly_struct = true :suggestion
113
+ csharp_style_prefer_readonly_struct_member = true :suggestion
111
114
112
115
# Code-block preferences
113
116
csharp_prefer_braces = true :silent
114
117
csharp_prefer_simple_using_statement = true :suggestion
118
+ csharp_style_namespace_declarations = file_scoped:suggestion
119
+ csharp_style_prefer_method_group_conversion = true :silent
120
+ csharp_style_prefer_primary_constructors = true :suggestion
121
+ csharp_style_prefer_top_level_statements = true :silent
115
122
116
123
# Expression-level preferences
117
124
csharp_prefer_simple_default_expression = true :suggestion
118
125
csharp_style_deconstructed_variable_declaration = true :suggestion
126
+ csharp_style_implicit_object_creation_when_type_is_apparent = true :suggestion
119
127
csharp_style_inlined_variable_declaration = true :suggestion
120
- csharp_style_pattern_local_over_anonymous_function = true :suggestion
121
128
csharp_style_prefer_index_operator = true :suggestion
129
+ csharp_style_prefer_local_over_anonymous_function = true :suggestion
130
+ csharp_style_prefer_null_check_over_type_check = true :suggestion
122
131
csharp_style_prefer_range_operator = true :suggestion
132
+ csharp_style_prefer_tuple_swap = true :suggestion
133
+ csharp_style_prefer_utf8_string_literals = true :suggestion
123
134
csharp_style_throw_expression = true :suggestion
124
135
csharp_style_unused_value_assignment_preference = discard_variable:suggestion
125
136
csharp_style_unused_value_expression_statement_preference = discard_variable:silent
0 commit comments