1- root = true
2- # EditorConfig: http://EditorConfig.org
3-
4- # top-most EditorConfig file
5-
6- [* ]
7- indent_style = space
8-
9-
10- [* .cs ]
11- indent_size = 4
12- charset = utf-8
13-
14-
15- # Microsoft .NET properties
16- csharp_preferred_modifier_order = public, private, protected, internal, new, static, abstract, virtual, sealed, readonly, override, extern, unsafe, volatile, async:suggestion
17- csharp_style_namespace_declarations = file_scoped:error
18- dotnet_naming_rule.private_constants_rule.import_to_resharper = as_predefined
19- dotnet_naming_rule.private_constants_rule.severity = warning
20- dotnet_naming_rule.private_constants_rule.style = upper_camel_case_style
21- dotnet_naming_rule.private_constants_rule.symbols = private_constants_symbols
22- dotnet_naming_rule.private_instance_fields_rule.import_to_resharper = as_predefined
23- dotnet_naming_rule.private_instance_fields_rule.severity = warning
24- dotnet_naming_rule.private_instance_fields_rule.style = lower_camel_case_style
25- dotnet_naming_rule.private_instance_fields_rule.symbols = private_instance_fields_symbols
26- dotnet_naming_rule.private_static_fields_rule.import_to_resharper = as_predefined
27- dotnet_naming_rule.private_static_fields_rule.severity = warning
28- dotnet_naming_rule.private_static_fields_rule.style = lower_camel_case_style
29- dotnet_naming_rule.private_static_fields_rule.symbols = private_static_fields_symbols
30- dotnet_naming_rule.private_static_readonly_rule.import_to_resharper = as_predefined
31- dotnet_naming_rule.private_static_readonly_rule.severity = warning
32- dotnet_naming_rule.private_static_readonly_rule.style = upper_camel_case_style
33- dotnet_naming_rule.private_static_readonly_rule.symbols = private_static_readonly_symbols
34- dotnet_naming_style.lower_camel_case_style.capitalization = camel_case
35- dotnet_naming_style.upper_camel_case_style.capitalization = pascal_case
36- dotnet_naming_symbols.private_constants_symbols.applicable_accessibilities = private
37- dotnet_naming_symbols.private_constants_symbols.applicable_kinds = field
38- dotnet_naming_symbols.private_constants_symbols.required_modifiers = const
39- dotnet_naming_symbols.private_instance_fields_symbols.applicable_accessibilities = private
40- dotnet_naming_symbols.private_instance_fields_symbols.applicable_kinds = field
41- dotnet_naming_symbols.private_static_fields_symbols.applicable_accessibilities = private
42- dotnet_naming_symbols.private_static_fields_symbols.applicable_kinds = field
43- dotnet_naming_symbols.private_static_fields_symbols.required_modifiers = static
44- dotnet_naming_symbols.private_static_readonly_symbols.applicable_accessibilities = private
45- dotnet_naming_symbols.private_static_readonly_symbols.applicable_kinds = field
46- dotnet_naming_symbols.private_static_readonly_symbols.required_modifiers = static, readonly
47- dotnet_style_parentheses_in_arithmetic_binary_operators = never_if_unnecessary:none
48- dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:none
49- dotnet_style_parentheses_in_relational_binary_operators = never_if_unnecessary:none
50-
51- # ReSharper properties
52- resharper_apply_on_completion = true
53- resharper_csharp_wrap_lines = false
54- resharper_object_creation_when_type_not_evident = target_typed
55-
56- # ReSharper inspection severities
57- resharper_arrange_object_creation_when_type_evident_highlighting = error
58- resharper_arrange_object_creation_when_type_not_evident_highlighting = error
59- resharper_arrange_redundant_parentheses_highlighting = error
60- resharper_arrange_static_member_qualifier_highlighting = error
61- resharper_arrange_this_qualifier_highlighting = hint
62- resharper_arrange_type_member_modifiers_highlighting = none
63- resharper_built_in_type_reference_style_for_member_access_highlighting = hint
64- resharper_built_in_type_reference_style_highlighting = hint
65- resharper_check_namespace_highlighting = none
66- resharper_convert_to_using_declaration_highlighting = error
67- resharper_css_not_resolved_highlighting = warning
68- resharper_field_can_be_made_read_only_local_highlighting = none
69- resharper_merge_into_logical_pattern_highlighting = warning
70- resharper_merge_into_pattern_highlighting = error
71- resharper_method_has_async_overload_highlighting = warning
72- resharper_partial_type_with_single_part_highlighting = error
73- resharper_redundant_base_qualifier_highlighting = warning
74- resharper_redundant_cast_highlighting = error
75- resharper_redundant_empty_object_creation_argument_list_highlighting = error
76- resharper_redundant_empty_object_or_collection_initializer_highlighting = error
77- resharper_redundant_name_qualifier_highlighting = error
78- resharper_redundant_suppress_nullable_warning_expression_highlighting = error
79- resharper_redundant_using_directive_highlighting = error
80- resharper_redundant_verbatim_string_prefix_highlighting = error
81- resharper_replace_substring_with_range_indexer_highlighting = warning
82- resharper_suggest_var_or_type_built_in_types_highlighting = hint
83- resharper_suggest_var_or_type_elsewhere_highlighting = hint
84- resharper_suggest_var_or_type_simple_types_highlighting = hint
85- resharper_unnecessary_whitespace_highlighting = error
86- resharper_use_await_using_highlighting = warning
87- resharper_use_deconstruction_highlighting = warning
88-
89- # Sort using and Import directives with System.* appearing first
90- dotnet_sort_system_directives_first = true
91-
92- # Avoid "this." and "Me." if not necessary
93- dotnet_style_qualification_for_field = false :error
94- dotnet_style_qualification_for_property = false :error
95- dotnet_style_qualification_for_method = false :error
96- dotnet_style_qualification_for_event = false :error
97-
98- # Use language keywords instead of framework type names for type references
99- dotnet_style_predefined_type_for_locals_parameters_members = true :error
100- dotnet_style_predefined_type_for_member_access = true :error
101-
102- # Suggest more modern language features when available
103- dotnet_style_object_initializer = true :suggestion
104- dotnet_style_collection_initializer = true :suggestion
105- dotnet_style_coalesce_expression = false :suggestion
106- dotnet_style_null_propagation = true :suggestion
107- dotnet_style_explicit_tuple_names = true :suggestion
108-
109- # Prefer "var" everywhere
110- csharp_style_var_for_built_in_types = true :error
111- csharp_style_var_when_type_is_apparent = true :error
112- csharp_style_var_elsewhere = true :error
113-
114- # Prefer method-like constructs to have a block body
115- csharp_style_expression_bodied_methods = true :error
116- csharp_style_expression_bodied_constructors = true :error
117- csharp_style_expression_bodied_operators = true :error
118- csharp_place_expr_method_on_single_line = false
119-
120- # Prefer property-like constructs to have an expression-body
121- csharp_style_expression_bodied_properties = true :error
122- csharp_style_expression_bodied_indexers = true :error
123- csharp_style_expression_bodied_accessors = true :error
124-
125- # Suggest more modern language features when available
126- csharp_style_pattern_matching_over_is_with_cast_check = true :error
127- csharp_style_pattern_matching_over_as_with_null_check = true :error
128- csharp_style_inlined_variable_declaration = true :suggestion
129- csharp_style_throw_expression = true :suggestion
130- csharp_style_conditional_delegate_call = true :suggestion
131-
132- # Newline settings
133- # csharp_new_line_before_open_brace = all:error
134- max_array_initializer_elements_on_line = 1
135- csharp_new_line_before_else = true
136- csharp_new_line_before_catch = true
137- csharp_new_line_before_finally = true
138- csharp_new_line_before_members_in_object_initializers = true
139- csharp_new_line_before_members_in_anonymous_types = true
140- csharp_place_type_constraints_on_same_line = false :error
141- csharp_wrap_before_first_type_parameter_constraint = true :error
142- csharp_wrap_extends_list_style = true :error
143- csharp_wrap_after_dot_in_method_calls false
144- csharp_wrap_before_binary_pattern_op false
145- resharper_csharp_wrap_object_and_collection_initializer_style = chop_always
146- resharper_csharp_place_simple_initializer_on_single_line = false
147-
148- dotnet_style_require_accessibility_modifiers = never:error
149- resharper_place_type_constraints_on_same_line = false
150-
151- # braces https://www.jetbrains.com/help/resharper/EditorConfig_CSHARP_CSharpCodeStylePageImplSchema.html#Braces
152- braces_for_ifelse = required
153- braces_for_foreach = required
154- braces_for_while = required
155- braces_for_dowhile = required
156- braces_for_lock = required
157- braces_for_fixed = required
158- braces_for_for = required
159-
160- # Xml files
161- [* .{xml,config,nuspec,resx,vsixmanifest,csproj,targets,props} ]
162- indent_size = 2
163- # https://www.jetbrains.com/help/resharper/EditorConfig_XML_XmlCodeStylePageSchema.html#resharper_xml_blank_line_after_pi
164- blank_line_after_pi = false
165- space_before_self_closing = true
166-
167- [* .json ]
1+ root = true
2+ # EditorConfig: http://EditorConfig.org
3+
4+ # top-most EditorConfig file
5+
6+ [* ]
7+ indent_style = space
8+
9+
10+ [* .cs ]
11+ indent_size = 4
12+ charset = utf-8
13+
14+
15+ # Microsoft .NET properties
16+ csharp_preferred_modifier_order = public, private, protected, internal, new, static, abstract, virtual, sealed, readonly, override, extern, unsafe, volatile, async:suggestion
17+ csharp_style_namespace_declarations = file_scoped:error
18+ dotnet_naming_rule.private_constants_rule.import_to_resharper = as_predefined
19+ dotnet_naming_rule.private_constants_rule.severity = warning
20+ dotnet_naming_rule.private_constants_rule.style = upper_camel_case_style
21+ dotnet_naming_rule.private_constants_rule.symbols = private_constants_symbols
22+ dotnet_naming_rule.private_instance_fields_rule.import_to_resharper = as_predefined
23+ dotnet_naming_rule.private_instance_fields_rule.severity = warning
24+ dotnet_naming_rule.private_instance_fields_rule.style = lower_camel_case_style
25+ dotnet_naming_rule.private_instance_fields_rule.symbols = private_instance_fields_symbols
26+ dotnet_naming_rule.private_static_fields_rule.import_to_resharper = as_predefined
27+ dotnet_naming_rule.private_static_fields_rule.severity = warning
28+ dotnet_naming_rule.private_static_fields_rule.style = lower_camel_case_style
29+ dotnet_naming_rule.private_static_fields_rule.symbols = private_static_fields_symbols
30+ dotnet_naming_rule.private_static_readonly_rule.import_to_resharper = as_predefined
31+ dotnet_naming_rule.private_static_readonly_rule.severity = warning
32+ dotnet_naming_rule.private_static_readonly_rule.style = upper_camel_case_style
33+ dotnet_naming_rule.private_static_readonly_rule.symbols = private_static_readonly_symbols
34+ dotnet_naming_style.lower_camel_case_style.capitalization = camel_case
35+ dotnet_naming_style.upper_camel_case_style.capitalization = pascal_case
36+ dotnet_naming_symbols.private_constants_symbols.applicable_accessibilities = private
37+ dotnet_naming_symbols.private_constants_symbols.applicable_kinds = field
38+ dotnet_naming_symbols.private_constants_symbols.required_modifiers = const
39+ dotnet_naming_symbols.private_instance_fields_symbols.applicable_accessibilities = private
40+ dotnet_naming_symbols.private_instance_fields_symbols.applicable_kinds = field
41+ dotnet_naming_symbols.private_static_fields_symbols.applicable_accessibilities = private
42+ dotnet_naming_symbols.private_static_fields_symbols.applicable_kinds = field
43+ dotnet_naming_symbols.private_static_fields_symbols.required_modifiers = static
44+ dotnet_naming_symbols.private_static_readonly_symbols.applicable_accessibilities = private
45+ dotnet_naming_symbols.private_static_readonly_symbols.applicable_kinds = field
46+ dotnet_naming_symbols.private_static_readonly_symbols.required_modifiers = static, readonly
47+ dotnet_style_parentheses_in_arithmetic_binary_operators = never_if_unnecessary:none
48+ dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:none
49+ dotnet_style_parentheses_in_relational_binary_operators = never_if_unnecessary:none
50+
51+ # ReSharper properties
52+ resharper_apply_on_completion = true
53+ resharper_csharp_wrap_lines = false
54+ resharper_object_creation_when_type_not_evident = target_typed
55+
56+ # ReSharper inspection severities
57+ resharper_arrange_object_creation_when_type_evident_highlighting = error
58+ resharper_arrange_object_creation_when_type_not_evident_highlighting = error
59+ resharper_arrange_redundant_parentheses_highlighting = error
60+ resharper_arrange_static_member_qualifier_highlighting = error
61+ resharper_arrange_this_qualifier_highlighting = hint
62+ resharper_arrange_type_member_modifiers_highlighting = none
63+ resharper_built_in_type_reference_style_for_member_access_highlighting = hint
64+ resharper_built_in_type_reference_style_highlighting = hint
65+ resharper_check_namespace_highlighting = none
66+ resharper_convert_to_using_declaration_highlighting = error
67+ resharper_css_not_resolved_highlighting = warning
68+ resharper_field_can_be_made_read_only_local_highlighting = none
69+ resharper_merge_into_logical_pattern_highlighting = warning
70+ resharper_merge_into_pattern_highlighting = error
71+ resharper_method_has_async_overload_highlighting = warning
72+ resharper_partial_type_with_single_part_highlighting = error
73+ resharper_redundant_base_qualifier_highlighting = warning
74+ resharper_redundant_cast_highlighting = error
75+ resharper_redundant_empty_object_creation_argument_list_highlighting = error
76+ resharper_redundant_empty_object_or_collection_initializer_highlighting = error
77+ resharper_redundant_name_qualifier_highlighting = error
78+ resharper_redundant_suppress_nullable_warning_expression_highlighting = error
79+ resharper_redundant_using_directive_highlighting = error
80+ resharper_redundant_verbatim_string_prefix_highlighting = error
81+ resharper_replace_substring_with_range_indexer_highlighting = warning
82+ resharper_suggest_var_or_type_built_in_types_highlighting = hint
83+ resharper_suggest_var_or_type_elsewhere_highlighting = hint
84+ resharper_suggest_var_or_type_simple_types_highlighting = hint
85+ resharper_unnecessary_whitespace_highlighting = error
86+ resharper_use_await_using_highlighting = warning
87+ resharper_use_deconstruction_highlighting = warning
88+
89+ # Sort using and Import directives with System.* appearing first
90+ dotnet_sort_system_directives_first = true
91+
92+ # Avoid "this." and "Me." if not necessary
93+ dotnet_style_qualification_for_field = false :error
94+ dotnet_style_qualification_for_property = false :error
95+ dotnet_style_qualification_for_method = false :error
96+ dotnet_style_qualification_for_event = false :error
97+
98+ # Use language keywords instead of framework type names for type references
99+ dotnet_style_predefined_type_for_locals_parameters_members = true :error
100+ dotnet_style_predefined_type_for_member_access = true :error
101+
102+ # Suggest more modern language features when available
103+ dotnet_style_object_initializer = true :suggestion
104+ dotnet_style_collection_initializer = true :suggestion
105+ dotnet_style_coalesce_expression = false :suggestion
106+ dotnet_style_null_propagation = true :suggestion
107+ dotnet_style_explicit_tuple_names = true :suggestion
108+
109+ # Prefer "var" everywhere
110+ csharp_style_var_for_built_in_types = true :error
111+ csharp_style_var_when_type_is_apparent = true :error
112+ csharp_style_var_elsewhere = true :error
113+
114+ # Prefer method-like constructs to have a block body
115+ csharp_style_expression_bodied_methods = true :error
116+ csharp_style_expression_bodied_constructors = true :error
117+ csharp_style_expression_bodied_operators = true :error
118+ csharp_place_expr_method_on_single_line = false
119+
120+ # Prefer property-like constructs to have an expression-body
121+ csharp_style_expression_bodied_properties = true :error
122+ csharp_style_expression_bodied_indexers = true :error
123+ csharp_style_expression_bodied_accessors = true :error
124+
125+ # Suggest more modern language features when available
126+ csharp_style_pattern_matching_over_is_with_cast_check = true :error
127+ csharp_style_pattern_matching_over_as_with_null_check = true :error
128+ csharp_style_inlined_variable_declaration = true :suggestion
129+ csharp_style_throw_expression = true :suggestion
130+ csharp_style_conditional_delegate_call = true :suggestion
131+ csharp_style_prefer_switch_expression = true :suggestion
132+
133+ # Newline settings
134+ # csharp_new_line_before_open_brace = all:error
135+ max_array_initializer_elements_on_line = 1
136+ csharp_new_line_before_else = true
137+ csharp_new_line_before_catch = true
138+ csharp_new_line_before_finally = true
139+ csharp_new_line_before_members_in_object_initializers = true
140+ csharp_new_line_before_members_in_anonymous_types = true
141+ csharp_place_type_constraints_on_same_line = false :error
142+ csharp_wrap_before_first_type_parameter_constraint = true :error
143+ csharp_wrap_extends_list_style = true :error
144+ csharp_wrap_after_dot_in_method_calls false
145+ csharp_wrap_before_binary_pattern_op false
146+ resharper_csharp_wrap_object_and_collection_initializer_style = chop_always
147+ resharper_csharp_place_simple_initializer_on_single_line = false
148+
149+ dotnet_style_require_accessibility_modifiers = never:error
150+ resharper_place_type_constraints_on_same_line = false
151+
152+ # braces https://www.jetbrains.com/help/resharper/EditorConfig_CSHARP_CSharpCodeStylePageImplSchema.html#Braces
153+ braces_for_ifelse = required
154+ braces_for_foreach = required
155+ braces_for_while = required
156+ braces_for_dowhile = required
157+ braces_for_lock = required
158+ braces_for_fixed = required
159+ braces_for_for = required
160+
161+ # Xml files
162+ [* .{xml,config,nuspec,resx,vsixmanifest,csproj,targets,props} ]
163+ indent_size = 2
164+ # https://www.jetbrains.com/help/resharper/EditorConfig_XML_XmlCodeStylePageSchema.html#resharper_xml_blank_line_after_pi
165+ blank_line_after_pi = false
166+ space_before_self_closing = true
167+
168+ [* .json ]
168169indent_size = 2
0 commit comments