Skip to content

Commit a4bf056

Browse files
committed
Version 1.0.0
0 parents  commit a4bf056

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+2492
-0
lines changed

.editorconfig

+245
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,245 @@
1+
# https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference?view=vs-2019
2+
# https://marketplace.visualstudio.com/items?itemName=MadsKristensen.EditorConfig
3+
4+
root = true
5+
6+
[*]
7+
end_of_line = crlf
8+
charset = utf-8-bom
9+
10+
[.editorconfig]
11+
trim_trailing_whitespace = true
12+
insert_final_newline = true
13+
14+
[*.sql]
15+
indent_style = space
16+
indent_size = 4
17+
trim_trailing_whitespace = true
18+
insert_final_newline = true
19+
20+
[*.{xml,config}]
21+
indent_style = space
22+
indent_size = 2
23+
trim_trailing_whitespace = true
24+
insert_final_newline = false
25+
26+
[*.{cs,csx,tt,ttinclude}]
27+
indent_style = space
28+
indent_size = 4
29+
trim_trailing_whitespace = true
30+
insert_final_newline = true
31+
32+
#### .NET code style settings ####
33+
34+
# "This." and "Me." qualifiers
35+
dotnet_style_qualification_for_field = false:suggestion
36+
dotnet_style_qualification_for_property = false:suggestion
37+
dotnet_style_qualification_for_method = false:suggestion
38+
dotnet_style_qualification_for_event = false:suggestion
39+
40+
# Language keywords instead of framework type names for type references
41+
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
42+
dotnet_style_predefined_type_for_member_access = true:suggestion
43+
44+
# Modifier preferences
45+
dotnet_style_require_accessibility_modifiers = always:warning
46+
csharp_preferred_modifier_order = public,protected,internal,private,new,abstract,virtual,override,sealed,static,readonly,extern,unsafe,volatile,async:warning
47+
dotnet_style_readonly_field = true:suggestion
48+
49+
# Parentheses preferences
50+
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent
51+
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:suggestion
52+
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:suggestion
53+
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
54+
55+
# Expression-level preferences
56+
dotnet_style_object_initializer = true:silent
57+
dotnet_style_collection_initializer = true:none
58+
dotnet_style_explicit_tuple_names = true:error
59+
dotnet_style_prefer_inferred_tuple_names = false:silent
60+
dotnet_style_prefer_inferred_anonymous_type_member_names = false:silent
61+
dotnet_style_prefer_auto_properties = true:suggestion
62+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
63+
dotnet_style_prefer_conditional_expression_over_assignment = true:none
64+
dotnet_style_prefer_conditional_expression_over_return = false:none
65+
dotnet_style_prefer_compound_assignment = true:suggestion
66+
67+
# Null-checking preferences
68+
dotnet_style_coalesce_expression = true:suggestion
69+
dotnet_style_null_propagation = true:suggestion
70+
71+
### .NET code quality settings ###
72+
73+
# Parameter preferences
74+
dotnet_code_quality_unused_parameters = non_public:suggestion
75+
76+
#### C# Coding Conventions ####
77+
78+
# Implicit and explicit types
79+
csharp_style_var_for_built_in_types = false:suggestion
80+
csharp_style_var_when_type_is_apparent = false:silent
81+
csharp_style_var_elsewhere = false:silent
82+
83+
# Expression-bodied members
84+
csharp_style_expression_bodied_methods = false:warning
85+
csharp_style_expression_bodied_constructors = false:warning
86+
csharp_style_expression_bodied_operators = false:warning
87+
csharp_style_expression_bodied_properties = when_on_single_line:silent
88+
csharp_style_expression_bodied_indexers = when_on_single_line:silent
89+
csharp_style_expression_bodied_accessors = when_on_single_line:silent
90+
csharp_style_expression_bodied_lambdas = true:suggestion
91+
csharp_style_expression_bodied_local_functions = false:warning
92+
93+
# Pattern matching
94+
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
95+
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
96+
97+
# Inlined variable declarations
98+
csharp_style_inlined_variable_declaration = true:suggestion
99+
100+
# C# expression-level preferences
101+
csharp_prefer_simple_default_expression = false:silent
102+
103+
# C# null-checking preferences
104+
csharp_style_throw_expression = true:silent
105+
csharp_style_conditional_delegate_call = true:suggestion
106+
107+
# Code-block preferences
108+
csharp_prefer_braces = true:warning
109+
110+
# Unused value preferences
111+
csharp_style_unused_value_expression_statement_preference = discard_variable:none
112+
csharp_style_unused_value_assignment_preference = discard_variable:suggestion
113+
114+
# Index and range preferences
115+
csharp_style_prefer_index_operator = true:suggestion
116+
csharp_style_prefer_range_operator = true:suggestion
117+
118+
# Miscellaneous preferences
119+
csharp_style_deconstructed_variable_declaration = true:none
120+
csharp_style_pattern_local_over_anonymous_function = true:silent
121+
csharp_using_directive_placement = outside_namespace:error
122+
csharp_prefer_static_local_function = true:suggestion
123+
csharp_prefer_simple_using_statement = false:suggestion
124+
csharp_style_prefer_switch_expression = true:silent
125+
126+
#### .NET formatting settings ####
127+
128+
# Organize using directives
129+
dotnet_sort_system_directives_first = true
130+
dotnet_separate_import_directive_groups = false
131+
132+
### C# formatting settings ###
133+
134+
# New-line options
135+
csharp_new_line_before_open_brace = all
136+
csharp_new_line_before_else = true
137+
csharp_new_line_before_catch = true
138+
csharp_new_line_before_finally = true
139+
csharp_new_line_before_members_in_object_initializers = true
140+
csharp_new_line_before_members_in_anonymous_types = true
141+
csharp_new_line_between_query_expression_clauses = true
142+
143+
# Indentation options
144+
csharp_indent_case_contents = true
145+
csharp_indent_switch_labels = true
146+
csharp_indent_labels = one_less_than_current
147+
csharp_indent_block_contents = true
148+
csharp_indent_braces = false
149+
csharp_indent_case_contents_when_block = false
150+
151+
# Spacing options
152+
csharp_space_after_cast = false
153+
csharp_space_after_keywords_in_control_flow_statements = false
154+
csharp_space_between_parentheses = control_flow_statements
155+
csharp_space_before_colon_in_inheritance_clause = true
156+
csharp_space_after_colon_in_inheritance_clause = true
157+
csharp_space_around_binary_operators = before_and_after
158+
csharp_space_between_method_declaration_parameter_list_parentheses = false
159+
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
160+
csharp_space_between_method_declaration_name_and_open_parenthesis = false
161+
csharp_space_between_method_call_parameter_list_parentheses = false
162+
csharp_space_between_method_call_empty_parameter_list_parentheses = false
163+
csharp_space_between_method_call_name_and_opening_parenthesis = false
164+
csharp_space_after_comma = true
165+
csharp_space_before_comma = false
166+
csharp_space_after_dot = false
167+
csharp_space_before_dot = false
168+
csharp_space_after_semicolon_in_for_statement = true
169+
csharp_space_before_semicolon_in_for_statement = false
170+
csharp_space_around_declaration_statements = false
171+
csharp_space_before_open_square_brackets = false
172+
csharp_space_between_empty_square_brackets = false
173+
csharp_space_between_square_brackets = false
174+
175+
# Wrap options
176+
csharp_preserve_single_line_statements = false
177+
csharp_preserve_single_line_blocks = true
178+
179+
#### Naming conventions ####
180+
181+
# Styles
182+
dotnet_naming_style.pascal.capitalization = pascal_case
183+
184+
dotnet_naming_style.camel.capitalization = camel_case
185+
186+
dotnet_naming_style.camel_with_underscore.capitalization = camel_case
187+
dotnet_naming_style.camel_with_underscore.required_prefix = _
188+
189+
dotnet_naming_style.pascal_with_underscore.capitalization = pascal_case
190+
dotnet_naming_style.pascal_with_underscore.required_prefix = _
191+
192+
dotnet_naming_style.pascal_with_i.capitalization = pascal_case
193+
dotnet_naming_style.pascal_with_i.required_prefix = I
194+
195+
dotnet_naming_style.pascal_with_t.capitalization = pascal_case
196+
dotnet_naming_style.pascal_with_t.required_prefix = T
197+
198+
dotnet_naming_style.upper_with_underscore.capitalization = all_upper
199+
dotnet_naming_style.upper_with_underscore.word_separator = _
200+
201+
# Rules
202+
dotnet_naming_rule.interfaces.symbols = interface
203+
dotnet_naming_symbols.interface.applicable_kinds = interface
204+
dotnet_naming_symbols.interface.applicable_accessibilities = *
205+
dotnet_naming_rule.interfaces.style = pascal_with_i
206+
dotnet_naming_rule.interfaces.severity = warning
207+
208+
dotnet_naming_rule.constants.symbols = constant
209+
dotnet_naming_symbols.constant.applicable_kinds = field
210+
dotnet_naming_symbols.constant.applicable_accessibilities = *
211+
dotnet_naming_symbols.constant.required_modifiers = const
212+
dotnet_naming_rule.constants.style = upper_with_underscore
213+
dotnet_naming_rule.constants.severity = warning
214+
215+
dotnet_naming_rule.fields.symbols = field
216+
dotnet_naming_symbols.field.applicable_kinds = field
217+
dotnet_naming_symbols.field.applicable_accessibilities = *
218+
dotnet_naming_rule.fields.style = camel_with_underscore
219+
dotnet_naming_rule.fields.severity = warning
220+
221+
dotnet_naming_rule.parameters.symbols = parameter
222+
dotnet_naming_symbols.parameter.applicable_kinds = parameter
223+
dotnet_naming_rule.parameters.style = camel
224+
dotnet_naming_rule.parameters.severity = warning
225+
226+
dotnet_naming_rule.typeparameters.symbols = typeparameter
227+
dotnet_naming_symbols.typeparameter.applicable_kinds = type_parameter
228+
dotnet_naming_rule.typeparameters.style = pascal_with_t
229+
dotnet_naming_rule.typeparameters.severity = warning
230+
231+
dotnet_naming_rule.locals.symbols = local
232+
dotnet_naming_symbols.local.applicable_kinds = local
233+
dotnet_naming_rule.locals.style = camel
234+
dotnet_naming_rule.locals.severity = warning
235+
236+
dotnet_naming_rule.local_functions.symbols = local_function
237+
dotnet_naming_symbols.local_function.applicable_kinds = local_function
238+
dotnet_naming_rule.local_functions.style = pascal_with_underscore
239+
dotnet_naming_rule.local_functions.severity = warning
240+
241+
dotnet_naming_rule.all.symbols = any
242+
dotnet_naming_symbols.any.applicable_kinds = *
243+
dotnet_naming_symbols.any.applicable_accessibilities = *
244+
dotnet_naming_rule.all.style = pascal
245+
dotnet_naming_rule.all.severity = warning

0 commit comments

Comments
 (0)