-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.editorconfig
More file actions
131 lines (124 loc) · 5.6 KB
/
.editorconfig
File metadata and controls
131 lines (124 loc) · 5.6 KB
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
root = true
[*]
# Default properties
charset = utf-8
end_of_line = crlf
trim_trailing_whitespace = false
insert_final_newline = false
[*settings.json]
# Configuration file properties
indent_style = space
indent_size = 2
[{*.csproj,*.slnx,*.sln,*.Build.props}]
# Project file properties
indent_style = space
indent_size = 2
ij_xml_space_inside_empty_tag = true
[{*.cs,*.cshtml,*.razor}]
# CSharp file properties
trim_trailing_whitespace = true
insert_final_newline = true
indent_size = 4
max_line_length = 120
# CSharp style rules
csharp_keep_blank_lines_in_code = 1
csharp_keep_blank_lines_in_declarations = 1
csharp_blank_lines_after_multiline_statements = 1
csharp_blank_lines_after_block_statements = 1
csharp_blank_lines_after_case = 0
csharp_blank_lines_after_control_transfer_statements = 0
csharp_blank_lines_after_file_scoped_namespace_directive = 1
csharp_blank_lines_after_start_comment = 1
csharp_blank_lines_after_using_list = 1
csharp_blank_lines_around_accessor = 1
csharp_blank_lines_around_auto_property = 1
csharp_blank_lines_around_block_case_section = 1
csharp_blank_lines_around_field = 1
csharp_blank_lines_around_invocable = 1
csharp_blank_lines_around_local_method = 1
csharp_blank_lines_around_multiline_case_section = 0
csharp_blank_lines_around_namespace = 1
csharp_blank_lines_around_property = 1
csharp_blank_lines_around_region = 1
csharp_blank_lines_around_single_line_accessor = 0
csharp_blank_lines_around_single_line_auto_property = 1
csharp_blank_lines_around_single_line_field = 0
csharp_blank_lines_around_single_line_invocable = 0
csharp_blank_lines_around_single_line_local_method = 1
csharp_blank_lines_around_single_line_property = 0
csharp_blank_lines_around_single_line_type = 1
csharp_blank_lines_around_type = 1
csharp_blank_lines_inside_region = 0
csharp_blank_lines_inside_type = 0
csharp_blank_lines_before_case = 0
csharp_blank_lines_before_block_statements = 1
csharp_blank_lines_before_control_transfer_statements = 1
csharp_blank_lines_before_multiline_statements = 1
csharp_remove_blank_lines_near_braces_in_code = true
csharp_remove_blank_lines_near_braces_in_declarations = true
csharp_braces_for_ifelse = not_required_for_both # actually behaves as `required for either`
csharp_braces_for_using = required_for_multiline
csharp_braces_for_while = required_for_multiline
csharp_empty_block_style = together_same_line
csharp_indent_preprocessor_if = usual_indent
csharp_instance_members_qualify_declared_in = base_class
csharp_keep_existing_declaration_parens_arrangement = false
csharp_keep_existing_embedded_arrangement = false
csharp_keep_existing_expr_member_arrangement = false
csharp_keep_existing_invocation_parens_arrangement = false
csharp_keep_existing_linebreaks = false
csharp_keep_existing_list_patterns_arrangement = false
csharp_keep_existing_primary_constructor_declaration_parens_arrangement = false
csharp_keep_existing_property_patterns_arrangement = false
csharp_nested_ternary_style = expanded
csharp_new_line_before_members_in_object_initializers = true
csharp_object_creation_when_type_not_evident = target_typed
csharp_place_accessorholder_attribute_on_same_line = false
csharp_place_expr_method_on_single_line = false
csharp_place_simple_embedded_statement_on_same_line = false
csharp_place_simple_list_pattern_on_single_line = true
csharp_place_type_constraints_on_same_line = false
csharp_preferred_modifier_order = public, private, protected, internal, file, new, static, abstract, virtual, sealed, readonly, override, extern, unsafe, volatile, async, required:suggestion
csharp_style_expression_bodied_accessors = true:suggestion
csharp_style_expression_bodied_methods = true:none
csharp_style_expression_bodied_properties = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_trailing_comma_in_multiline_lists = true
csharp_trailing_comma_in_singleline_lists = false
csharp_wrap_array_initializer_style = chop_if_long
csharp_wrap_after_declaration_lpar = true
csharp_wrap_after_property_in_chained_method_calls = true
csharp_wrap_arguments_style = chop_if_long
csharp_wrap_before_first_method_call = true
csharp_wrap_before_primary_constructor_declaration_rpar = true
csharp_wrap_chained_binary_expressions = chop_if_long
csharp_wrap_chained_binary_patterns = chop_if_long
csharp_wrap_chained_method_calls = chop_always
csharp_wrap_extends_list_style = chop_if_long
csharp_wrap_list_pattern = chop_if_long
csharp_wrap_multiple_type_parameter_constraints_style = chop_always
csharp_wrap_object_and_collection_initializer_style = chop_always
csharp_wrap_parameters_style = chop_if_long
csharp_wrap_ternary_expr_style = chop_always
# .NET style rules
dotnet_style_parentheses_in_arithmetic_binary_operators = never_if_unnecessary:none
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:none
dotnet_style_parentheses_in_relational_binary_operators = never_if_unnecessary:none
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
dotnet_style_predefined_type_for_member_access = true:suggestion
dotnet_style_qualification_for_event = false:suggestion
dotnet_style_qualification_for_field = false:suggestion
dotnet_style_qualification_for_method = false:suggestion
dotnet_style_qualification_for_property = false:suggestion
dotnet_style_require_accessibility_modifiers = for_non_interface_members:suggestion
dotnet_style_prefer_collection_expression = true
dotnet_separate_import_directive_groups = false
dotnet_sort_system_directives_first = true
[*.{received,verified}.{txt,xml,json}]
# Verify settings
end_of_line = lf
indent_size = unset
indent_style = unset
tab_width = unset