Skip to content

Commit 6b65ada

Browse files
authored
Merge pull request #9 from astar-development/feature/add-projects
feat: add main projects
2 parents 788fd69 + ebc242a commit 6b65ada

1,759 files changed

Lines changed: 117108 additions & 208 deletions

File tree

Some content is hidden

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

.editorconfig

Lines changed: 259 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,279 @@
1-
2-
# Top-level EditorConfig for entire monorepo
1+
# Remove the line below if you want to inherit .editorconfig settings from higher directories
32
root = true
43

5-
[*]
6-
charset = utf-8
7-
end_of_line = lf
8-
insert_final_newline = true
9-
indent_style = space
10-
indent_size = 2
11-
trim_trailing_whitespace = true
12-
4+
# C# files
135
[*.cs]
14-
dotnet_style_qualification_for_field = false:suggestion
15-
dotnet_style_qualification_for_property = false:suggestion
16-
dotnet_style_qualification_for_method = false:suggestion
17-
dotnet_style_qualification_for_event = false:suggestion
186

19-
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
20-
dotnet_style_predefined_type_for_member_access = true:suggestion
7+
#### Core EditorConfig Options ####
8+
9+
# Indentation and spacing
10+
indent_size = 4
11+
indent_style = space
12+
tab_width = 4
13+
14+
# New line preferences
15+
end_of_line = crlf
16+
insert_final_newline = true
2117

22-
dotnet_style_object_initializer = true:suggestion
23-
dotnet_style_collection_initializer = true:suggestion
24-
dotnet_style_explicit_tuple_names = true:suggestion
18+
#### .NET Coding Conventions ####
2519

26-
dotnet_style_require_accessibility_modifiers = always:error
20+
# Miscellaneous
21+
dotnet_diagnostic.CA1873.severity = none
2722

23+
# Organize usings
24+
dotnet_separate_import_directive_groups = false
2825
dotnet_sort_system_directives_first = true
29-
dotnet_separate_import_directive_groups = true
26+
file_header_template = unset
27+
28+
# this. and Me. preferences
29+
dotnet_style_qualification_for_event = false:error
30+
dotnet_style_qualification_for_field = false
31+
dotnet_style_qualification_for_method = false:error
32+
dotnet_style_qualification_for_property = false:error
33+
34+
# Language keywords vs BCL types preferences
35+
dotnet_style_predefined_type_for_locals_parameters_members = true
36+
dotnet_style_predefined_type_for_member_access = true
37+
38+
# Parentheses preferences
39+
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:warning
40+
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:warning
41+
dotnet_style_parentheses_in_other_operators = always_for_clarity:warning
42+
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:warning
43+
44+
# Modifier preferences
45+
dotnet_style_require_accessibility_modifiers = for_non_interface_members
46+
47+
# Expression-level preferences
48+
dotnet_style_coalesce_expression = true:warning
49+
dotnet_style_collection_initializer = true:error
50+
dotnet_style_explicit_tuple_names = true:error
51+
dotnet_style_namespace_match_folder = true
52+
dotnet_style_null_propagation = true:warning
53+
dotnet_style_object_initializer = true:error
54+
dotnet_style_operator_placement_when_wrapping = beginning_of_line
55+
dotnet_style_prefer_auto_properties = true:warning
56+
dotnet_style_prefer_collection_expression = when_types_loosely_match
57+
dotnet_style_prefer_compound_assignment = true:error
58+
dotnet_style_prefer_conditional_expression_over_assignment = true:error
59+
dotnet_style_prefer_conditional_expression_over_return = true:error
60+
dotnet_style_prefer_foreach_explicit_cast_in_source = when_strongly_typed
61+
dotnet_style_prefer_inferred_anonymous_type_member_names = true:error
62+
dotnet_style_prefer_inferred_tuple_names = true:error
63+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:warning
64+
dotnet_style_prefer_simplified_boolean_expressions = true:error
65+
dotnet_style_prefer_simplified_interpolation = true
66+
67+
# Field preferences
68+
dotnet_style_readonly_field = true:error
69+
70+
# Parameter preferences
71+
dotnet_code_quality_unused_parameters = all:error
72+
73+
# Suppression preferences
74+
dotnet_remove_unnecessary_suppression_exclusions = none
75+
76+
# New line preferences
77+
dotnet_style_allow_multiple_blank_lines_experimental = false:error
78+
dotnet_style_allow_statement_immediately_after_block_experimental = false:warning
79+
80+
#### C# Coding Conventions ####
81+
82+
# var preferences
83+
csharp_style_var_elsewhere = false:error
84+
csharp_style_var_for_built_in_types = true:error
85+
csharp_style_var_when_type_is_apparent = true:error
3086

31-
dotnet_style_null_propagation = true:suggestion
32-
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
87+
# Expression-bodied members
88+
csharp_style_expression_bodied_accessors = true:warning
89+
csharp_style_expression_bodied_constructors = true:warning
90+
csharp_style_expression_bodied_indexers = true:warning
91+
csharp_style_expression_bodied_lambdas = true:warning
92+
csharp_style_expression_bodied_local_functions = false:silent
93+
csharp_style_expression_bodied_methods = true:warning
94+
csharp_style_expression_bodied_operators = true:warning
95+
csharp_style_expression_bodied_properties = true:warning
3396

34-
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
35-
csharp_style_pattern_local_over_is_with_cast_check = true:suggestion
97+
# Pattern matching preferences
98+
csharp_style_pattern_matching_over_as_with_null_check = true:error
99+
csharp_style_pattern_matching_over_is_with_cast_check = true:error
100+
csharp_style_prefer_extended_property_pattern = true:warning
101+
csharp_style_prefer_not_pattern = true:error
102+
csharp_style_prefer_pattern_matching = true:error
103+
csharp_style_prefer_switch_expression = true:error
36104

37-
csharp_style_var_for_built_in_types = false:none
38-
csharp_style_var_when_type_is_apparent = true:suggestion
39-
csharp_style_var_elsewhere = false:none
105+
# Null-checking preferences
106+
csharp_style_conditional_delegate_call = true:warning
40107

41-
csharp_style_expression_bodied_methods = false:none
42-
csharp_style_expression_bodied_properties = true:suggestion
43-
csharp_style_expression_bodied_accessors = true:suggestion
108+
# Modifier preferences
109+
csharp_prefer_static_local_function = true:warning
110+
csharp_preferred_modifier_order = public, private, protected, internal, static, extern, new, virtual, abstract, sealed, override, readonly, unsafe, volatile, async
111+
csharp_style_prefer_readonly_struct = true:warning
112+
csharp_style_prefer_readonly_struct_member = true:suggestion
44113

45-
csharp_style_namespace_declarations = file_scoped:suggestion
46-
csharp_using_directive_placement = outside_namespace:silent
114+
# Code-block preferences
115+
csharp_prefer_braces = when_multiline:error
116+
csharp_prefer_simple_using_statement = true:warning
117+
csharp_style_namespace_declarations = file_scoped:warning
118+
csharp_style_prefer_method_group_conversion = true:warning
119+
csharp_style_prefer_primary_constructors = true:suggestion
120+
csharp_style_prefer_top_level_statements = false:silent
47121

122+
# Expression-level preferences
123+
csharp_prefer_simple_default_expression = true:error
124+
csharp_style_deconstructed_variable_declaration = true:warning
125+
csharp_style_implicit_object_creation_when_type_is_apparent = true:error
126+
csharp_style_inlined_variable_declaration = true:warning
127+
csharp_style_prefer_index_operator = true:error
128+
csharp_style_prefer_local_over_anonymous_function = true:error
129+
csharp_style_prefer_null_check_over_type_check = true:warning
130+
csharp_style_prefer_range_operator = true:error
131+
csharp_style_prefer_tuple_swap = true:error
132+
csharp_style_prefer_utf8_string_literals = true:suggestion
133+
csharp_style_throw_expression = true:warning
134+
csharp_style_unused_value_assignment_preference = discard_variable:warning
135+
csharp_style_unused_value_expression_statement_preference = discard_variable:warning
136+
137+
# 'using' directive preferences
138+
csharp_using_directive_placement = outside_namespace:warning
139+
140+
# New line preferences
141+
csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = false:warning
142+
csharp_style_allow_blank_line_after_token_in_arrow_expression_clause_experimental = false:warning
143+
csharp_style_allow_blank_line_after_token_in_conditional_expression_experimental = false:warning
144+
csharp_style_allow_blank_lines_between_consecutive_braces_experimental = false:error
145+
csharp_style_allow_embedded_statements_on_same_line_experimental = true:warning
146+
147+
#### C# Formatting Rules ####
148+
149+
# New line preferences
150+
csharp_new_line_before_catch = true
151+
csharp_new_line_before_else = true
152+
csharp_new_line_before_finally = true
153+
csharp_new_line_before_members_in_anonymous_types = true
154+
csharp_new_line_before_members_in_object_initializers = true
48155
csharp_new_line_before_open_brace = all
49156
csharp_new_line_between_query_expression_clauses = true
50157

51-
# Analyzer Configuration
52-
dotnet_analyzer_diagnostic.severity = warning
158+
# Indentation preferences
159+
csharp_indent_block_contents = true
160+
csharp_indent_braces = false
161+
csharp_indent_case_contents = true
162+
csharp_indent_case_contents_when_block = false
163+
csharp_indent_labels = one_less_than_current
164+
csharp_indent_switch_labels = true
165+
166+
# Space preferences
167+
csharp_space_after_cast = false
168+
csharp_space_after_colon_in_inheritance_clause = true
169+
csharp_space_after_comma = true
170+
csharp_space_after_dot = false
171+
csharp_space_after_keywords_in_control_flow_statements = false
172+
csharp_space_after_semicolon_in_for_statement = true
173+
csharp_space_around_binary_operators = before_and_after
174+
csharp_space_around_declaration_statements = ignore
175+
csharp_space_before_colon_in_inheritance_clause = true
176+
csharp_space_before_comma = false
177+
csharp_space_before_dot = false
178+
csharp_space_before_open_square_brackets = false
179+
csharp_space_before_semicolon_in_for_statement = false
180+
csharp_space_between_empty_square_brackets = false
181+
csharp_space_between_method_call_empty_parameter_list_parentheses = false
182+
csharp_space_between_method_call_name_and_opening_parenthesis = false
183+
csharp_space_between_method_call_parameter_list_parentheses = false
184+
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
185+
csharp_space_between_method_declaration_name_and_open_parenthesis = false
186+
csharp_space_between_method_declaration_parameter_list_parentheses = false
187+
csharp_space_between_parentheses = false
188+
csharp_space_between_square_brackets = false
189+
190+
# Wrapping preferences
191+
csharp_preserve_single_line_blocks = true
192+
csharp_preserve_single_line_statements = false
193+
194+
#### Naming styles ####
195+
196+
# Naming rules
197+
198+
dotnet_naming_rule.interface_should_be_begins_with_i.severity = error
199+
dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
200+
dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
201+
202+
dotnet_naming_rule.types_should_be_pascal_case.severity = error
203+
dotnet_naming_rule.types_should_be_pascal_case.symbols = types
204+
dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
205+
206+
dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = warning
207+
dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
208+
dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
209+
210+
dotnet_naming_rule.static_field_should_be_pascal_case.severity = warning
211+
dotnet_naming_rule.static_field_should_be_pascal_case.symbols = static_field
212+
dotnet_naming_rule.static_field_should_be_pascal_case.style = pascal_case
213+
214+
# Symbol specifications
215+
216+
dotnet_naming_symbols.interface.applicable_kinds = interface
217+
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
218+
dotnet_naming_symbols.interface.required_modifiers =
219+
220+
dotnet_naming_symbols.static_field.applicable_kinds = field
221+
dotnet_naming_symbols.static_field.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
222+
dotnet_naming_symbols.static_field.required_modifiers = static
223+
224+
dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
225+
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
226+
dotnet_naming_symbols.types.required_modifiers =
227+
228+
dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
229+
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
230+
dotnet_naming_symbols.non_field_members.required_modifiers =
231+
232+
# Naming styles
53233

54-
dotnet_diagnostic.CA1062.severity = error
55-
dotnet_diagnostic.CA1822.severity = warning
56-
dotnet_diagnostic.CA2000.severity = error
234+
dotnet_naming_style.pascal_case.required_prefix =
235+
dotnet_naming_style.pascal_case.required_suffix =
236+
dotnet_naming_style.pascal_case.word_separator =
237+
dotnet_naming_style.pascal_case.capitalization = pascal_case
57238

58-
dotnet_diagnostic.SA0001.severity = warning
59-
dotnet_diagnostic.SA1401.severity = warning
60-
dotnet_diagnostic.SA1633.severity = none
239+
dotnet_naming_style.begins_with_i.required_prefix = I
240+
dotnet_naming_style.begins_with_i.required_suffix =
241+
dotnet_naming_style.begins_with_i.word_separator =
242+
dotnet_naming_style.begins_with_i.capitalization = pascal_case
61243

62-
[*.Tests/*.cs]
63-
dotnet_diagnostic.CA2000.severity = silent
64-
dotnet_analyzer_diagnostic.severity = warning
244+
[*.{cs,vb}]
245+
dotnet_style_operator_placement_when_wrapping = beginning_of_line
246+
tab_width = 4
247+
indent_size = 4
248+
end_of_line = crlf
249+
dotnet_style_coalesce_expression = true:warning
250+
dotnet_style_null_propagation = true:warning
251+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:warning
252+
dotnet_style_prefer_auto_properties = true:warning
253+
dotnet_style_object_initializer = true:error
254+
dotnet_style_collection_initializer = true:error
255+
dotnet_style_prefer_simplified_boolean_expressions = true:error
256+
dotnet_style_prefer_conditional_expression_over_assignment = true:error
257+
dotnet_style_explicit_tuple_names = true:error
258+
dotnet_style_prefer_conditional_expression_over_return = true:error
259+
dotnet_style_prefer_inferred_tuple_names = true:error
260+
dotnet_style_prefer_inferred_anonymous_type_member_names = true:error
261+
dotnet_style_prefer_compound_assignment = true:error
262+
dotnet_style_prefer_simplified_interpolation = true:error
263+
dotnet_style_prefer_collection_expression = when_types_loosely_match:suggestion
264+
dotnet_style_namespace_match_folder = true:suggestion
265+
dotnet_style_readonly_field = true:warning
266+
dotnet_style_predefined_type_for_member_access = true:silent
267+
dotnet_style_predefined_type_for_locals_parameters_members = true:silent
268+
dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
269+
dotnet_style_allow_multiple_blank_lines_experimental = false:error
270+
dotnet_style_allow_statement_immediately_after_block_experimental = false:warning
271+
dotnet_code_quality_unused_parameters = all:error
272+
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:warning
273+
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:warning
274+
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:warning
275+
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
276+
dotnet_style_qualification_for_field = false:silent
277+
dotnet_style_qualification_for_property = false:error
278+
dotnet_style_qualification_for_method = false:error
279+
dotnet_style_qualification_for_event = false:error

0 commit comments

Comments
 (0)