@@ -23,93 +23,117 @@ dotnet_sort_system_directives_first = false
2323file_header_template = unset
2424
2525# this. and Me. preferences
26- dotnet_style_qualification_for_event = true :suggestion
27- dotnet_style_qualification_for_field = true : suggestion
28- dotnet_style_qualification_for_method = true :suggestion
29- dotnet_style_qualification_for_property = true :suggestion
26+ dotnet_style_qualification_for_event = true :warning
27+ dotnet_style_qualification_for_field = true
28+ dotnet_style_qualification_for_method = true :warning
29+ dotnet_style_qualification_for_property = true :warning
3030
3131# Language keywords vs BCL types preferences
3232dotnet_style_predefined_type_for_locals_parameters_members = false :suggestion
3333dotnet_style_predefined_type_for_member_access = false :suggestion
3434
3535# Parentheses preferences
36- dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent
37- dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent
38- dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
39- dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent
36+ dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity
37+ dotnet_style_parentheses_in_other_binary_operators = always_for_clarity
38+ dotnet_style_parentheses_in_other_operators = never_if_unnecessary
39+ dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity
4040
4141# Modifier preferences
42- dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
42+ dotnet_style_require_accessibility_modifiers = for_non_interface_members
4343
4444# Expression-level preferences
45- dotnet_style_coalesce_expression = true :suggestion
46- dotnet_style_collection_initializer = true :suggestion
47- dotnet_style_explicit_tuple_names = true :suggestion
48- dotnet_style_null_propagation = true :suggestion
49- dotnet_style_object_initializer = true :suggestion
45+ dotnet_style_coalesce_expression = true
46+ dotnet_style_collection_initializer = true
47+ dotnet_style_explicit_tuple_names = true
48+ dotnet_style_namespace_match_folder = true
49+ dotnet_style_null_propagation = true
50+ dotnet_style_object_initializer = true
5051dotnet_style_operator_placement_when_wrapping = beginning_of_line
51- dotnet_style_prefer_auto_properties = true :silent
52- dotnet_style_prefer_compound_assignment = true :suggestion
53- dotnet_style_prefer_conditional_expression_over_assignment = true :silent
54- dotnet_style_prefer_conditional_expression_over_return = true :silent
55- dotnet_style_prefer_inferred_anonymous_type_member_names = true :suggestion
56- dotnet_style_prefer_inferred_tuple_names = true :suggestion
57- dotnet_style_prefer_is_null_check_over_reference_equality_method = true :suggestion
58- dotnet_style_prefer_simplified_boolean_expressions = true :suggestion
59- dotnet_style_prefer_simplified_interpolation = true :suggestion
52+ dotnet_style_prefer_auto_properties = true :suggestion
53+ dotnet_style_prefer_compound_assignment = true
54+ dotnet_style_prefer_conditional_expression_over_assignment = true :suggestion
55+ dotnet_style_prefer_conditional_expression_over_return = true :suggestion
56+ dotnet_style_prefer_foreach_explicit_cast_in_source = when_strongly_typed
57+ dotnet_style_prefer_inferred_anonymous_type_member_names = true
58+ dotnet_style_prefer_inferred_tuple_names = true
59+ dotnet_style_prefer_is_null_check_over_reference_equality_method = true
60+ dotnet_style_prefer_simplified_boolean_expressions = true
61+ dotnet_style_prefer_simplified_interpolation = true
6062
6163# Field preferences
62- dotnet_style_readonly_field = true : suggestion
64+ dotnet_style_readonly_field = true
6365
6466# Parameter preferences
65- dotnet_code_quality_unused_parameters = all:suggestion
67+ dotnet_code_quality_unused_parameters = all
68+
69+ # Suppression preferences
70+ dotnet_remove_unnecessary_suppression_exclusions = none
71+
72+ # New line preferences
73+ dotnet_style_allow_multiple_blank_lines_experimental = true
74+ dotnet_style_allow_statement_immediately_after_block_experimental = true
6675
6776# ### C# Coding Conventions ####
6877
6978# var preferences
70- csharp_style_var_elsewhere = false :silent
71- csharp_style_var_for_built_in_types = false :silent
72- csharp_style_var_when_type_is_apparent = false :silent
79+ csharp_style_var_elsewhere = false :suggestion
80+ csharp_style_var_for_built_in_types = false :suggestion
81+ csharp_style_var_when_type_is_apparent = false :suggestion
7382
7483# Expression-bodied members
75- csharp_style_expression_bodied_accessors = true :silent
84+ csharp_style_expression_bodied_accessors = false :silent
7685csharp_style_expression_bodied_constructors = false :silent
77- csharp_style_expression_bodied_indexers = true :silent
78- csharp_style_expression_bodied_lambdas = true :silent
86+ csharp_style_expression_bodied_indexers = false :silent
87+ csharp_style_expression_bodied_lambdas = false :silent
7988csharp_style_expression_bodied_local_functions = false :silent
8089csharp_style_expression_bodied_methods = false :silent
8190csharp_style_expression_bodied_operators = false :silent
82- csharp_style_expression_bodied_properties = true :silent
91+ csharp_style_expression_bodied_properties = false :silent
8392
8493# Pattern matching preferences
8594csharp_style_pattern_matching_over_as_with_null_check = true :suggestion
8695csharp_style_pattern_matching_over_is_with_cast_check = true :suggestion
87- csharp_style_prefer_switch_expression = true :suggestion
96+ csharp_style_prefer_extended_property_pattern = true :suggestion
97+ csharp_style_prefer_not_pattern = true :suggestion
98+ csharp_style_prefer_pattern_matching = true :silent
99+ csharp_style_prefer_switch_expression = false :warning
88100
89101# Null-checking preferences
90102csharp_style_conditional_delegate_call = true :suggestion
91103
92104# Modifier preferences
93- csharp_prefer_static_local_function = true :suggestion
94- csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:silent
105+ csharp_prefer_static_local_function = false :suggestion
106+ csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,required, volatile,async
95107
96108# Code-block preferences
97- csharp_prefer_braces = true :silent
98- csharp_prefer_simple_using_statement = true :suggestion
109+ csharp_prefer_braces = true :suggestion
110+ csharp_prefer_simple_using_statement = false :suggestion
111+ csharp_style_namespace_declarations = block_scoped:silent
112+ csharp_style_prefer_method_group_conversion = true :silent
113+ csharp_style_prefer_top_level_statements = true :silent
99114
100115# Expression-level preferences
101- csharp_prefer_simple_default_expression = true :suggestion
116+ csharp_prefer_simple_default_expression = false :suggestion
102117csharp_style_deconstructed_variable_declaration = true :suggestion
118+ csharp_style_implicit_object_creation_when_type_is_apparent = false :suggestion
103119csharp_style_inlined_variable_declaration = true :suggestion
104- csharp_style_pattern_local_over_anonymous_function = true :suggestion
105- csharp_style_prefer_index_operator = true :suggestion
106- csharp_style_prefer_range_operator = true :suggestion
120+ csharp_style_prefer_index_operator = false :suggestion
121+ csharp_style_prefer_local_over_anonymous_function = true :suggestion
122+ csharp_style_prefer_null_check_over_type_check = true :suggestion
123+ csharp_style_prefer_range_operator = false :suggestion
124+ csharp_style_prefer_tuple_swap = true :suggestion
125+ csharp_style_prefer_utf8_string_literals = true :suggestion
107126csharp_style_throw_expression = true :suggestion
108- csharp_style_unused_value_assignment_preference = false :silent
127+ csharp_style_unused_value_assignment_preference = discard_variable :silent
109128csharp_style_unused_value_expression_statement_preference = discard_variable:silent
110129
111130# 'using' directive preferences
112- csharp_using_directive_placement = outside_namespace:silent
131+ csharp_using_directive_placement = outside_namespace:suggestion
132+
133+ # New line preferences
134+ csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = false :silent
135+ csharp_style_allow_blank_lines_between_consecutive_braces_experimental = true :silent
136+ csharp_style_allow_embedded_statements_on_same_line_experimental = false :silent
113137
114138# ### C# Formatting Rules ####
115139
@@ -199,3 +223,39 @@ dotnet_naming_style.begins_with_i.required_prefix = I
199223dotnet_naming_style.begins_with_i.required_suffix =
200224dotnet_naming_style.begins_with_i.word_separator =
201225dotnet_naming_style.begins_with_i.capitalization = pascal_case
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 :suggestion
236+ dotnet_style_object_initializer = true :suggestion
237+ dotnet_style_collection_initializer = true :suggestion
238+ dotnet_style_prefer_simplified_boolean_expressions = true :suggestion
239+ dotnet_style_prefer_conditional_expression_over_assignment = true :suggestion
240+ dotnet_style_prefer_conditional_expression_over_return = true :suggestion
241+ dotnet_style_explicit_tuple_names = true :suggestion
242+ dotnet_style_prefer_inferred_tuple_names = true :suggestion
243+ dotnet_style_prefer_inferred_anonymous_type_member_names = true :suggestion
244+ dotnet_style_prefer_compound_assignment = true :suggestion
245+ dotnet_style_prefer_simplified_interpolation = true :suggestion
246+ dotnet_style_namespace_match_folder = true :suggestion
247+ dotnet_style_readonly_field = true :suggestion
248+ dotnet_style_predefined_type_for_locals_parameters_members = false :suggestion
249+ dotnet_style_predefined_type_for_member_access = false :suggestion
250+ dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
251+ dotnet_style_allow_multiple_blank_lines_experimental = true :silent
252+ dotnet_style_allow_statement_immediately_after_block_experimental = true :silent
253+ dotnet_code_quality_unused_parameters = all:suggestion
254+ dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent
255+ dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent
256+ dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent
257+ dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
258+ dotnet_style_qualification_for_field = true :warning
259+ dotnet_style_qualification_for_property = true :warning
260+ dotnet_style_qualification_for_method = true :warning
261+ dotnet_style_qualification_for_event = true :warning
0 commit comments