-
Notifications
You must be signed in to change notification settings - Fork 5
/
.editorconfig
132 lines (100 loc) · 5.54 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
file_header_template = "NEED A BREAK is an application intended to help you take care of your health while you work on a computer.
It will encourage you to regularly have a break in order to rest your back and your eyes.
Copyright (C) 2020 Benoit Rocco
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>."
# top-most EditorConfig file
root = true
#Core editorconfig formatting - indentation
[*.xaml]
indent_size = 4
[*.cs]
indent_style = tab
#Naming style
#Private const naming convention
dotnet_naming_rule.private_consts_name.symbols = private_consts
dotnet_naming_rule.private_consts_name.style = private_const_style
dotnet_naming_rule.private_consts_name.severity = suggestion
dotnet_naming_symbols.private_consts.applicable_kinds = field
dotnet_naming_symbols.private_consts.required_modifiers = const
dotnet_naming_symbols.private_consts.applicable_accessibilities = private
dotnet_naming_style.private_const_style.capitalization = all_upper
#Public const naming convention
dotnet_naming_rule.public_consts_name.symbols = public_consts
dotnet_naming_rule.public_consts_name.style = public_fields_style
dotnet_naming_rule.public_consts_name.severity = warning
dotnet_naming_symbols.public_consts.applicable_kinds = field
dotnet_naming_symbols.public_consts.required_modifiers = const
dotnet_naming_symbols.public_consts.applicable_accessibilities = public
dotnet_naming_style.public_const_style.capitalization = pascal_case
#Private fields naming convention
dotnet_naming_rule.prefix_fields_with_.symbols = private_fields
dotnet_naming_rule.prefix_fields_with_.style = starts_with_
dotnet_naming_rule.prefix_fields_with_.severity = warning
dotnet_naming_symbols.private_fields.applicable_kinds = field
dotnet_naming_symbols.private_fields.applicable_accessibilities = private
dotnet_naming_style.starts_with_.required_prefix = _
dotnet_naming_style.starts_with_.capitalization = camel_case
#Public fields naming convention
dotnet_naming_rule.public_fields_name.symbols = public_fields
dotnet_naming_rule.public_fields_name.style = public_fields_style
dotnet_naming_rule.public_fields_name.severity = warning
dotnet_naming_symbols.public_fields.applicable_kinds = field
dotnet_naming_symbols.public_fields.applicable_accessibilities = public
dotnet_naming_style.public_fields_style.capitalization = pascal_case
#Method naming convention
dotnet_naming_rule.methods_name.symbols = all_methods_except_private
dotnet_naming_rule.methods_name.style = public_fields_style
dotnet_naming_rule.methods_name.severity = warning
dotnet_naming_symbols.all_methods_except_private.applicable_kinds = method
dotnet_naming_symbols.all_methods_except_private.applicable_accessibilities = public,internal,protected,protected_internal
dotnet_naming_style.method_style.capitalization = pascal_case
#Parameter naming convention
dotnet_naming_rule.parameters_name.symbols = all_parameters
dotnet_naming_rule.parameters_name.style = parameter_style
dotnet_naming_rule.parameters_name.severity = warning
dotnet_naming_symbols.all_parameters.applicable_kinds = parameter
dotnet_naming_style.parameter_style.capitalization = camel_case
#Property naming convention
dotnet_naming_rule.properties_name.symbols = all_properties
dotnet_naming_rule.properties_name.style = public_fields_style
dotnet_naming_rule.properties_name.severity = warning
dotnet_naming_symbols.all_properties.applicable_kinds = property
dotnet_naming_style.property_style.capitalization = pascal_case
csharp_indent_labels = one_less_than_current
csharp_using_directive_placement = outside_namespace:silent
csharp_prefer_simple_using_statement = true:suggestion
csharp_prefer_braces = true:silent
csharp_style_namespace_declarations = block_scoped:silent
csharp_style_prefer_method_group_conversion = true:silent
csharp_style_expression_bodied_methods = false:silent
csharp_style_expression_bodied_constructors = false:silent
csharp_style_expression_bodied_operators = false:silent
csharp_style_expression_bodied_properties = true:silent
csharp_style_expression_bodied_indexers = true:silent
csharp_style_expression_bodied_accessors = true:silent
csharp_style_expression_bodied_lambdas = true:silent
csharp_style_expression_bodied_local_functions = false:silent
[*.{cs,vb}]
dotnet_style_operator_placement_when_wrapping = beginning_of_line
tab_width = 4
indent_size = 4
end_of_line = crlf
dotnet_style_coalesce_expression = true:suggestion
dotnet_style_null_propagation = true:suggestion
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
dotnet_style_prefer_auto_properties = true:silent
dotnet_style_object_initializer = true:suggestion
dotnet_style_collection_initializer = true:suggestion
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
dotnet_style_prefer_conditional_expression_over_return = true:silent
indent_style = space