-
Notifications
You must be signed in to change notification settings - Fork 5
/
.editorconfig
275 lines (251 loc) · 11.9 KB
/
.editorconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
root = true
[*]
# "this.x" ?
dotnet_style_qualification_for_field = true
dotnet_style_qualification_for_property = true
dotnet_style_qualification_for_method = true
dotnet_style_qualification_for_event = true
# Blank Lines
resharper_keep_blank_lines_in_declarations = 1
resharper_remove_blank_lines_near_braces_in_declarations = true
resharper_keep_blank_lines_in_code = 1
resharper_remove_blank_lines_near_braces_in_code = true
resharper_blank_lines_around_namespace = 1
resharper_blank_lines_inside_namespace = 0
resharper_blank_lines_around_type = 1
resharper_blank_lines_inside_type = 0
resharper_blank_lines_around_field = 1
resharper_blank_lines_around_single_line_field = 0
resharper_blank_lines_around_property = 1
resharper_blank_lines_around_single_line_property = 0
resharper_blank_lines_around_auto_property = 1
resharper_blank_lines_around_single_line_auto_property = 0
resharper_blank_lines_around_invocable = 1
resharper_blank_lines_around_single_line_invocable = 0
resharper_blank_lines_around_local_method = 1
resharper_blank_lines_around_single_line_local_method = 0
resharper_blank_lines_around_region = 1
resharper_blank_lines_inside_region = 1
resharper_blank_lines_between_using_groups = 1
resharper_blank_lines_after_using_list = 1
resharper_blank_lines_after_start_comment = 0
resharper_blank_lines_before_single_line_comment = 1
resharper_blank_lines_after_control_transfer_statements = 1
# Braces
resharper_brace_style = next_line
resharper_empty_block_style = multiline
# Line breaks
resharper_keep_user_linebreaks = true
resharper_simple_embedded_statement_style = line_break
resharper_simple_case_statement_style = line_break
resharper_simple_embedded_block_style = line_break
new_line_before_else = true
resharper_new_line_before_while = true
new_line_before_catch = true
new_line_before_finally = true
max_line_length = off
resharper_wrap_parameters_style = wrap_if_long
resharper_wrap_before_declaration_lpar = false
resharper_wrap_after_declaration_lpar = false
resharper_wrap_arguments_style = wrap_if_long
resharper_wrap_before_invocation_lpar = false
resharper_wrap_after_invocation_lpar = false
resharper_wrap_before_comma = false
resharper_wrap_after_dot_in_method_calls = true
resharper_wrap_chained_method_calls = true
resharper_wrap_before_extends_colon = false
resharper_wrap_extends_list_style = wrap_if_long
resharper_wrap_for_stmt_header_style = chop_if_long
resharper_wrap_before_ternary_opsigns = true
resharper_wrap_ternary_expr_style = chop_if_long
resharper_wrap_multiple_declaration_style = chop_if_long
resharper_wrap_linq_expressions = chop_if_long
resharper_wrap_before_binary_opsign = true
resharper_wrap_chained_binary_expressions = chop_if_long
resharper_force_chop_compound_if_expression = false
resharper_force_chop_compound_while_expression = false
resharper_force_chop_compound_do_expression = false
resharper_wrap_multiple_type_parameer_constraints_style = chop_always
resharper_wrap_object_and_collection_initializer_style = chop_if_long
resharper_wrap_array_initializer_style = chop_if_long
resharper_wrap_before_first_type_parameter_constraint = true
resharper_wrap_before_type_parameter_langle = false
resharper_csharp_place_abstract_accessorholder_on_single_line = true
resharper_csharp_place_simple_accessor_on_single_line = true
resharper_csharp_place_simple_accessorholder_on_single_line = false
resharper_csharp_place_accessor_with_attrs_holder_on_single_line = false
resharper_csharp_place_simple_method_on_single_line = false
resharper_csharp_place_simple_anonymousmethod_on_single_line = true
resharper_csharp_place_simple_initializer_on_single_line = true
resharper_place_abstract_accessorholder_on_single_line = true
resharper_place_accessor_with_attrs_holder_on_single_line = false
resharper_place_simple_method_on_single_line = false
resharper_place_simple_anonymousmethod_on_single_line = true
resharper_place_type_attribute_on_same_line = false
resharper_place_method_attribute_on_same_line = false
resharper_place_accessorholder_attribute_on_same_line = false
resharper_place_simple_accessor_attribute_on_same_line = false
resharper_place_complex_accessor_attribute_on_same_line = false
resharper_place_field_attribute_on_same_line = false
resharper_place_constructor_initializer_on_same_line = false
resharper_place_type_constraints_on_same_line = false
resharper_allow_comment_after_lbrace = false
# Other
resharper_continuous_indent_multiplier = 1
indent_switch_labels = true
resharper_indent_nested_usings_stmt = false
resharper_indent_nested_fixed_stmt = false
resharper_indent_nested_lock_stmt = false
resharper_indent_nested_for_stmt = true
resharper_indent_nested_foreach_stmt = true
resharper_indent_nested_while_stmt = true
resharper_indent_type_constraints = true
resharper_stick_comment = false
resharper_indent_method_decl_pars = inside
resharper_indent_invocation_pars = inside
resharper_indent_statement_pars = outside_and_inside
resharper_indent_typeparam_angles = outside_and_inside
resharper_indent_typearg_angles = outside_and_inside
resharper_indent_pars = outside_and_inside
resharper_align_multiline_parameter = true
resharper_align_first_arg_by_paren = true
resharper_align_multiline_argument = true
resharper_align_multiline_extends_list = true
resharper_align_multiline_expression = true
resharper_align_multiline_binary_expressions_chain = true
resharper_align_multiline_calls_chain = true
resharper_align_multiline_array_and_object_initializer = true
resharper_indent_anonymous_method_block = false
resharper_align_multiline_for_stmt = true
resharper_align_multiple_declaration = true
resharper_align_multline_type_parameter_list = true
resharper_align_multline_type_parameter_constrains = true
resharper_align_linq_query = true
resharper_special_else_if_treatment = true
insert_final_newline = false
# Spaces
resharper_space_before_method_call_parentheses = false
resharper_space_before_empty_method_call_parentheses = false
resharper_space_before_method_parentheses = false
resharper_space_before_empty_method_parentheses = false
resharper_space_before_array_access_brackets = false
resharper_space_before_if_parentheses = true
resharper_space_before_while_parentheses = true
resharper_space_before_catch_parentheses = true
resharper_space_before_switch_parentheses = true
resharper_space_before_for_parentheses = true
resharper_space_before_foreach_parentheses = true
resharper_space_before_using_parentheses = true
resharper_space_before_lock_parentheses = true
resharper_space_before_typeof_parentheses = false
resharper_space_before_default_parentheses = false
resharper_space_before_checked_parentheses = false
resharper_space_before_fixed_parentheses = true
resharper_space_before_sizeof_parentheses = false
resharper_space_before_nameof_parentheses = false
resharper_space_before_type_parameter_angle = false
resharper_space_before_type_argument_angle = false
resharper_space_around_binary_operator = true
resharper_space_around_member_access_operator = false
resharper_space_after_logical_not_op = false
resharper_space_after_unary_minus_op = false
resharper_space_after_unary_plus_op = false
resharper_space_after_ampersand_op = false
resharper_space_after_asterik_op = false
resharper_space_within_parentheses = false
space_between_method_declaration_parameter_list_parentheses = false
space_between_method_declaration_empty_parameter_list_parentheses = false
space_between_method_call_parameter_list_parentheses = false
space_between_method_call_empty_parameter_list_parentheses = false
resharper_space_within_array_access_brackets = false
resharper_space_between_typecast_parentheses = false
resharper_space_between_parentheses_of_control_flow_statements = false
resharper_space_within_typeof_parentheses = false
resharper_space_within_default_parentheses = false
resharper_space_within_checked_parentheses = false
resharper_space_within_sizeof_parentheses = false
resharper_space_within_nameof_parentheses = false
resharper_space_within_type_parameter_angles = false
resharper_space_within_type_argument_angles = false
resharper_space_before_ternary_quest = true
resharper_space_after_ternary_quest = true
resharper_space_before_ternary_colon = true
resharper_space_after_ternary_colon = true
space_after_cast = false
resharper_space_near_postfix_and_prefix_op = false
space_before_comma = false
space_after_comma = true
space_before_semicolon_in_for_statement = false
space_after_semicolon_in_for_statement = true
resharper_space_before_attribute_colon = false
resharper_space_after_attribute_colon = true
space_before_colon_in_inheritance_clause = true
space_after_colon_in_inheritance_clause = true
resharper_space_around_lambda_arrow = true
resharper_space_before_singleline_accessorholder = true
resharper_space_in_singleline_accessorholder = true
resharper_space_between_accessors_in_singleline_property = true
resharper_space_between_attribute_sections = false
resharper_space_withing_empty_braces = true
resharper_space_in_singleline_method = true
resharper_space_in_singleline_anonymous_method = true
resharper_space_within_attribute_brackets = false
resharper_space_before_array_rank_brackets = false
resharper_space_within_array_rank_brackets = false
resharper_space_within_array_rank_empty_brackets = false
resharper_space_within_single_line_array_initializer_braces = true
resharper_space_before_pointer_asterik_declaration = false
resharper_space_before_semicolon = false
resharper_space_before_colon_in_case = false
resharper_space_before_nullable_mark = false
resharper_space_before_type_parameter_constraint_colon = true
resharper_space_after_type_parameter_constraint_colon = false
resharper_space_around_alias_eq = true
resharper_space_before_trailing_comment = true
resharper_space_after_operator_keyword = true
[*.cs]
# Tabs and indentation
indent_style = space
indent_size = 4
tab_width = 4
# true = prefer C# keywords instead of .NET types for built-in primitive types (int, string, etc.)
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
# false = prefer the .NET types, thus "Int32.Parse" instead of "int.Parse"
dotnet_style_predefined_type_for_member_access = false:suggestion
# true = prefer to use object-initializers
dotnet_style_object_initializer = true:suggestion
dotnet_style_collection_initializer = true:suggestion
# true = require tuple member names
dotnet_style_explicit_tuple_names = true:warning
# true = prefer "x ?? y" instead of "x != null ? x : y"
dotnet_style_coalesce_expression = true:suggestion
# true = prefer "o?.ToString()" instead of "o != null ? o.ToString() : null"
dotnet_style_null_propagation = true:suggestion
# false = prefer "int x = 5" instead of "var x = 5"
csharp_style_var_for_built_in_types = false:suggestion
# true = prefer "var x = " when the type of x is apparent (usually because RHS specifies type directly)
csharp_style_var_when_type_is_apparent = true:suggestion
# false = prefer not to use "var" unless one of the above says otherwise
csharp_style_var_elsewhere = false:suggestion
# true = prefer expression bodied methods (when possible)
csharp_style_expression_bodied_methods = true:suggestion
csharp_style_expression_bodied_constructors = true:suggestion
csharp_style_expression_bodied_operators = true:suggestion
csharp_style_expression_bodied_properties = true:suggestion
csharp_style_expression_bodied_indexers = true:suggestion
# false = prefer older style get { ... } and set { ... } when accessors are necessary
csharp_style_expression_bodied_accessors = false:suggestion
# true = prefer new syntax for pattern matching when possible
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
# true = prefer new inline variable declarations if possible
csharp_style_inlined_variable_declaration = true:suggestion
# true = prefer new throw syntax when possible
csharp_style_throw_expression = true:suggestion
# true = prefer "func?.Invoke()" instead of "if (func != null) func();"
csharp_style_conditional_delegate_call = true:suggestion
[*.xml, *.js, *.css]
# Tabs and indentation
indent_style = space
indent_size = 2
tab_width = 2