@@ -34,23 +34,23 @@ dotnet_sort_system_directives_first = true
3434file_header_template = unset
3535
3636# this. and Me. preferences
37- dotnet_style_qualification_for_event = false
38- dotnet_style_qualification_for_field = false
39- dotnet_style_qualification_for_method = false
40- dotnet_style_qualification_for_property = false
37+ dotnet_style_qualification_for_event = false : suggestion
38+ dotnet_style_qualification_for_field = false : suggestion
39+ dotnet_style_qualification_for_method = false : suggestion
40+ dotnet_style_qualification_for_property = false : suggestion
4141
4242# Language keywords vs BCL types preferences
43- dotnet_style_predefined_type_for_locals_parameters_members = true :warning
44- dotnet_style_predefined_type_for_member_access = true :warning
43+ dotnet_style_predefined_type_for_locals_parameters_members = true :suggestion
44+ dotnet_style_predefined_type_for_member_access = true :suggestion
4545
4646# Parentheses preferences
47- dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:warning
47+ dotnet_style_parentheses_in_arithmetic_binary_operators = never_if_unnecessary:none
4848dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:warning
4949dotnet_style_parentheses_in_other_operators = never_if_unnecessary:warning
50- dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:warning
50+ dotnet_style_parentheses_in_relational_binary_operators = never_if_unnecessary:none
5151
5252# Modifier preferences
53- dotnet_style_require_accessibility_modifiers = for_non_interface_members
53+ dotnet_style_require_accessibility_modifiers = for_non_interface_members:suggestion
5454
5555# Expression-level preferences
5656dotnet_prefer_system_hash_code = true
@@ -89,22 +89,22 @@ dotnet_style_allow_statement_immediately_after_block_experimental = false:warnin
8989# ### C# Coding Conventions ####
9090
9191# var preferences
92- csharp_style_var_elsewhere = true :suggestion
93- csharp_style_var_for_built_in_types = true : warning
94- csharp_style_var_when_type_is_apparent = true :warning
92+ csharp_style_var_elsewhere = false :suggestion
93+ csharp_style_var_for_built_in_types = false : suggestion
94+ csharp_style_var_when_type_is_apparent = true :suggestion
9595
9696# Expression-bodied members
9797csharp_style_expression_bodied_accessors = true :suggestion
98- csharp_style_expression_bodied_constructors = false :warning
98+ csharp_style_expression_bodied_constructors = false :suggestion
9999csharp_style_expression_bodied_indexers = true :suggestion
100100csharp_style_expression_bodied_lambdas = true :suggestion
101101csharp_style_expression_bodied_local_functions = true :suggestion
102- csharp_style_expression_bodied_methods = true :suggestion
102+ csharp_style_expression_bodied_methods = false :suggestion
103103csharp_style_expression_bodied_operators = true :suggestion
104104csharp_style_expression_bodied_properties = true :suggestion
105105
106106# Pattern matching preferences
107- csharp_style_pattern_matching_over_as_with_null_check = true :warning
107+ csharp_style_pattern_matching_over_as_with_null_check = true :suggestion
108108csharp_style_pattern_matching_over_is_with_cast_check = true :warning
109109csharp_style_prefer_extended_property_pattern = true :warning
110110csharp_style_prefer_not_pattern = true :warning
@@ -120,7 +120,7 @@ csharp_prefer_static_anonymous_function = true
120120csharp_prefer_static_local_function = true :warning
121121csharp_style_prefer_readonly_struct = true
122122csharp_style_prefer_readonly_struct_member = true
123- csharp_preferred_modifier_order = public,private,protected,internal,file,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,required,volatile,async
123+ csharp_preferred_modifier_order = public,private,protected,internal,file,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,required,volatile,async:suggestion
124124
125125# Code-block preferences
126126csharp_prefer_braces = true :warning
@@ -132,11 +132,11 @@ csharp_style_prefer_primary_constructors = true:suggestion
132132csharp_style_prefer_top_level_statements = true :silent
133133
134134# Expression-level preferences
135- csharp_prefer_simple_default_expression = true : warning
135+ csharp_prefer_simple_default_expression = false : suggestion
136136csharp_style_deconstructed_variable_declaration = true :warning
137137csharp_style_implicit_object_creation_when_type_is_apparent = true :warning
138- csharp_style_inlined_variable_declaration = true :warning
139- csharp_style_prefer_local_over_anonymous_function = true :warning
138+ csharp_style_inlined_variable_declaration = true :suggestion
139+ csharp_style_prefer_local_over_anonymous_function = true :suggestion
140140csharp_style_prefer_index_operator = true :warning
141141csharp_style_prefer_null_check_over_type_check = true :warning
142142csharp_style_prefer_range_operator = true :warning
@@ -163,7 +163,7 @@ csharp_new_line_before_catch = true
163163csharp_new_line_before_else = true
164164csharp_new_line_before_finally = true
165165csharp_new_line_before_members_in_anonymous_types = true
166- csharp_new_line_before_members_in_object_initializers = true
166+ csharp_new_line_before_members_in_object_initializers = false
167167csharp_new_line_before_open_brace = all
168168csharp_new_line_between_query_expression_clauses = true
169169
@@ -201,11 +201,61 @@ csharp_space_between_square_brackets = false
201201
202202# Wrapping preferences
203203csharp_preserve_single_line_blocks = true
204- csharp_preserve_single_line_statements = false
204+ csharp_preserve_single_line_statements = true
205205
206206# ### Naming styles ####
207207
208208# Naming rules
209+ dotnet_naming_rule.constants_rule.import_to_resharper = as_predefined
210+ dotnet_naming_rule.constants_rule.severity = warning
211+ dotnet_naming_rule.constants_rule.style = all_upper_style
212+ dotnet_naming_rule.constants_rule.symbols = constants_symbols
213+
214+ dotnet_naming_rule.local_functions_rule.import_to_resharper = as_predefined
215+ dotnet_naming_rule.local_functions_rule.severity = warning
216+ dotnet_naming_rule.local_functions_rule.style = lower_camel_case_style
217+ dotnet_naming_rule.local_functions_rule.symbols = local_functions_symbols
218+
219+ dotnet_naming_rule.private_constants_rule.import_to_resharper = as_predefined
220+ dotnet_naming_rule.private_constants_rule.severity = warning
221+ dotnet_naming_rule.private_constants_rule.style = all_upper_style
222+ dotnet_naming_rule.private_constants_rule.symbols = private_constants_symbols
223+
224+ dotnet_naming_rule.private_static_readonly_rule.import_to_resharper = as_predefined
225+ dotnet_naming_rule.private_static_readonly_rule.severity = warning
226+ dotnet_naming_rule.private_static_readonly_rule.style = lower_camel_case_style_1
227+ dotnet_naming_rule.private_static_readonly_rule.symbols = private_static_readonly_symbols
228+
229+ dotnet_naming_rule.type_parameters_rule.import_to_resharper = as_predefined
230+ dotnet_naming_rule.type_parameters_rule.severity = warning
231+ dotnet_naming_rule.type_parameters_rule.style = upper_camel_case_style
232+ dotnet_naming_rule.type_parameters_rule.symbols = type_parameters_symbols
233+
234+ dotnet_naming_style.all_upper_style.capitalization = all_upper
235+ dotnet_naming_style.all_upper_style.word_separator = _
236+
237+ dotnet_naming_style.lower_camel_case_style.capitalization = camel_case
238+ dotnet_naming_style.lower_camel_case_style_1.capitalization = camel_case
239+ dotnet_naming_style.lower_camel_case_style_1.required_prefix = _
240+ dotnet_naming_style.upper_camel_case_style.capitalization = pascal_case
241+
242+ dotnet_naming_symbols.constants_symbols.applicable_accessibilities = public,internal,protected,protected_internal,private_protected
243+ dotnet_naming_symbols.constants_symbols.applicable_kinds = field
244+ dotnet_naming_symbols.constants_symbols.required_modifiers = const
245+
246+ dotnet_naming_symbols.local_functions_symbols.applicable_accessibilities = *
247+ dotnet_naming_symbols.local_functions_symbols.applicable_kinds = local_function
248+
249+ dotnet_naming_symbols.private_constants_symbols.applicable_accessibilities = private
250+ dotnet_naming_symbols.private_constants_symbols.applicable_kinds = field
251+ dotnet_naming_symbols.private_constants_symbols.required_modifiers = const
252+
253+ dotnet_naming_symbols.private_static_readonly_symbols.applicable_accessibilities = private
254+ dotnet_naming_symbols.private_static_readonly_symbols.applicable_kinds = field
255+ dotnet_naming_symbols.private_static_readonly_symbols.required_modifiers = static,readonly
256+
257+ dotnet_naming_symbols.type_parameters_symbols.applicable_accessibilities = *
258+ dotnet_naming_symbols.type_parameters_symbols.applicable_kinds = type_parameter
209259
210260dotnet_naming_rule.interface_should_be_begins_with_i.severity = warning
211261dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
@@ -269,6 +319,47 @@ dotnet_diagnostic.CS0649.severity = none
269319dotnet_diagnostic.CS0169.severity = none
270320dotnet_diagnostic.CS1591.severity = none
271321
322+ # ReSharper properties
323+ resharper_braces_for_for = required
324+ resharper_braces_for_foreach = required
325+ resharper_braces_for_ifelse = required
326+ resharper_braces_for_while = required
327+ resharper_csharp_align_multiline_parameter = true
328+ resharper_csharp_insert_final_newline = true
329+ resharper_csharp_max_line_length = 500
330+ resharper_csharp_use_indent_from_vs = false
331+ resharper_csharp_wrap_lines = false
332+ resharper_indent_nested_fixed_stmt = true
333+ resharper_indent_nested_foreach_stmt = true
334+ resharper_indent_nested_for_stmt = true
335+ resharper_indent_nested_lock_stmt = true
336+ resharper_indent_nested_usings_stmt = true
337+ resharper_indent_nested_while_stmt = true
338+ resharper_indent_preprocessor_if = outdent
339+ resharper_keep_existing_declaration_block_arrangement = false
340+ resharper_keep_existing_embedded_block_arrangement = false
341+ resharper_keep_existing_enum_arrangement = false
342+ resharper_place_accessorholder_attribute_on_same_line = false
343+ resharper_show_autodetect_configure_formatting_tip = false
344+ resharper_space_within_single_line_array_initializer_braces = false
345+ resharper_use_heuristics_for_body_style = true
346+
347+ # ReSharper inspection severities
348+ resharper_arrange_constructor_or_destructor_body_highlighting = none
349+ resharper_arrange_method_or_operator_body_highlighting = none
350+ resharper_arrange_redundant_parentheses_highlighting = hint
351+ resharper_arrange_this_qualifier_highlighting = hint
352+ resharper_arrange_type_member_modifiers_highlighting = hint
353+ resharper_arrange_type_modifiers_highlighting = hint
354+ resharper_built_in_type_reference_style_for_member_access_highlighting = hint
355+ resharper_built_in_type_reference_style_highlighting = hint
356+ resharper_redundant_base_qualifier_highlighting = warning
357+ resharper_suggest_var_or_type_built_in_types_highlighting = hint
358+ resharper_suggest_var_or_type_elsewhere_highlighting = hint
359+ resharper_suggest_var_or_type_simple_types_highlighting = hint
360+ resharper_use_object_or_collection_initializer_highlighting = hint
361+
362+
272363# ### Analyzers Rules ####
273364
274365# # Microsoft.CodeAnalysis.CSharp.CodeStyle
@@ -295,7 +386,7 @@ dotnet_diagnostic.IDE0005.severity = none
295386dotnet_diagnostic.IDE0007.severity = warning
296387
297388# IDE0008: Use explicit type instead of 'var'
298- dotnet_diagnostic.IDE0008.severity = warning
389+ dotnet_diagnostic.IDE0008.severity = none
299390
300391# IDE0009: Add this or Me qualification
301392dotnet_diagnostic.IDE0009.severity = warning
0 commit comments