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