Skip to content

Commit 60d0b4b

Browse files
committed
Enforce code style
1 parent 4dca184 commit 60d0b4b

File tree

1 file changed

+90
-3
lines changed

1 file changed

+90
-3
lines changed

.editorconfig

+90-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,98 @@
11
root = true
22

3-
[**/*.cs]
3+
[**/*.xaml]
44
indent_style = tab
55
indent_size = 4
66
tab_width = 4
77

8-
[**/*.xaml]
8+
[**/*.cs]
99
indent_style = tab
1010
indent_size = 4
11-
tab_width = 4
11+
tab_width = 4
12+
13+
# https://files.community/docs/contributing/code-style
14+
15+
dotnet_naming_rule.pascal_case_for_classes.symbols = classes
16+
dotnet_naming_symbols.classes.applicable_kinds = class
17+
dotnet_naming_symbols.classes.applicable_accessibilities = *
18+
dotnet_naming_symbols.classes.required_prefix =
19+
dotnet_naming_symbols.classes.required_suffix =
20+
21+
dotnet_naming_rule.pascal_case_for_interfaces.symbols = interfaces
22+
dotnet_naming_symbols.interfaces.applicable_kinds = interface
23+
dotnet_naming_symbols.interfaces.applicable_accessibilities = *
24+
dotnet_naming_symbols.interfaces.required_prefix = I
25+
dotnet_naming_symbols.interfaces.required_suffix =
26+
27+
dotnet_naming_rule.pascal_case_for_structs.symbols = structs
28+
dotnet_naming_symbols.structs.applicable_kinds = struct
29+
dotnet_naming_symbols.structs.applicable_accessibilities = *
30+
dotnet_naming_symbols.structs.required_prefix =
31+
dotnet_naming_symbols.structs.required_suffix =
32+
33+
dotnet_naming_rule.pascal_case_for_methods.symbols = methods
34+
dotnet_naming_symbols.methods.applicable_kinds = method
35+
dotnet_naming_symbols.methods.applicable_accessibilities = *
36+
dotnet_naming_symbols.methods.required_prefix =
37+
dotnet_naming_symbols.methods.required_suffix = Async
38+
39+
dotnet_naming_rule.camel_case_for_variables.symbols = variables
40+
dotnet_naming_symbols.variables.applicable_kinds = field
41+
dotnet_naming_symbols.variables.applicable_accessibilities = private
42+
dotnet_naming_symbols.variables.required_prefix = _
43+
dotnet_naming_symbols.variables.required_suffix =
44+
45+
dotnet_naming_rule.camel_case_for_parameters.symbols = parameters
46+
dotnet_naming_symbols.parameters.applicable_kinds = parameter
47+
dotnet_naming_symbols.parameters.applicable_accessibilities = *
48+
dotnet_naming_symbols.parameters.required_prefix =
49+
dotnet_naming_symbols.parameters.required_suffix =
50+
51+
dotnet_naming_rule.pascal_case_for_properties.symbols = properties
52+
dotnet_naming_symbols.properties.applicable_kinds = property
53+
dotnet_naming_symbols.properties.applicable_accessibilities = *
54+
dotnet_naming_symbols.properties.required_prefix =
55+
dotnet_naming_symbols.properties.required_suffix =
56+
57+
dotnet_naming_rule.upper_case_for_constants.symbols = constants
58+
dotnet_naming_symbols.constants.applicable_kinds = field
59+
dotnet_naming_symbols.constants.applicable_accessibilities = *
60+
dotnet_naming_symbols.constants.required_prefix =
61+
dotnet_naming_symbols.constants.required_suffix =
62+
dotnet_naming_symbols.constants.required_capitalization = all_upper
63+
64+
dotnet_style_require_accessibility_modifiers = always:suggestion
65+
dotnet_style_readonly_field = true:suggestion
66+
dotnet_style_qualify_field_access = false
67+
dotnet_style_qualify_property_access = false
68+
dotnet_style_qualify_method_access = false
69+
dotnet_style_qualify_event_access = false
70+
dotnet_style_prefer_auto_properties = true:suggestion
71+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
72+
73+
csharp_new_line_before_open_brace = all
74+
csharp_new_line_before_else = true
75+
csharp_new_line_before_catch = true
76+
csharp_new_line_before_finally = true
77+
csharp_new_line_before_members_in_object_initializers = true
78+
csharp_new_line_before_members_in_anonymous_types = true
79+
csharp_new_line_between_query_expression_clauses = true
80+
81+
csharp_style_var_for_built_in_types = true:suggestion
82+
csharp_style_var_when_type_is_apparent = true:suggestion
83+
csharp_style_var_elsewhere = true:suggestion
84+
85+
csharp_style_namespace_declarations = file_scoped
86+
87+
dotnet_naming_rule.pascal_case_for_classes.style = pascal_case
88+
dotnet_naming_rule.pascal_case_for_interfaces.style = pascal_case
89+
dotnet_naming_rule.pascal_case_for_structs.style = pascal_case
90+
dotnet_naming_rule.pascal_case_for_methods.style = pascal_case
91+
dotnet_naming_rule.camel_case_for_variables.style = camel_case
92+
dotnet_naming_rule.camel_case_for_parameters.style = camel_case
93+
dotnet_naming_rule.pascal_case_for_properties.style = pascal_case
94+
dotnet_naming_rule.upper_case_for_constants.style = all_upper
95+
96+
dotnet_naming_style.pascal_case.capitalization = pascal_case
97+
dotnet_naming_style.camel_case.capitalization = camel_case
98+
dotnet_naming_style.all_upper.capitalization = all_upper

0 commit comments

Comments
 (0)