|
1 |
| -############################### |
2 |
| -# Core EditorConfig Options # |
3 |
| -############################### |
| 1 | +############################### |
| 2 | +# Core EditorConfig Options # |
| 3 | +############################### |
4 | 4 |
|
5 | 5 | root = true
|
6 | 6 |
|
7 | 7 | # All files
|
8 | 8 |
|
9 |
| -[*] |
| 9 | +[*] |
10 | 10 | end_of_line = crlf
|
11 | 11 | indent_size = 4
|
12 |
| -indent_style = space |
| 12 | +indent_style = space |
13 | 13 | insert_final_newline = true
|
14 | 14 | trim_trailing_whitespace = true
|
15 | 15 |
|
16 | 16 | [*.{csproj,json,props,ruleset,targets}]
|
17 | 17 | indent_size = 2
|
18 | 18 |
|
19 |
| -# Code files |
20 |
| - |
21 |
| -[*.{cs,csx,vb,vbx}] |
22 |
| -charset = utf-8-bom |
23 |
| - |
24 |
| -############################### |
25 |
| -# .NET Coding Conventions # |
26 |
| -############################### |
27 |
| - |
28 |
| -[*.{cs,vb}] |
29 |
| - |
30 |
| -# Organize usings |
31 |
| -dotnet_sort_system_directives_first = true |
32 |
| - |
33 |
| -# this. preferences |
34 |
| -dotnet_style_qualification_for_field = false:silent |
35 |
| -dotnet_style_qualification_for_property = false:silent |
36 |
| -dotnet_style_qualification_for_method = false:silent |
37 |
| -dotnet_style_qualification_for_event = false:silent |
38 |
| - |
39 |
| -# Language keywords vs BCL types preferences |
40 |
| -dotnet_style_predefined_type_for_locals_parameters_members = true:silent |
41 |
| -dotnet_style_predefined_type_for_member_access = true:silent |
42 |
| - |
43 |
| -# Parentheses preferences |
44 |
| -dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent |
45 |
| -dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent |
46 |
| -dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent |
47 |
| -dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent |
48 |
| - |
49 |
| -# Modifier preferences |
50 |
| -dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent |
51 |
| -dotnet_style_readonly_field = true:suggestion |
52 |
| - |
53 |
| -# Expression-level preferences |
54 |
| -dotnet_style_object_initializer = true:suggestion |
55 |
| -dotnet_style_collection_initializer = true:suggestion |
56 |
| -dotnet_style_explicit_tuple_names = true:suggestion |
57 |
| -dotnet_style_null_propagation = true:suggestion |
58 |
| -dotnet_style_coalesce_expression = true:suggestion |
59 |
| -dotnet_style_prefer_is_null_check_over_reference_equality_method = true:silent |
60 |
| -dotnet_prefer_inferred_tuple_names = true:suggestion |
61 |
| -dotnet_prefer_inferred_anonymous_type_member_names = true:suggestion |
62 |
| -dotnet_style_prefer_auto_properties = true:silent |
63 |
| -dotnet_style_prefer_conditional_expression_over_assignment = true:silent |
64 |
| -dotnet_style_prefer_conditional_expression_over_return = true:silent |
65 |
| - |
66 |
| -############################### |
67 |
| -# Naming Conventions # |
68 |
| -############################### |
69 |
| - |
70 |
| -# Style Definitions |
71 |
| -dotnet_naming_style.pascal_case_style.capitalization = pascal_case |
72 |
| - |
73 |
| -# Use PascalCase for constant fields |
74 |
| -dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion |
75 |
| -dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields |
76 |
| -dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style |
77 |
| -dotnet_naming_symbols.constant_fields.applicable_kinds = field |
78 |
| -dotnet_naming_symbols.constant_fields.applicable_accessibilities = * |
79 |
| -dotnet_naming_symbols.constant_fields.required_modifiers = const |
80 |
| - |
81 |
| -############################### |
82 |
| -# C# Coding Conventions # |
83 |
| -############################### |
84 |
| - |
85 |
| -[*.cs] |
86 |
| - |
87 |
| -# var preferences |
88 |
| -csharp_style_var_for_built_in_types = false:suggestion |
89 |
| -csharp_style_var_when_type_is_apparent = true:silent |
90 |
| -csharp_style_var_elsewhere = true:silent |
91 |
| - |
92 |
| -# Expression-bodied members |
93 |
| -csharp_style_expression_bodied_methods = false:silent |
94 |
| -csharp_style_expression_bodied_constructors = false:silent |
95 |
| -csharp_style_expression_bodied_operators = false:silent |
96 |
| -csharp_style_expression_bodied_properties = true:silent |
97 |
| -csharp_style_expression_bodied_indexers = true:silent |
98 |
| -csharp_style_expression_bodied_accessors = true:silent |
99 |
| - |
100 |
| -# Pattern matching preferences |
101 |
| -csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion |
102 |
| -csharp_style_pattern_matching_over_as_with_null_check = true:suggestion |
103 |
| - |
104 |
| -# Null-checking preferences |
105 |
| -csharp_style_throw_expression = true:suggestion |
106 |
| -csharp_style_conditional_delegate_call = true:suggestion |
107 |
| - |
108 |
| -# Modifier preferences |
109 |
| -csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion |
110 |
| - |
111 |
| -# Expression-level preferences |
112 |
| -csharp_prefer_braces = true:silent |
113 |
| -csharp_style_deconstructed_variable_declaration = true:suggestion |
114 |
| -csharp_prefer_simple_default_expression = true:suggestion |
115 |
| -csharp_style_pattern_local_over_anonymous_function = true:suggestion |
116 |
| -csharp_style_inlined_variable_declaration = true:suggestion |
117 |
| - |
118 |
| -############################### |
119 |
| -# C# Formatting Rules # |
120 |
| -############################### |
121 |
| - |
122 |
| -# New line preferences |
123 |
| -csharp_new_line_before_open_brace = all |
124 |
| -csharp_new_line_before_else = true |
125 |
| -csharp_new_line_before_catch = true |
126 |
| -csharp_new_line_before_finally = true |
127 |
| -csharp_new_line_before_members_in_object_initializers = true |
128 |
| -csharp_new_line_before_members_in_anonymous_types = true |
129 |
| -csharp_new_line_between_query_expression_clauses = true |
130 |
| - |
131 |
| -# Indentation preferences |
132 |
| -csharp_indent_case_contents = true |
133 |
| -csharp_indent_switch_labels = true |
134 |
| -csharp_indent_labels = flush_left |
135 |
| - |
136 |
| -# Space preferences |
137 |
| -csharp_space_after_cast = false |
138 |
| -csharp_space_after_keywords_in_control_flow_statements = true |
139 |
| -csharp_space_between_method_call_parameter_list_parentheses = false |
140 |
| -csharp_space_between_method_declaration_parameter_list_parentheses = false |
141 |
| -csharp_space_between_parentheses = false |
142 |
| -csharp_space_before_colon_in_inheritance_clause = true |
143 |
| -csharp_space_after_colon_in_inheritance_clause = true |
144 |
| -csharp_space_around_binary_operators = before_and_after |
145 |
| -csharp_space_between_method_declaration_empty_parameter_list_parentheses = false |
146 |
| -csharp_space_between_method_call_name_and_opening_parenthesis = false |
147 |
| -csharp_space_between_method_call_empty_parameter_list_parentheses = false |
148 |
| - |
149 |
| -# Wrapping preferences |
150 |
| -csharp_preserve_single_line_statements = true |
151 |
| -csharp_preserve_single_line_blocks = true |
| 19 | +# Code files |
| 20 | + |
| 21 | +[*.{cs,csx,vb,vbx}] |
| 22 | +charset = utf-8-bom |
| 23 | + |
| 24 | +############################### |
| 25 | +# .NET Coding Conventions # |
| 26 | +############################### |
| 27 | + |
| 28 | +[*.{cs,vb}] |
| 29 | + |
| 30 | +# Organize usings |
| 31 | +dotnet_sort_system_directives_first = true |
| 32 | + |
| 33 | +# this. preferences |
| 34 | +dotnet_style_qualification_for_field = false:silent |
| 35 | +dotnet_style_qualification_for_property = false:silent |
| 36 | +dotnet_style_qualification_for_method = false:silent |
| 37 | +dotnet_style_qualification_for_event = false:silent |
| 38 | + |
| 39 | +# Language keywords vs BCL types preferences |
| 40 | +dotnet_style_predefined_type_for_locals_parameters_members = true:silent |
| 41 | +dotnet_style_predefined_type_for_member_access = true:silent |
| 42 | + |
| 43 | +# Parentheses preferences |
| 44 | +dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent |
| 45 | +dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent |
| 46 | +dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent |
| 47 | +dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent |
| 48 | + |
| 49 | +# Modifier preferences |
| 50 | +dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent |
| 51 | +dotnet_style_readonly_field = true:suggestion |
| 52 | + |
| 53 | +# Expression-level preferences |
| 54 | +dotnet_style_object_initializer = true:suggestion |
| 55 | +dotnet_style_collection_initializer = true:suggestion |
| 56 | +dotnet_style_explicit_tuple_names = true:suggestion |
| 57 | +dotnet_style_null_propagation = true:suggestion |
| 58 | +dotnet_style_coalesce_expression = true:suggestion |
| 59 | +dotnet_style_prefer_is_null_check_over_reference_equality_method = true:silent |
| 60 | +dotnet_prefer_inferred_tuple_names = true:suggestion |
| 61 | +dotnet_prefer_inferred_anonymous_type_member_names = true:suggestion |
| 62 | +dotnet_style_prefer_auto_properties = true:silent |
| 63 | +dotnet_style_prefer_conditional_expression_over_assignment = true:silent |
| 64 | +dotnet_style_prefer_conditional_expression_over_return = true:silent |
| 65 | + |
| 66 | +############################### |
| 67 | +# Naming Conventions # |
| 68 | +############################### |
| 69 | + |
| 70 | +# Style Definitions |
| 71 | +dotnet_naming_style.pascal_case_style.capitalization = pascal_case |
| 72 | + |
| 73 | +# Use PascalCase for constant fields |
| 74 | +dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion |
| 75 | +dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields |
| 76 | +dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style |
| 77 | +dotnet_naming_symbols.constant_fields.applicable_kinds = field |
| 78 | +dotnet_naming_symbols.constant_fields.applicable_accessibilities = * |
| 79 | +dotnet_naming_symbols.constant_fields.required_modifiers = const |
| 80 | + |
| 81 | +############################### |
| 82 | +# C# Coding Conventions # |
| 83 | +############################### |
| 84 | + |
| 85 | +[*.cs] |
| 86 | + |
| 87 | +# var preferences |
| 88 | +csharp_style_var_for_built_in_types = false:suggestion |
| 89 | +csharp_style_var_when_type_is_apparent = true:silent |
| 90 | +csharp_style_var_elsewhere = true:silent |
| 91 | + |
| 92 | +# Expression-bodied members |
| 93 | +csharp_style_expression_bodied_methods = false:silent |
| 94 | +csharp_style_expression_bodied_constructors = false:silent |
| 95 | +csharp_style_expression_bodied_operators = false:silent |
| 96 | +csharp_style_expression_bodied_properties = true:silent |
| 97 | +csharp_style_expression_bodied_indexers = true:silent |
| 98 | +csharp_style_expression_bodied_accessors = true:silent |
| 99 | + |
| 100 | +# Pattern matching preferences |
| 101 | +csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion |
| 102 | +csharp_style_pattern_matching_over_as_with_null_check = true:suggestion |
| 103 | + |
| 104 | +# Null-checking preferences |
| 105 | +csharp_style_throw_expression = true:suggestion |
| 106 | +csharp_style_conditional_delegate_call = true:suggestion |
| 107 | + |
| 108 | +# Modifier preferences |
| 109 | +csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion |
| 110 | + |
| 111 | +# Expression-level preferences |
| 112 | +csharp_prefer_braces = true:silent |
| 113 | +csharp_style_deconstructed_variable_declaration = true:suggestion |
| 114 | +csharp_prefer_simple_default_expression = true:suggestion |
| 115 | +csharp_style_pattern_local_over_anonymous_function = true:suggestion |
| 116 | +csharp_style_inlined_variable_declaration = true:suggestion |
| 117 | + |
| 118 | +# Namespace preferences |
| 119 | +csharp_style_namespace_declarations = file_scoped:warning |
| 120 | + |
| 121 | +############################### |
| 122 | +# C# Formatting Rules # |
| 123 | +############################### |
| 124 | + |
| 125 | +# New line preferences |
| 126 | +csharp_new_line_before_open_brace = all |
| 127 | +csharp_new_line_before_else = true |
| 128 | +csharp_new_line_before_catch = true |
| 129 | +csharp_new_line_before_finally = true |
| 130 | +csharp_new_line_before_members_in_object_initializers = true |
| 131 | +csharp_new_line_before_members_in_anonymous_types = true |
| 132 | +csharp_new_line_between_query_expression_clauses = true |
| 133 | + |
| 134 | +# Indentation preferences |
| 135 | +csharp_indent_case_contents = true |
| 136 | +csharp_indent_switch_labels = true |
| 137 | +csharp_indent_labels = flush_left |
| 138 | + |
| 139 | +# Space preferences |
| 140 | +csharp_space_after_cast = false |
| 141 | +csharp_space_after_keywords_in_control_flow_statements = true |
| 142 | +csharp_space_between_method_call_parameter_list_parentheses = false |
| 143 | +csharp_space_between_method_declaration_parameter_list_parentheses = false |
| 144 | +csharp_space_between_parentheses = false |
| 145 | +csharp_space_before_colon_in_inheritance_clause = true |
| 146 | +csharp_space_after_colon_in_inheritance_clause = true |
| 147 | +csharp_space_around_binary_operators = before_and_after |
| 148 | +csharp_space_between_method_declaration_empty_parameter_list_parentheses = false |
| 149 | +csharp_space_between_method_call_name_and_opening_parenthesis = false |
| 150 | +csharp_space_between_method_call_empty_parameter_list_parentheses = false |
| 151 | + |
| 152 | +# Wrapping preferences |
| 153 | +csharp_preserve_single_line_statements = true |
| 154 | +csharp_preserve_single_line_blocks = true |
0 commit comments