Skip to content

Commit 9e25ed5

Browse files
committed
ci: add module structure
1 parent 6bdeeb4 commit 9e25ed5

19 files changed

+829
-0
lines changed

.editorconfig

+174
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 4
7+
end_of_line = crlf
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
# Project files
12+
[*.{csproj,props}]
13+
indent_size = 2
14+
insert_final_newline = false
15+
16+
# JSON files
17+
[*.json]
18+
indent_size = 2
19+
20+
# Configuration files
21+
[*.config]
22+
indent_size = 2
23+
24+
# HTML files
25+
[*.{html,htm}]
26+
insert_final_newline = false
27+
28+
# Dotnet code style settings
29+
[*.{cs,vb}]
30+
31+
# Sort using and Import directives with System.* appearing first
32+
dotnet_sort_system_directives_first = true
33+
34+
# Avoid "this." and "Me." if not necessary
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+
# Use 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+
# Use explicit accessibility modifiers
45+
dotnet_style_require_accessibility_modifiers = true:suggestion
46+
47+
# Suggest more modern language features when available
48+
dotnet_style_object_initializer = true:suggestion
49+
dotnet_style_collection_initializer = true:suggestion
50+
dotnet_style_coalesce_expression = true:suggestion
51+
dotnet_style_null_propagation = true:suggestion
52+
dotnet_style_explicit_tuple_names = true:suggestion
53+
dotnet_prefer_inferred_tuple_names = true:suggestion
54+
dotnet_prefer_inferred_anonymous_type_member_names = true:suggestion
55+
56+
# CSharp code style settings
57+
[*.cs]
58+
59+
# Prefer curly braces even for one line of code
60+
csharp_prefer_braces = true:suggestion
61+
62+
# Prefer "var" everywhere
63+
csharp_style_var_for_built_in_types = true:suggestion
64+
csharp_style_var_when_type_is_apparent = true:suggestion
65+
csharp_style_var_elsewhere = true:suggestion
66+
67+
# Prefer method-like constructs to have a block body
68+
csharp_style_expression_bodied_methods = false:none
69+
csharp_style_expression_bodied_constructors = false:none
70+
csharp_style_expression_bodied_operators = false:none
71+
72+
# Prefer property-like constructs to have an expression-body
73+
csharp_style_expression_bodied_properties = true:none
74+
csharp_style_expression_bodied_indexers = true:none
75+
csharp_style_expression_bodied_accessors = true:none
76+
77+
# Suggest more modern language features when available
78+
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
79+
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
80+
csharp_style_inlined_variable_declaration = true:suggestion
81+
csharp_style_throw_expression = true:suggestion
82+
csharp_style_conditional_delegate_call = true:suggestion
83+
csharp_prefer_simple_default_expression = true:suggestion
84+
csharp_style_deconstructed_variable_declaration = true:suggestion
85+
csharp_style_pattern_local_over_anonymous_function = true:suggestion
86+
87+
# Newline settings
88+
csharp_new_line_before_open_brace = all
89+
csharp_new_line_before_else = true
90+
csharp_new_line_before_catch = true
91+
csharp_new_line_before_finally = true
92+
csharp_new_line_before_members_in_object_initializers = true
93+
csharp_new_line_before_members_in_anonymous_types = true
94+
csharp_new_line_between_query_expression_clauses = true
95+
96+
csharp_indent_case_contents = true
97+
csharp_indent_switch_labels = true
98+
csharp_indent_labels = flush_left
99+
100+
csharp_space_after_cast = false
101+
csharp_space_after_keywords_in_control_flow_statements = true
102+
csharp_space_between_method_declaration_parameter_list_parentheses = false
103+
csharp_space_between_method_call_parameter_list_parentheses = false
104+
csharp_space_between_parentheses = false
105+
106+
csharp_preserve_single_line_statements = false
107+
csharp_preserve_single_line_blocks = true
108+
csharp_using_directive_placement = outside_namespace:silent
109+
csharp_prefer_simple_using_statement = true:suggestion
110+
csharp_style_namespace_declarations = block_scoped:silent
111+
csharp_style_prefer_method_group_conversion = true:silent
112+
csharp_style_prefer_top_level_statements = true:silent
113+
csharp_style_expression_bodied_lambdas = true:silent
114+
csharp_style_expression_bodied_local_functions = false:silent
115+
116+
[*.{cs,vb}]
117+
#### Naming styles ####
118+
119+
# Naming rules
120+
121+
dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
122+
dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
123+
dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
124+
125+
dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion
126+
dotnet_naming_rule.types_should_be_pascal_case.symbols = types
127+
dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
128+
129+
dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion
130+
dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
131+
dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
132+
133+
# Symbol specifications
134+
135+
dotnet_naming_symbols.interface.applicable_kinds = interface
136+
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
137+
dotnet_naming_symbols.interface.required_modifiers =
138+
139+
dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
140+
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
141+
dotnet_naming_symbols.types.required_modifiers =
142+
143+
dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
144+
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
145+
dotnet_naming_symbols.non_field_members.required_modifiers =
146+
147+
# Naming styles
148+
149+
dotnet_naming_style.begins_with_i.required_prefix = I
150+
dotnet_naming_style.begins_with_i.required_suffix =
151+
dotnet_naming_style.begins_with_i.word_separator =
152+
dotnet_naming_style.begins_with_i.capitalization = pascal_case
153+
154+
dotnet_naming_style.pascal_case.required_prefix =
155+
dotnet_naming_style.pascal_case.required_suffix =
156+
dotnet_naming_style.pascal_case.word_separator =
157+
dotnet_naming_style.pascal_case.capitalization = pascal_case
158+
159+
dotnet_naming_style.pascal_case.required_prefix =
160+
dotnet_naming_style.pascal_case.required_suffix =
161+
dotnet_naming_style.pascal_case.word_separator =
162+
dotnet_naming_style.pascal_case.capitalization = pascal_case
163+
dotnet_style_operator_placement_when_wrapping = beginning_of_line
164+
tab_width = 4
165+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
166+
dotnet_style_prefer_auto_properties = true:silent
167+
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
168+
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
169+
dotnet_style_prefer_conditional_expression_over_return = true:silent
170+
dotnet_style_prefer_inferred_tuple_names = true:suggestion
171+
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
172+
dotnet_style_prefer_compound_assignment = true:suggestion
173+
dotnet_style_prefer_simplified_interpolation = true:suggestion
174+
dotnet_style_namespace_match_folder = true:suggestion

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto

0 commit comments

Comments
 (0)