Skip to content

Commit d79527f

Browse files
committed
Initial
0 parents  commit d79527f

38 files changed

+2815
-0
lines changed

Diff for: .editorconfig

+183
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,183 @@
1+
# editorconfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Default settings:
7+
# A newline ending every file
8+
# Use 4 spaces as indentation
9+
[*]
10+
indent_style = space
11+
indent_size = 4
12+
13+
[*.json]
14+
indent_size = 2
15+
16+
# C# and VB files
17+
[*.{cs,vb}]
18+
charset = utf-8-bom
19+
insert_final_newline = true
20+
trim_trailing_whitespace = true
21+
22+
# avoid this. unless absolutely necessary
23+
dotnet_style_qualification_for_field = false:suggestion
24+
dotnet_style_qualification_for_property = false:suggestion
25+
dotnet_style_qualification_for_method = false:suggestion
26+
dotnet_style_qualification_for_event = false:suggestion
27+
# use language keywords instead of BCL types
28+
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
29+
dotnet_style_predefined_type_for_member_access = true:suggestion
30+
31+
# name all constant fields using PascalCase
32+
dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
33+
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
34+
dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
35+
36+
dotnet_naming_symbols.constant_fields.applicable_kinds = field
37+
dotnet_naming_symbols.constant_fields.required_modifiers = const
38+
39+
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
40+
41+
# static fields should have s_ prefix
42+
dotnet_naming_rule.static_fields_should_have_prefix.severity = suggestion
43+
dotnet_naming_rule.static_fields_should_have_prefix.symbols = static_fields
44+
dotnet_naming_rule.static_fields_should_have_prefix.style = static_prefix_style
45+
46+
dotnet_naming_symbols.static_fields.applicable_kinds = field
47+
dotnet_naming_symbols.static_fields.required_modifiers = static
48+
49+
dotnet_naming_style.static_prefix_style.required_prefix = s_
50+
dotnet_naming_style.static_prefix_style.capitalization = camel_case
51+
52+
# internal and private fields should be _camelCase
53+
dotnet_naming_rule.camel_case_for_private_internal_fields.severity = suggestion
54+
dotnet_naming_rule.camel_case_for_private_internal_fields.symbols = private_internal_fields
55+
dotnet_naming_rule.camel_case_for_private_internal_fields.style = camel_case_underscore_style
56+
57+
dotnet_naming_symbols.private_internal_fields.applicable_kinds = field
58+
dotnet_naming_symbols.private_internal_fields.applicable_accessibilities = private, internal
59+
60+
dotnet_naming_style.camel_case_underscore_style.required_prefix = _
61+
dotnet_naming_style.camel_case_underscore_style.capitalization = camel_case
62+
63+
# Code style defaults
64+
dotnet_sort_system_directives_first = true
65+
66+
# Expression-level preferences
67+
dotnet_style_object_initializer = true:suggestion
68+
dotnet_style_collection_initializer = true:suggestion
69+
dotnet_style_explicit_tuple_names = true:suggestion
70+
dotnet_style_coalesce_expression = true:suggestion
71+
dotnet_style_null_propagation = true:suggestion
72+
73+
# C# files
74+
[*.cs]
75+
76+
# .NET diagnostic
77+
dotnet_diagnostic.RS0041.severity = none
78+
79+
# New line preferences
80+
csharp_new_line_before_open_brace = all
81+
csharp_new_line_before_else = true
82+
csharp_new_line_before_catch = true
83+
csharp_new_line_before_finally = true
84+
csharp_new_line_before_members_in_object_initializers = true
85+
csharp_new_line_before_members_in_anonymous_types = true
86+
csharp_new_line_between_query_expression_clauses = true
87+
88+
# Indentation preferences
89+
csharp_indent_block_contents = true
90+
csharp_indent_braces = false
91+
csharp_indent_case_contents = true
92+
csharp_indent_switch_labels = true
93+
csharp_indent_labels = one_less_than_current
94+
95+
# only use var when it's obvious what the variable type is
96+
csharp_style_var_for_built_in_types = false:none
97+
csharp_style_var_when_type_is_apparent = true:suggestion
98+
csharp_style_var_elsewhere = false:suggestion
99+
100+
101+
# Code style defaults
102+
csharp_preserve_single_line_blocks = true
103+
csharp_preserve_single_line_statements = false
104+
105+
# Expression-bodied members
106+
csharp_style_expression_bodied_methods = false:none
107+
csharp_style_expression_bodied_constructors = false:none
108+
csharp_style_expression_bodied_operators = false:none
109+
csharp_style_expression_bodied_properties = true:none
110+
csharp_style_expression_bodied_indexers = true:none
111+
csharp_style_expression_bodied_accessors = true:none
112+
113+
# Pattern matching
114+
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
115+
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
116+
csharp_style_inlined_variable_declaration = true:suggestion
117+
118+
# Null checking preferences
119+
csharp_style_throw_expression = true:suggestion
120+
csharp_style_conditional_delegate_call = true:suggestion
121+
122+
# Space preferences
123+
csharp_space_after_cast = false
124+
csharp_space_after_colon_in_inheritance_clause = true
125+
csharp_space_after_comma = true
126+
csharp_space_after_dot = false
127+
csharp_space_after_keywords_in_control_flow_statements = true
128+
csharp_space_after_semicolon_in_for_statement = true
129+
csharp_space_around_binary_operators = before_and_after
130+
csharp_space_around_declaration_statements = do_not_ignore
131+
csharp_space_before_colon_in_inheritance_clause = true
132+
csharp_space_before_comma = false
133+
csharp_space_before_dot = false
134+
csharp_space_before_open_square_brackets = false
135+
csharp_space_before_semicolon_in_for_statement = false
136+
csharp_space_between_empty_square_brackets = false
137+
csharp_space_between_method_call_empty_parameter_list_parentheses = false
138+
csharp_space_between_method_call_name_and_opening_parenthesis = false
139+
csharp_space_between_method_call_parameter_list_parentheses = false
140+
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
141+
csharp_space_between_method_declaration_name_and_open_parenthesis = false
142+
csharp_space_between_method_declaration_parameter_list_parentheses = false
143+
csharp_space_between_parentheses = false
144+
csharp_space_between_square_brackets = false
145+
146+
# Visual Basic files
147+
[*.vb]
148+
# Modifier preferences
149+
visual_basic_preferred_modifier_order = Partial,Default,Private,Protected,Public,Friend,NotOverridable,Overridable,MustOverride,Overloads,Overrides,MustInherit,NotInheritable,Static,Shared,Shadows,ReadOnly,WriteOnly,Dim,Const,WithEvents,Widening,Narrowing,Custom,Async:suggestion
150+
151+
# C++ Files
152+
[*.{cpp,h,in}]
153+
curly_bracket_next_line = true
154+
indent_brace_style = Allman
155+
156+
# Xml project files
157+
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,nativeproj,locproj}]
158+
indent_size = 2
159+
160+
# Xml build files
161+
[*.builds]
162+
indent_size = 2
163+
164+
# Xml files
165+
[*.{xml,stylecop,ruleset}]
166+
indent_size = 2
167+
168+
# Xml config files
169+
[*.{props,targets,config,nuspec}]
170+
indent_size = 2
171+
172+
# resx Files
173+
[*.{resx,xlf}]
174+
indent_size = 2
175+
charset = utf-8-bom
176+
insert_final_newline = true
177+
178+
# Shell scripts
179+
[*.sh]
180+
end_of_line = lf
181+
182+
[*.{cmd,bat}]
183+
end_of_line = crlf

Diff for: .gitattributes

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
* text=auto
2+
3+
# Collapse XLF files in PRs by default
4+
*.xlf linguist-generated=true

0 commit comments

Comments
 (0)