-
Notifications
You must be signed in to change notification settings - Fork 0
/
.editorconfig
272 lines (210 loc) · 13.6 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
[*.cs]
# IDE0011: Add braces
csharp_prefer_braces = when_multiline:silent
[*.cs]
#### Naming styles ####
# Naming rules
dotnet_naming_rule.class_should_be_pascalcase.severity = warning
dotnet_naming_rule.class_should_be_pascalcase.symbols = class
dotnet_naming_rule.class_should_be_pascalcase.style = pascalcase
dotnet_naming_rule.interface_should_be_istartuppercase_i_.severity = suggestion
dotnet_naming_rule.interface_should_be_istartuppercase_i_.symbols = interface
dotnet_naming_rule.interface_should_be_istartuppercase_i_.style = istartuppercase_i_
dotnet_naming_rule.struct_should_be_pascalcase.severity = warning
dotnet_naming_rule.struct_should_be_pascalcase.symbols = struct
dotnet_naming_rule.struct_should_be_pascalcase.style = pascalcase
dotnet_naming_rule.enum_should_be__eall_upper_starts_with_e.severity = suggestion
dotnet_naming_rule.enum_should_be__eall_upper_starts_with_e.symbols = enum
dotnet_naming_rule.enum_should_be__eall_upper_starts_with_e.style = _eall_upper_starts_with_e
dotnet_naming_rule.delegate_should_be_typedelegateendswith_delegate.severity = suggestion
dotnet_naming_rule.delegate_should_be_typedelegateendswith_delegate.symbols = delegate
dotnet_naming_rule.delegate_should_be_typedelegateendswith_delegate.style = typedelegateendswith_delegate
dotnet_naming_rule.method_should_be_pascalcase.severity = suggestion
dotnet_naming_rule.method_should_be_pascalcase.symbols = method
dotnet_naming_rule.method_should_be_pascalcase.style = pascalcase
dotnet_naming_rule.property_should_be_pascalcase.severity = suggestion
dotnet_naming_rule.property_should_be_pascalcase.symbols = property
dotnet_naming_rule.property_should_be_pascalcase.style = pascalcase
dotnet_naming_rule.public_or_protected_field_should_be__lowercamelcasestartwith_.severity = suggestion
dotnet_naming_rule.public_or_protected_field_should_be__lowercamelcasestartwith_.symbols = public_or_protected_field
dotnet_naming_rule.public_or_protected_field_should_be__lowercamelcasestartwith_.style = _lowercamelcasestartwith_
dotnet_naming_rule.private_or_internal_field_should_be__lowercamelcasestartwith_.severity = suggestion
dotnet_naming_rule.private_or_internal_field_should_be__lowercamelcasestartwith_.symbols = private_or_internal_field
dotnet_naming_rule.private_or_internal_field_should_be__lowercamelcasestartwith_.style = _lowercamelcasestartwith_
dotnet_naming_rule.static_field_should_be_pascalcase.severity = suggestion
dotnet_naming_rule.static_field_should_be_pascalcase.symbols = static_field
dotnet_naming_rule.static_field_should_be_pascalcase.style = pascalcase
dotnet_naming_rule.private_or_internal_static_field_should_be_pascalcase.severity = suggestion
dotnet_naming_rule.private_or_internal_static_field_should_be_pascalcase.symbols = private_or_internal_static_field
dotnet_naming_rule.private_or_internal_static_field_should_be_pascalcase.style = pascalcase
dotnet_naming_rule.types_should_be_pascalcase.severity = suggestion
dotnet_naming_rule.types_should_be_pascalcase.symbols = types
dotnet_naming_rule.types_should_be_pascalcase.style = pascalcase
dotnet_naming_rule.non_field_members_should_be_lowercamelcase.severity = suggestion
dotnet_naming_rule.non_field_members_should_be_lowercamelcase.symbols = non_field_members
dotnet_naming_rule.non_field_members_should_be_lowercamelcase.style = lowercamelcase
# Symbol specifications
dotnet_naming_symbols.class.applicable_kinds = class
dotnet_naming_symbols.class.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.class.required_modifiers =
dotnet_naming_symbols.interface.applicable_kinds = interface
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.interface.required_modifiers =
dotnet_naming_symbols.struct.applicable_kinds = struct
dotnet_naming_symbols.struct.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.struct.required_modifiers =
dotnet_naming_symbols.enum.applicable_kinds = enum
dotnet_naming_symbols.enum.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.enum.required_modifiers =
dotnet_naming_symbols.delegate.applicable_kinds = delegate
dotnet_naming_symbols.delegate.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.delegate.required_modifiers =
dotnet_naming_symbols.method.applicable_kinds = method
dotnet_naming_symbols.method.applicable_accessibilities = public
dotnet_naming_symbols.method.required_modifiers =
dotnet_naming_symbols.property.applicable_kinds = property
dotnet_naming_symbols.property.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.property.required_modifiers =
dotnet_naming_symbols.public_or_protected_field.applicable_kinds = field
dotnet_naming_symbols.public_or_protected_field.applicable_accessibilities = public, protected
dotnet_naming_symbols.public_or_protected_field.required_modifiers =
dotnet_naming_symbols.private_or_internal_field.applicable_kinds = field
dotnet_naming_symbols.private_or_internal_field.applicable_accessibilities = internal, private, private_protected
dotnet_naming_symbols.private_or_internal_field.required_modifiers =
dotnet_naming_symbols.static_field.applicable_kinds = field
dotnet_naming_symbols.static_field.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.static_field.required_modifiers = static
dotnet_naming_symbols.private_or_internal_static_field.applicable_kinds = field
dotnet_naming_symbols.private_or_internal_static_field.applicable_accessibilities = internal, private, private_protected
dotnet_naming_symbols.private_or_internal_static_field.required_modifiers = static
dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.types.required_modifiers =
dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.non_field_members.required_modifiers =
# Naming styles
dotnet_naming_style.pascalcase.required_prefix =
dotnet_naming_style.pascalcase.required_suffix =
dotnet_naming_style.pascalcase.word_separator =
dotnet_naming_style.pascalcase.capitalization = pascal_case
dotnet_naming_style.istartuppercase_i_.required_prefix = I
dotnet_naming_style.istartuppercase_i_.required_suffix =
dotnet_naming_style.istartuppercase_i_.word_separator =
dotnet_naming_style.istartuppercase_i_.capitalization = pascal_case
dotnet_naming_style.pascalcase.required_prefix =
dotnet_naming_style.pascalcase.required_suffix =
dotnet_naming_style.pascalcase.word_separator =
dotnet_naming_style.pascalcase.capitalization = pascal_case
dotnet_naming_style._eall_upper_starts_with_e.required_prefix = _e
dotnet_naming_style._eall_upper_starts_with_e.required_suffix =
dotnet_naming_style._eall_upper_starts_with_e.word_separator =
dotnet_naming_style._eall_upper_starts_with_e.capitalization = all_upper
dotnet_naming_style.typedelegateendswith_delegate.required_prefix =
dotnet_naming_style.typedelegateendswith_delegate.required_suffix = _Delegate
dotnet_naming_style.typedelegateendswith_delegate.word_separator =
dotnet_naming_style.typedelegateendswith_delegate.capitalization = pascal_case
dotnet_naming_style.pascalcase.required_prefix =
dotnet_naming_style.pascalcase.required_suffix =
dotnet_naming_style.pascalcase.word_separator =
dotnet_naming_style.pascalcase.capitalization = pascal_case
dotnet_naming_style.pascalcase.required_prefix =
dotnet_naming_style.pascalcase.required_suffix =
dotnet_naming_style.pascalcase.word_separator =
dotnet_naming_style.pascalcase.capitalization = pascal_case
dotnet_naming_style._lowercamelcasestartwith_.required_prefix = _
dotnet_naming_style._lowercamelcasestartwith_.required_suffix =
dotnet_naming_style._lowercamelcasestartwith_.word_separator =
dotnet_naming_style._lowercamelcasestartwith_.capitalization = camel_case
dotnet_naming_style._lowercamelcasestartwith_.required_prefix = _
dotnet_naming_style._lowercamelcasestartwith_.required_suffix =
dotnet_naming_style._lowercamelcasestartwith_.word_separator =
dotnet_naming_style._lowercamelcasestartwith_.capitalization = camel_case
dotnet_naming_style.pascalcase.required_prefix =
dotnet_naming_style.pascalcase.required_suffix =
dotnet_naming_style.pascalcase.word_separator =
dotnet_naming_style.pascalcase.capitalization = pascal_case
dotnet_naming_style.pascalcase.required_prefix =
dotnet_naming_style.pascalcase.required_suffix =
dotnet_naming_style.pascalcase.word_separator =
dotnet_naming_style.pascalcase.capitalization = pascal_case
dotnet_naming_style.pascalcase.required_prefix =
dotnet_naming_style.pascalcase.required_suffix =
dotnet_naming_style.pascalcase.word_separator =
dotnet_naming_style.pascalcase.capitalization = pascal_case
dotnet_naming_style.lowercamelcase.required_prefix =
dotnet_naming_style.lowercamelcase.required_suffix =
dotnet_naming_style.lowercamelcase.word_separator =
dotnet_naming_style.lowercamelcase.capitalization = camel_case
csharp_using_directive_placement = outside_namespace:silent
csharp_prefer_simple_using_statement = true:warning
csharp_style_namespace_declarations = block_scoped:warning
csharp_style_prefer_method_group_conversion = true:suggestion
csharp_style_prefer_top_level_statements = true:suggestion
csharp_style_expression_bodied_methods = when_on_single_line:warning
csharp_style_expression_bodied_constructors = when_on_single_line:warning
csharp_style_expression_bodied_operators = when_on_single_line:warning
csharp_style_expression_bodied_properties = true:warning
csharp_style_expression_bodied_indexers = when_on_single_line:warning
csharp_style_expression_bodied_accessors = true:warning
csharp_style_expression_bodied_lambdas = when_on_single_line:warning
csharp_style_expression_bodied_local_functions = when_on_single_line:warning
csharp_indent_labels = one_less_than_current
csharp_space_around_binary_operators = before_and_after
# IDE0055: Fix formatting
dotnet_diagnostic.IDE0055.severity = none
# IDE1006: Naming Styles
dotnet_diagnostic.IDE1006.severity = none
# IDE0052: Remove unread private members
dotnet_diagnostic.IDE0052.severity = none
# CS8767: Nullability of reference types in type of parameter doesn't match implicitly implemented member (possibly because of nullability attributes).
dotnet_diagnostic.CS8767.severity = none
[*.vb]
#### Naming styles ####
# Naming rules
dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.types_should_be_pascal_case.symbols = types
dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
# Symbol specifications
dotnet_naming_symbols.interface.applicable_kinds = interface
dotnet_naming_symbols.interface.applicable_accessibilities = public, friend, private, protected, protected_friend, private_protected
dotnet_naming_symbols.interface.required_modifiers =
dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
dotnet_naming_symbols.types.applicable_accessibilities = public, friend, private, protected, protected_friend, private_protected
dotnet_naming_symbols.types.required_modifiers =
dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, friend, private, protected, protected_friend, private_protected
dotnet_naming_symbols.non_field_members.required_modifiers =
# Naming styles
dotnet_naming_style.begins_with_i.required_prefix = I
dotnet_naming_style.begins_with_i.required_suffix =
dotnet_naming_style.begins_with_i.word_separator =
dotnet_naming_style.begins_with_i.capitalization = pascal_case
dotnet_naming_style.pascal_case.required_prefix =
dotnet_naming_style.pascal_case.required_suffix =
dotnet_naming_style.pascal_case.word_separator =
dotnet_naming_style.pascal_case.capitalization = pascal_case
dotnet_naming_style.pascal_case.required_prefix =
dotnet_naming_style.pascal_case.required_suffix =
dotnet_naming_style.pascal_case.word_separator =
dotnet_naming_style.pascal_case.capitalization = pascal_case
[*.{cs,vb}]
dotnet_style_coalesce_expression = true:warning
dotnet_style_null_propagation = true:warning
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:warning
dotnet_style_prefer_auto_properties = true:warning
dotnet_style_object_initializer = true:warning
dotnet_style_collection_initializer = true:warning
dotnet_style_prefer_simplified_boolean_expressions = true:warning
dotnet_style_prefer_conditional_expression_over_assignment = true:warning
dotnet_style_prefer_conditional_expression_over_return = true:warning
dotnet_style_operator_placement_when_wrapping = beginning_of_line
tab_width = 4
indent_size = 4
end_of_line = crlf