Skip to content

Commit fb7da97

Browse files
committed
added editorConfig
1 parent 8e0b8db commit fb7da97

File tree

1 file changed

+347
-0
lines changed

1 file changed

+347
-0
lines changed

.editorconfig

+347
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,347 @@
1+
# top-most EditorConfig file
2+
root = true
3+
4+
# C# files
5+
[*]
6+
7+
#### Core EditorConfig Options ####
8+
9+
# Indentation and spacing
10+
indent_size = 2
11+
indent_style = space
12+
tab_width = 1
13+
14+
# New line preferences
15+
end_of_line = lf
16+
insert_final_newline = true:error
17+
18+
#### .NET Coding Conventions ####
19+
20+
# Organize usings
21+
dotnet_separate_import_directive_groups = true:error
22+
dotnet_sort_system_directives_first = true:error
23+
file_header_template = unset
24+
25+
# this. and Me. preferences
26+
dotnet_style_qualification_for_event = false:error
27+
dotnet_style_qualification_for_field = false:error
28+
dotnet_style_qualification_for_method = false:error
29+
dotnet_style_qualification_for_property = false:error
30+
31+
# Language keywords vs BCL types preferences
32+
dotnet_style_predefined_type_for_locals_parameters_members = true:error
33+
dotnet_style_predefined_type_for_member_access = true:error
34+
35+
# Parentheses preferences
36+
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:error
37+
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:error
38+
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:error
39+
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:error
40+
41+
# Modifier preferences
42+
dotnet_style_require_accessibility_modifiers = for_non_interface_members:error
43+
44+
# Expression-level preferences
45+
dotnet_style_coalesce_expression = true:error
46+
dotnet_style_collection_initializer = true:error
47+
dotnet_style_explicit_tuple_names = true:error
48+
dotnet_style_namespace_match_folder = true:error
49+
dotnet_style_null_propagation = true:error
50+
dotnet_style_object_initializer = true:error
51+
dotnet_style_operator_placement_when_wrapping = beginning_of_line:error
52+
dotnet_style_prefer_auto_properties = true:error
53+
dotnet_style_prefer_compound_assignment = true:error
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:error
57+
dotnet_style_prefer_inferred_anonymous_type_member_names = true:error
58+
dotnet_style_prefer_inferred_tuple_names = true:error
59+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:error
60+
dotnet_style_prefer_simplified_boolean_expressions = true:error
61+
dotnet_style_prefer_simplified_interpolation = true:error
62+
63+
# Field preferences
64+
dotnet_style_readonly_field = true:suggestion
65+
66+
# Parameter preferences
67+
dotnet_code_quality_unused_parameters = all:error
68+
69+
# Suppression preferences
70+
dotnet_remove_unnecessary_suppression_exclusions = none:error
71+
72+
# New line preferences
73+
dotnet_style_allow_multiple_blank_lines_experimental = true:error
74+
dotnet_style_allow_statement_immediately_after_block_experimental = true:error
75+
76+
#### C# Coding Conventions ####
77+
78+
# var preferences
79+
csharp_style_var_elsewhere = false:error
80+
csharp_style_var_for_built_in_types = false:error
81+
csharp_style_var_when_type_is_apparent = true:error
82+
83+
# Expression-bodied members
84+
csharp_style_expression_bodied_accessors = true:error
85+
csharp_style_expression_bodied_constructors = false:error
86+
csharp_style_expression_bodied_indexers = true:error
87+
csharp_style_expression_bodied_lambdas = true:error
88+
csharp_style_expression_bodied_local_functions = false:error
89+
csharp_style_expression_bodied_methods = false:error
90+
csharp_style_expression_bodied_operators = false:error
91+
csharp_style_expression_bodied_properties = true:error
92+
93+
# Pattern matching preferences
94+
csharp_style_pattern_matching_over_as_with_null_check = true:error
95+
csharp_style_pattern_matching_over_is_with_cast_check = true:error
96+
csharp_style_prefer_extended_property_pattern = true:error
97+
csharp_style_prefer_not_pattern = true:error
98+
csharp_style_prefer_pattern_matching = true:error
99+
csharp_style_prefer_switch_expression = true:error
100+
101+
# Null-checking preferences
102+
csharp_style_conditional_delegate_call = true:error
103+
104+
# Modifier preferences
105+
csharp_prefer_static_local_function = true:error
106+
csharp_preferred_modifier_order = public,private,protected,internal,file,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,required,volatile,async
107+
csharp_style_prefer_readonly_struct = true:error
108+
109+
# Code-block preferences
110+
csharp_prefer_braces = true:error
111+
csharp_prefer_simple_using_statement = true:error
112+
csharp_style_namespace_declarations = block_scoped:error
113+
csharp_style_prefer_method_group_conversion = true:error
114+
csharp_style_prefer_top_level_statements = true:error
115+
116+
# Expression-level preferences
117+
csharp_prefer_simple_default_expression = true:error
118+
csharp_style_deconstructed_variable_declaration = true:error
119+
csharp_style_implicit_object_creation_when_type_is_apparent = true:error
120+
csharp_style_inlined_variable_declaration = true:error
121+
csharp_style_prefer_index_operator = true:error
122+
csharp_style_prefer_local_over_anonymous_function = true:error
123+
csharp_style_prefer_null_check_over_type_check = true:error
124+
csharp_style_prefer_range_operator = true:error
125+
csharp_style_prefer_tuple_swap = true:error
126+
csharp_style_prefer_utf8_string_literals = true:error
127+
csharp_style_throw_expression = true:error
128+
csharp_style_unused_value_assignment_preference = discard_variable:none
129+
csharp_style_unused_value_expression_statement_preference = discard_variable:none
130+
131+
# 'using' directive preferences
132+
csharp_using_directive_placement = outside_namespace:error
133+
134+
# New line preferences
135+
csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = true:error
136+
csharp_style_allow_blank_lines_between_consecutive_braces_experimental = true:error
137+
csharp_style_allow_embedded_statements_on_same_line_experimental = true:error
138+
139+
#### C# Formatting Rules ####
140+
141+
# New line preferences
142+
csharp_new_line_before_open_brace = none:error
143+
csharp_new_line_before_catch = false:error
144+
csharp_new_line_before_else = false:error
145+
csharp_new_line_before_finally = false:error
146+
csharp_new_line_before_members_in_anonymous_types = false:error
147+
csharp_new_line_before_members_in_object_initializers = false:error
148+
csharp_new_line_between_query_expression_clauses = false:error
149+
150+
# Indentation preferences
151+
csharp_indent_block_contents = true:error
152+
csharp_indent_braces = false:error
153+
csharp_indent_case_contents = true:error
154+
csharp_indent_case_contents_when_block = true:error
155+
csharp_indent_labels = one_less_than_current:error
156+
csharp_indent_switch_labels = true:error
157+
158+
# Space preferences
159+
csharp_space_after_cast = false:error
160+
csharp_space_after_colon_in_inheritance_clause = true:error
161+
csharp_space_after_comma = true:error
162+
csharp_space_after_dot = false:error
163+
csharp_space_after_keywords_in_control_flow_statements = true:error
164+
csharp_space_after_semicolon_in_for_statement = true:error
165+
csharp_space_around_binary_operators = before_and_after:error
166+
csharp_space_around_declaration_statements = false:error
167+
csharp_space_before_colon_in_inheritance_clause = true:error
168+
csharp_space_before_comma = false:error
169+
csharp_space_before_dot = false:error
170+
csharp_space_before_open_square_brackets = false:error
171+
csharp_space_before_semicolon_in_for_statement = false:error
172+
csharp_space_between_empty_square_brackets = false:error
173+
csharp_space_between_method_call_empty_parameter_list_parentheses = false:error
174+
csharp_space_between_method_call_name_and_opening_parenthesis = false:error
175+
csharp_space_between_method_call_parameter_list_parentheses = false:error
176+
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false:error
177+
csharp_space_between_method_declaration_name_and_open_parenthesis = false:error
178+
csharp_space_between_method_declaration_parameter_list_parentheses = false:error
179+
csharp_space_between_parentheses = false:error
180+
csharp_space_between_square_brackets = false:error
181+
182+
# Wrapping preferences
183+
csharp_preserve_single_line_blocks = true
184+
csharp_preserve_single_line_statements = true
185+
186+
#### Naming styles ####
187+
188+
# Naming rules
189+
190+
dotnet_naming_rule.interface_should_be_begins_with_i.severity = error
191+
dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
192+
dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
193+
194+
dotnet_naming_rule.types_should_be_pascal_case.severity = error
195+
dotnet_naming_rule.types_should_be_pascal_case.symbols = types
196+
dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
197+
198+
dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = error
199+
dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
200+
dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
201+
202+
# Symbol specifications
203+
204+
dotnet_naming_symbols.interface.applicable_kinds = interface
205+
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
206+
dotnet_naming_symbols.interface.required_modifiers =
207+
208+
dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
209+
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
210+
dotnet_naming_symbols.types.required_modifiers =
211+
212+
dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
213+
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
214+
dotnet_naming_symbols.non_field_members.required_modifiers =
215+
216+
# Naming styles
217+
218+
dotnet_naming_style.pascal_case.required_prefix =
219+
dotnet_naming_style.pascal_case.required_suffix =
220+
dotnet_naming_style.pascal_case.word_separator =
221+
dotnet_naming_style.pascal_case.capitalization = pascal_case
222+
223+
dotnet_naming_style.begins_with_i.required_prefix = I
224+
dotnet_naming_style.begins_with_i.required_suffix =
225+
dotnet_naming_style.begins_with_i.word_separator =
226+
dotnet_naming_style.begins_with_i.capitalization = pascal_case
227+
228+
# ReSharper properties
229+
230+
resharper_csharp_insert_final_newline = true
231+
resharper_align_linq_query = false
232+
resharper_align_multiline_argument = false
233+
resharper_align_multiline_binary_expressions_chain = false
234+
resharper_align_multiline_calls_chain = false
235+
resharper_align_multiline_extends_list = false
236+
resharper_align_multiline_for_stmt = false
237+
resharper_align_multiline_parameter = false
238+
resharper_align_multiline_statement_conditions = false
239+
resharper_align_multiple_declaration = false
240+
resharper_align_multline_type_parameter_constrains = false
241+
resharper_csharp_align_multiline_argument = false
242+
resharper_csharp_align_multiline_parameter = false
243+
resharper_csharp_align_multiple_declaration = false
244+
resharper_align_tuple_components = false
245+
resharper_blank_lines_after_file_scoped_namespace_directive = 0
246+
resharper_blank_lines_around_auto_property = 0
247+
resharper_blank_lines_around_property = 0
248+
resharper_blank_lines_around_single_line_type = 0
249+
resharper_allow_comment_after_lbrace = true
250+
resharper_apply_auto_detected_rules = false
251+
resharper_apply_on_completion = true
252+
resharper_autodetect_indent_settings = true
253+
resharper_braces_for_for = required
254+
resharper_braces_for_foreach = required
255+
resharper_braces_for_ifelse = required
256+
resharper_braces_for_while = required
257+
resharper_csharp_keep_blank_lines_in_code = 1
258+
resharper_csharp_keep_blank_lines_in_declarations = 1
259+
resharper_csharp_max_line_length = 100
260+
resharper_csharp_wrap_arguments_style = wrap_if_long
261+
resharper_csharp_wrap_before_binary_opsign = true
262+
resharper_csharp_wrap_multiple_declaration_style = chop_always
263+
resharper_empty_block_style = together_same_line
264+
resharper_enforce_line_ending_style = true
265+
resharper_indent_braces_inside_statement_conditions = false
266+
resharper_indent_nested_fixed_stmt = true
267+
resharper_indent_nested_foreach_stmt = true
268+
resharper_indent_nested_for_stmt = true
269+
resharper_indent_nested_lock_stmt = true
270+
resharper_indent_nested_usings_stmt = true
271+
resharper_indent_nested_while_stmt = true
272+
resharper_keep_existing_declaration_parens_arrangement = false
273+
resharper_keep_existing_embedded_arrangement = false
274+
resharper_keep_existing_expr_member_arrangement = false
275+
resharper_keep_existing_initializer_arrangement = false
276+
resharper_keep_existing_invocation_parens_arrangement = false
277+
resharper_keep_existing_linebreaks = false
278+
resharper_keep_existing_embedded_block_arrangement = false
279+
resharper_keep_existing_list_patterns_arrangement = false
280+
resharper_keep_existing_property_patterns_arrangement = false
281+
resharper_keep_existing_switch_expression_arrangement = false
282+
resharper_max_attribute_length_for_same_line = 100
283+
resharper_max_array_initializer_elements_on_line = 1
284+
resharper_max_enum_members_on_line = 1
285+
resharper_max_formal_parameters_on_line = 30
286+
resharper_max_initializer_elements_on_line = 1
287+
resharper_wrap_arguments_style = wrap_if_long
288+
resharper_max_invocation_arguments_on_line = 30
289+
resharper_nested_ternary_style = expanded
290+
resharper_outdent_dots = true
291+
resharper_place_simple_anonymousmethod_on_single_line = false
292+
resharper_place_simple_case_statement_on_same_line = if_owner_is_single_line
293+
resharper_place_simple_embedded_statement_on_same_line = false
294+
resharper_place_simple_enum_on_single_line = true
295+
resharper_place_simple_initializer_on_single_line = false
296+
resharper_place_simple_method_on_single_line = true
297+
resharper_show_autodetect_configure_formatting_tip = false
298+
resharper_trailing_comma_in_multiline_lists = true
299+
resharper_trailing_comma_in_singleline_lists = true
300+
resharper_use_continuous_indent_inside_initializer_braces = false
301+
resharper_use_roslyn_logic_for_evident_types = true
302+
resharper_wrap_after_declaration_lpar = true
303+
resharper_wrap_array_initializer_style = chop_if_long
304+
resharper_wrap_before_arrow_with_expressions = true
305+
resharper_wrap_before_eq = true
306+
resharper_wrap_chained_binary_expressions = wrap_if_long
307+
resharper_wrap_chained_binary_patterns = wrap_if_long
308+
resharper_wrap_for_stmt_header_style = wrap_if_long
309+
resharper_wrap_extends_list_style = wrap_if_long
310+
resharper_wrap_list_pattern = wrap_if_long
311+
resharper_wrap_multiple_type_parameter_constraints_style = wrap_if_long
312+
resharper_wrap_parameters_style = wrap_if_long
313+
resharper_wrap_ternary_expr_style = wrap_if_long
314+
resharper_wrap_before_ternary_opsigns = false
315+
316+
# ReSharper inspection severities
317+
resharper_arrange_constructor_or_destructor_body_highlighting = suggestion
318+
resharper_arrange_local_function_body_highlighting = suggestion
319+
resharper_arrange_method_or_operator_body_highlighting = suggestion
320+
resharper_arrange_redundant_parentheses_highlighting = hint
321+
resharper_arrange_this_qualifier_highlighting = hint
322+
resharper_arrange_type_member_modifiers_highlighting = hint
323+
resharper_arrange_type_modifiers_highlighting = hint
324+
resharper_built_in_type_reference_style_for_member_access_highlighting = hint
325+
resharper_built_in_type_reference_style_highlighting = hint
326+
resharper_check_namespace_highlighting = hint
327+
resharper_comment_typo_highlighting = hint
328+
resharper_enforce_do_while_statement_braces_highlighting = error
329+
resharper_enforce_fixed_statement_braces_highlighting = error
330+
resharper_enforce_foreach_statement_braces_highlighting = error
331+
resharper_enforce_for_statement_braces_highlighting = error
332+
resharper_enforce_if_statement_braces_highlighting = error
333+
resharper_enforce_lock_statement_braces_highlighting = error
334+
resharper_enforce_using_statement_braces_highlighting = error
335+
resharper_enforce_while_statement_braces_highlighting = error
336+
resharper_inconsistent_naming_highlighting = none
337+
resharper_redundant_base_qualifier_highlighting = warning
338+
resharper_suggest_var_or_type_built_in_types_highlighting = hint
339+
resharper_suggest_var_or_type_elsewhere_highlighting = hint
340+
resharper_suggest_var_or_type_simple_types_highlighting = hint
341+
resharper_csharp_blank_lines_around_field = 0
342+
resharper_csharp_int_align_fix_in_adjacent = false
343+
resharper_csharp_use_indent_from_vs = true
344+
resharper_place_field_attribute_on_same_line = if_owner_is_single_line
345+
resharper_place_linq_into_on_new_line = false
346+
resharper_remove_blank_lines_near_braces_in_declarations = false
347+
resharper_alignment_tab_fill_style = use_spaces

0 commit comments

Comments
 (0)