Skip to content

Commit 02812ab

Browse files
committed
Add project files.
0 parents  commit 02812ab

23 files changed

+2100
-0
lines changed

.editorconfig

Lines changed: 304 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,304 @@
1+
# Remove the line below if you want to inherit .editorconfig settings from higher directories
2+
root = true
3+
4+
# C# files
5+
[*.cs]
6+
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 = false
17+
18+
#### .NET Coding Conventions ####
19+
20+
# Organize usings
21+
dotnet_separate_import_directive_groups = false
22+
dotnet_sort_system_directives_first = false
23+
file_header_template = unset
24+
25+
# this. and Me. preferences
26+
dotnet_style_qualification_for_event = false:suggestion
27+
dotnet_style_qualification_for_field = false
28+
dotnet_style_qualification_for_method = false:suggestion
29+
dotnet_style_qualification_for_property = false:suggestion
30+
31+
# Language keywords vs BCL types preferences
32+
dotnet_style_predefined_type_for_locals_parameters_members = true:warning
33+
dotnet_style_predefined_type_for_member_access = true:warning
34+
35+
# Parentheses preferences
36+
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:suggestion
37+
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:suggestion
38+
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:suggestion
39+
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:suggestion
40+
41+
# Modifier preferences
42+
dotnet_style_require_accessibility_modifiers = for_non_interface_members
43+
44+
# Expression-level preferences
45+
dotnet_style_coalesce_expression = true:warning
46+
dotnet_style_collection_initializer = true
47+
dotnet_style_explicit_tuple_names = true
48+
dotnet_style_namespace_match_folder = true
49+
dotnet_style_null_propagation = true:warning
50+
dotnet_style_object_initializer = true:silent
51+
dotnet_style_operator_placement_when_wrapping = beginning_of_line
52+
dotnet_style_prefer_auto_properties = true:warning
53+
dotnet_style_prefer_compound_assignment = true:warning
54+
dotnet_style_prefer_conditional_expression_over_assignment = true:suggestion
55+
dotnet_style_prefer_conditional_expression_over_return = false:suggestion
56+
dotnet_style_prefer_foreach_explicit_cast_in_source = when_strongly_typed
57+
dotnet_style_prefer_inferred_anonymous_type_member_names = true
58+
dotnet_style_prefer_inferred_tuple_names = true
59+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:warning
60+
dotnet_style_prefer_simplified_boolean_expressions = true:warning
61+
dotnet_style_prefer_simplified_interpolation = true
62+
63+
# Field preferences
64+
dotnet_style_readonly_field = true:warning
65+
66+
# Parameter preferences
67+
dotnet_code_quality_unused_parameters = all
68+
69+
# Suppression preferences
70+
dotnet_remove_unnecessary_suppression_exclusions = none
71+
72+
# New line preferences
73+
dotnet_style_allow_multiple_blank_lines_experimental = false:suggestion
74+
dotnet_style_allow_statement_immediately_after_block_experimental = false:suggestion
75+
76+
#### C# Coding Conventions ####
77+
78+
# var preferences
79+
csharp_style_var_elsewhere = true
80+
csharp_style_var_for_built_in_types = true:suggestion
81+
csharp_style_var_when_type_is_apparent = true:suggestion
82+
83+
# Expression-bodied members
84+
csharp_style_expression_bodied_accessors = when_on_single_line:suggestion
85+
csharp_style_expression_bodied_constructors = false:suggestion
86+
csharp_style_expression_bodied_indexers = when_on_single_line:suggestion
87+
csharp_style_expression_bodied_lambdas = when_on_single_line:suggestion
88+
csharp_style_expression_bodied_local_functions = when_on_single_line:suggestion
89+
csharp_style_expression_bodied_methods = when_on_single_line:suggestion
90+
csharp_style_expression_bodied_operators = when_on_single_line:suggestion
91+
csharp_style_expression_bodied_properties = when_on_single_line:suggestion
92+
93+
# Pattern matching preferences
94+
csharp_style_pattern_matching_over_as_with_null_check = true:warning
95+
csharp_style_pattern_matching_over_is_with_cast_check = true:warning
96+
csharp_style_prefer_extended_property_pattern = true
97+
csharp_style_prefer_not_pattern = true
98+
csharp_style_prefer_pattern_matching = true:suggestion
99+
csharp_style_prefer_switch_expression = true
100+
101+
# Null-checking preferences
102+
csharp_style_conditional_delegate_call = true:warning
103+
104+
# Modifier preferences
105+
csharp_prefer_static_local_function = true:warning
106+
csharp_preferred_modifier_order = public,private,protected,internal,file,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,required,volatile,async
107+
csharp_style_prefer_readonly_struct = true:warning
108+
109+
# Code-block preferences
110+
csharp_prefer_braces = when_multiline:warning
111+
csharp_prefer_simple_using_statement = true
112+
csharp_style_namespace_declarations = block_scoped:suggestion
113+
csharp_style_prefer_method_group_conversion = true:suggestion
114+
csharp_style_prefer_top_level_statements = true
115+
116+
# Expression-level preferences
117+
csharp_prefer_simple_default_expression = true
118+
csharp_style_deconstructed_variable_declaration = true
119+
csharp_style_implicit_object_creation_when_type_is_apparent = true
120+
csharp_style_inlined_variable_declaration = true:warning
121+
csharp_style_prefer_index_operator = true:warning
122+
csharp_style_prefer_local_over_anonymous_function = true:warning
123+
csharp_style_prefer_null_check_over_type_check = true
124+
csharp_style_prefer_range_operator = true
125+
csharp_style_prefer_tuple_swap = true:warning
126+
csharp_style_prefer_utf8_string_literals = true
127+
csharp_style_throw_expression = true
128+
csharp_style_unused_value_assignment_preference = discard_variable
129+
csharp_style_unused_value_expression_statement_preference = discard_variable
130+
131+
# 'using' directive preferences
132+
csharp_using_directive_placement = outside_namespace:suggestion
133+
134+
# New line preferences
135+
csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = false:suggestion
136+
csharp_style_allow_blank_line_after_token_in_arrow_expression_clause_experimental = false:warning
137+
csharp_style_allow_blank_line_after_token_in_conditional_expression_experimental = true
138+
csharp_style_allow_blank_lines_between_consecutive_braces_experimental = false:suggestion
139+
csharp_style_allow_embedded_statements_on_same_line_experimental = false:suggestion
140+
141+
#### C# Formatting Rules ####
142+
143+
# New line preferences
144+
csharp_new_line_before_catch = true
145+
csharp_new_line_before_else = true
146+
csharp_new_line_before_finally = true
147+
csharp_new_line_before_members_in_anonymous_types = true
148+
csharp_new_line_before_members_in_object_initializers = true
149+
csharp_new_line_before_open_brace = all
150+
csharp_new_line_between_query_expression_clauses = true
151+
152+
# Indentation preferences
153+
csharp_indent_block_contents = true
154+
csharp_indent_braces = false
155+
csharp_indent_case_contents = true
156+
csharp_indent_case_contents_when_block = true
157+
csharp_indent_labels = flush_left
158+
csharp_indent_switch_labels = true
159+
160+
# Space preferences
161+
csharp_space_after_cast = false
162+
csharp_space_after_colon_in_inheritance_clause = true
163+
csharp_space_after_comma = true
164+
csharp_space_after_dot = false
165+
csharp_space_after_keywords_in_control_flow_statements = true
166+
csharp_space_after_semicolon_in_for_statement = true
167+
csharp_space_around_binary_operators = before_and_after
168+
csharp_space_around_declaration_statements = false
169+
csharp_space_before_colon_in_inheritance_clause = true
170+
csharp_space_before_comma = false
171+
csharp_space_before_dot = false
172+
csharp_space_before_open_square_brackets = false
173+
csharp_space_before_semicolon_in_for_statement = false
174+
csharp_space_between_empty_square_brackets = false
175+
csharp_space_between_method_call_empty_parameter_list_parentheses = false
176+
csharp_space_between_method_call_name_and_opening_parenthesis = false
177+
csharp_space_between_method_call_parameter_list_parentheses = false
178+
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
179+
csharp_space_between_method_declaration_name_and_open_parenthesis = false
180+
csharp_space_between_method_declaration_parameter_list_parentheses = false
181+
csharp_space_between_parentheses = false
182+
csharp_space_between_square_brackets = false
183+
184+
# Wrapping preferences
185+
csharp_preserve_single_line_blocks = true
186+
csharp_preserve_single_line_statements = true
187+
188+
#### Naming styles ####
189+
190+
# Naming rules
191+
192+
dotnet_naming_rule.interface_should_be_ipascalcase.severity = warning
193+
dotnet_naming_rule.interface_should_be_ipascalcase.symbols = interface
194+
dotnet_naming_rule.interface_should_be_ipascalcase.style = ipascalcase
195+
196+
dotnet_naming_rule.types_should_be_pascalcase.severity = warning
197+
dotnet_naming_rule.types_should_be_pascalcase.symbols = types
198+
dotnet_naming_rule.types_should_be_pascalcase.style = pascalcase
199+
200+
dotnet_naming_rule.type_parameters_should_be_tpascalcase.severity = suggestion
201+
dotnet_naming_rule.type_parameters_should_be_tpascalcase.symbols = type_parameters
202+
dotnet_naming_rule.type_parameters_should_be_tpascalcase.style = tpascalcase
203+
204+
dotnet_naming_rule.async_methods_should_be_pascalcaseasync.severity = suggestion
205+
dotnet_naming_rule.async_methods_should_be_pascalcaseasync.symbols = async_methods
206+
dotnet_naming_rule.async_methods_should_be_pascalcaseasync.style = pascalcaseasync
207+
208+
dotnet_naming_rule.method_like_members_should_be_pascalcase.severity = warning
209+
dotnet_naming_rule.method_like_members_should_be_pascalcase.symbols = method_like_members
210+
dotnet_naming_rule.method_like_members_should_be_pascalcase.style = pascalcase
211+
212+
dotnet_naming_rule.public_members_should_be_pascalcase.severity = warning
213+
dotnet_naming_rule.public_members_should_be_pascalcase.symbols = public_members
214+
dotnet_naming_rule.public_members_should_be_pascalcase.style = pascalcase
215+
216+
dotnet_naming_rule.constants_should_be_pascalcase.severity = suggestion
217+
dotnet_naming_rule.constants_should_be_pascalcase.symbols = constants
218+
dotnet_naming_rule.constants_should_be_pascalcase.style = pascalcase
219+
220+
dotnet_naming_rule.private_field_should_be__camelcase.severity = warning
221+
dotnet_naming_rule.private_field_should_be__camelcase.symbols = private_field
222+
dotnet_naming_rule.private_field_should_be__camelcase.style = _camelcase
223+
224+
dotnet_naming_rule.class_internal_fields_should_be_camelcase.severity = warning
225+
dotnet_naming_rule.class_internal_fields_should_be_camelcase.symbols = class_internal_fields
226+
dotnet_naming_rule.class_internal_fields_should_be_camelcase.style = camelcase
227+
228+
dotnet_naming_rule.locals_should_be_camelcase.severity = silent
229+
dotnet_naming_rule.locals_should_be_camelcase.symbols = locals
230+
dotnet_naming_rule.locals_should_be_camelcase.style = camelcase
231+
232+
# Symbol specifications
233+
234+
dotnet_naming_symbols.interface.applicable_kinds = interface
235+
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
236+
dotnet_naming_symbols.interface.required_modifiers =
237+
238+
dotnet_naming_symbols.private_field.applicable_kinds = field
239+
dotnet_naming_symbols.private_field.applicable_accessibilities = private
240+
dotnet_naming_symbols.private_field.required_modifiers =
241+
242+
dotnet_naming_symbols.types.applicable_kinds = class, struct, enum, delegate
243+
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
244+
dotnet_naming_symbols.types.required_modifiers =
245+
246+
dotnet_naming_symbols.class_internal_fields.applicable_kinds = field
247+
dotnet_naming_symbols.class_internal_fields.applicable_accessibilities = protected, private_protected
248+
dotnet_naming_symbols.class_internal_fields.required_modifiers =
249+
250+
dotnet_naming_symbols.method_like_members.applicable_kinds = property, field, event, delegate, method, local_function
251+
dotnet_naming_symbols.method_like_members.applicable_accessibilities = *
252+
dotnet_naming_symbols.method_like_members.required_modifiers =
253+
254+
dotnet_naming_symbols.locals.applicable_kinds = parameter, local
255+
dotnet_naming_symbols.locals.applicable_accessibilities = local
256+
dotnet_naming_symbols.locals.required_modifiers =
257+
258+
dotnet_naming_symbols.type_parameters.applicable_kinds = type_parameter
259+
dotnet_naming_symbols.type_parameters.applicable_accessibilities = *
260+
dotnet_naming_symbols.type_parameters.required_modifiers =
261+
262+
dotnet_naming_symbols.public_members.applicable_kinds = property, field, event, method
263+
dotnet_naming_symbols.public_members.applicable_accessibilities = public, internal, protected_internal
264+
dotnet_naming_symbols.public_members.required_modifiers =
265+
266+
dotnet_naming_symbols.constants.applicable_kinds = field, local
267+
dotnet_naming_symbols.constants.applicable_accessibilities = *
268+
dotnet_naming_symbols.constants.required_modifiers = const
269+
270+
dotnet_naming_symbols.async_methods.applicable_kinds = method, local_function
271+
dotnet_naming_symbols.async_methods.applicable_accessibilities = *
272+
dotnet_naming_symbols.async_methods.required_modifiers = async
273+
274+
# Naming styles
275+
276+
dotnet_naming_style.pascalcase.required_prefix =
277+
dotnet_naming_style.pascalcase.required_suffix =
278+
dotnet_naming_style.pascalcase.word_separator =
279+
dotnet_naming_style.pascalcase.capitalization = pascal_case
280+
281+
dotnet_naming_style.ipascalcase.required_prefix = I
282+
dotnet_naming_style.ipascalcase.required_suffix =
283+
dotnet_naming_style.ipascalcase.word_separator =
284+
dotnet_naming_style.ipascalcase.capitalization = pascal_case
285+
286+
dotnet_naming_style.camelcase.required_prefix =
287+
dotnet_naming_style.camelcase.required_suffix =
288+
dotnet_naming_style.camelcase.word_separator =
289+
dotnet_naming_style.camelcase.capitalization = camel_case
290+
291+
dotnet_naming_style.tpascalcase.required_prefix = T
292+
dotnet_naming_style.tpascalcase.required_suffix =
293+
dotnet_naming_style.tpascalcase.word_separator =
294+
dotnet_naming_style.tpascalcase.capitalization = pascal_case
295+
296+
dotnet_naming_style._camelcase.required_prefix = _
297+
dotnet_naming_style._camelcase.required_suffix =
298+
dotnet_naming_style._camelcase.word_separator =
299+
dotnet_naming_style._camelcase.capitalization = camel_case
300+
301+
dotnet_naming_style.pascalcaseasync.required_prefix =
302+
dotnet_naming_style.pascalcaseasync.required_suffix = Async
303+
dotnet_naming_style.pascalcaseasync.word_separator =
304+
dotnet_naming_style.pascalcaseasync.capitalization = pascal_case

.gitattributes

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
###############################################################################
2+
# Set default behavior to automatically normalize line endings.
3+
###############################################################################
4+
* text=auto
5+
6+
###############################################################################
7+
# Set default behavior for command prompt diff.
8+
#
9+
# This is need for earlier builds of msysgit that does not have it on by
10+
# default for csharp files.
11+
# Note: This is only used by command line
12+
###############################################################################
13+
#*.cs diff=csharp
14+
15+
###############################################################################
16+
# Set the merge driver for project and solution files
17+
#
18+
# Merging from the command prompt will add diff markers to the files if there
19+
# are conflicts (Merging from VS is not affected by the settings below, in VS
20+
# the diff markers are never inserted). Diff markers may cause the following
21+
# file extensions to fail to load in VS. An alternative would be to treat
22+
# these files as binary and thus will always conflict and require user
23+
# intervention with every merge. To do so, just uncomment the entries below
24+
###############################################################################
25+
#*.sln merge=binary
26+
#*.csproj merge=binary
27+
#*.vbproj merge=binary
28+
#*.vcxproj merge=binary
29+
#*.vcproj merge=binary
30+
#*.dbproj merge=binary
31+
#*.fsproj merge=binary
32+
#*.lsproj merge=binary
33+
#*.wixproj merge=binary
34+
#*.modelproj merge=binary
35+
#*.sqlproj merge=binary
36+
#*.wwaproj merge=binary
37+
38+
###############################################################################
39+
# behavior for image files
40+
#
41+
# image files are treated as binary by default.
42+
###############################################################################
43+
#*.jpg binary
44+
#*.png binary
45+
#*.gif binary
46+
47+
###############################################################################
48+
# diff behavior for common document formats
49+
#
50+
# Convert binary document formats to text before diffing them. This feature
51+
# is only available from the command line. Turn it on by uncommenting the
52+
# entries below.
53+
###############################################################################
54+
#*.doc diff=astextplain
55+
#*.DOC diff=astextplain
56+
#*.docx diff=astextplain
57+
#*.DOCX diff=astextplain
58+
#*.dot diff=astextplain
59+
#*.DOT diff=astextplain
60+
#*.pdf diff=astextplain
61+
#*.PDF diff=astextplain
62+
#*.rtf diff=astextplain
63+
#*.RTF diff=astextplain

0 commit comments

Comments
 (0)