Skip to content

Commit df96130

Browse files
Upgraded do cake 2.0.0. Following cake-contrib guidelines
1 parent 46ee779 commit df96130

24 files changed

+812
-827
lines changed

.appveyor.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Build Script #
33
#---------------------------------#
44
build_script:
5-
- ps: .\build.ps1 -Target AppVeyor
5+
- ps: .\build.ps1 --target AppVeyor
66

77
# Tests
88
test: off
@@ -22,5 +22,4 @@ branches:
2222
# Build Cache #
2323
#---------------------------------#
2424
cache:
25-
- Source\packages -> Source\**\packages.config
2625
- tools -> setup.cake

.config/dotnet-tools.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"version": 1,
3+
"isRoot": true,
4+
"tools": {
5+
"cake.tool": {
6+
"version": "2.0.0",
7+
"commands": [
8+
"dotnet-cake"
9+
]
10+
}
11+
}
12+
}

.editorconfig

Lines changed: 255 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,255 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# C# files
7+
[*.cs]
8+
9+
#### Core EditorConfig Options ####
10+
11+
# Indentation and spacing
12+
indent_size = 4
13+
indent_style = space
14+
tab_width = 4
15+
16+
# New line preferences
17+
end_of_line = crlf
18+
insert_final_newline = true
19+
20+
#### .NET Coding Conventions ####
21+
22+
# Organize usings
23+
dotnet_separate_import_directive_groups = true
24+
dotnet_sort_system_directives_first = true
25+
file_header_template = unset
26+
27+
# this. and Me. preferences
28+
dotnet_style_qualification_for_event = false:warning
29+
dotnet_style_qualification_for_field = false:warning
30+
dotnet_style_qualification_for_method = false:warning
31+
dotnet_style_qualification_for_property = false:warning
32+
33+
# Language keywords vs BCL types preferences
34+
dotnet_style_predefined_type_for_locals_parameters_members = true:warning
35+
dotnet_style_predefined_type_for_member_access = true:warning
36+
37+
# Parentheses preferences
38+
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent
39+
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent
40+
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
41+
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent
42+
43+
# Modifier preferences
44+
dotnet_style_require_accessibility_modifiers = for_non_interface_members:warning
45+
46+
# Expression-level preferences
47+
dotnet_style_coalesce_expression = true:suggestion
48+
dotnet_style_collection_initializer = true:suggestion
49+
dotnet_style_explicit_tuple_names = true:suggestion
50+
dotnet_style_null_propagation = true:suggestion
51+
dotnet_style_object_initializer = true:suggestion
52+
dotnet_style_operator_placement_when_wrapping = beginning_of_line
53+
dotnet_style_prefer_auto_properties = true:silent
54+
dotnet_style_prefer_compound_assignment = true:suggestion
55+
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
56+
dotnet_style_prefer_conditional_expression_over_return = true:silent
57+
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
58+
dotnet_style_prefer_inferred_tuple_names = true:suggestion
59+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
60+
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
61+
dotnet_style_prefer_simplified_interpolation = true:suggestion
62+
63+
# Field preferences
64+
dotnet_style_readonly_field = true:suggestion
65+
66+
# Parameter preferences
67+
dotnet_code_quality_unused_parameters = all:suggestion
68+
69+
#### C# Coding Conventions ####
70+
71+
# var preferences
72+
csharp_style_var_elsewhere = false:silent
73+
csharp_style_var_for_built_in_types = false:silent
74+
csharp_style_var_when_type_is_apparent = false:silent
75+
76+
# Expression-bodied members
77+
csharp_style_expression_bodied_accessors = true:silent
78+
csharp_style_expression_bodied_constructors = false:silent
79+
csharp_style_expression_bodied_indexers = true:silent
80+
csharp_style_expression_bodied_lambdas = true:silent
81+
csharp_style_expression_bodied_local_functions = false:silent
82+
csharp_style_expression_bodied_methods = false:silent
83+
csharp_style_expression_bodied_operators = false:silent
84+
csharp_style_expression_bodied_properties = true:silent
85+
86+
# Pattern matching preferences
87+
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
88+
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
89+
csharp_style_prefer_switch_expression = true:suggestion
90+
91+
# Null-checking preferences
92+
csharp_style_conditional_delegate_call = true:suggestion
93+
94+
# Modifier preferences
95+
csharp_prefer_static_local_function = true:suggestion
96+
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:silent
97+
98+
# Code-block preferences
99+
csharp_prefer_braces = true:silent
100+
csharp_prefer_simple_using_statement = true:suggestion
101+
102+
# Expression-level preferences
103+
csharp_prefer_simple_default_expression = true:suggestion
104+
csharp_style_deconstructed_variable_declaration = true:suggestion
105+
csharp_style_inlined_variable_declaration = true:suggestion
106+
csharp_style_pattern_local_over_anonymous_function = true:suggestion
107+
csharp_style_prefer_index_operator = true:suggestion
108+
csharp_style_prefer_range_operator = true:suggestion
109+
csharp_style_throw_expression = true:suggestion
110+
csharp_style_unused_value_assignment_preference = discard_variable:suggestion
111+
csharp_style_unused_value_expression_statement_preference = discard_variable:silent
112+
113+
# 'using' directive preferences
114+
csharp_using_directive_placement = outside_namespace:warning
115+
116+
#### C# Formatting Rules ####
117+
118+
# New line preferences
119+
csharp_new_line_before_catch = true
120+
csharp_new_line_before_else = true
121+
csharp_new_line_before_finally = true
122+
csharp_new_line_before_members_in_anonymous_types = true
123+
csharp_new_line_before_members_in_object_initializers = true
124+
csharp_new_line_before_open_brace = all
125+
csharp_new_line_between_query_expression_clauses = true
126+
127+
# Indentation preferences
128+
csharp_indent_block_contents = true
129+
csharp_indent_braces = false
130+
csharp_indent_case_contents = true
131+
csharp_indent_case_contents_when_block = false
132+
csharp_indent_labels = flush_left
133+
csharp_indent_switch_labels = true
134+
135+
# Space preferences
136+
csharp_space_after_cast = false
137+
csharp_space_after_colon_in_inheritance_clause = true
138+
csharp_space_after_comma = true
139+
csharp_space_after_dot = false
140+
csharp_space_after_keywords_in_control_flow_statements = true
141+
csharp_space_after_semicolon_in_for_statement = true
142+
csharp_space_around_binary_operators = before_and_after
143+
csharp_space_around_declaration_statements = false
144+
csharp_space_before_colon_in_inheritance_clause = true
145+
csharp_space_before_comma = false
146+
csharp_space_before_dot = false
147+
csharp_space_before_open_square_brackets = false
148+
csharp_space_before_semicolon_in_for_statement = false
149+
csharp_space_between_empty_square_brackets = false
150+
csharp_space_between_method_call_empty_parameter_list_parentheses = false
151+
csharp_space_between_method_call_name_and_opening_parenthesis = false
152+
csharp_space_between_method_call_parameter_list_parentheses = false
153+
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
154+
csharp_space_between_method_declaration_name_and_open_parenthesis = false
155+
csharp_space_between_method_declaration_parameter_list_parentheses = false
156+
csharp_space_between_parentheses = false
157+
csharp_space_between_square_brackets = false
158+
159+
# Wrapping preferences
160+
csharp_preserve_single_line_blocks = true
161+
csharp_preserve_single_line_statements = false
162+
163+
#### Naming styles ####
164+
165+
# Naming rules
166+
167+
dotnet_naming_rule.interface_should_be_begins_with_i.severity = warning
168+
dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
169+
dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
170+
171+
dotnet_naming_rule.types_should_be_pascal_case.severity = warning
172+
dotnet_naming_rule.types_should_be_pascal_case.symbols = types
173+
dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
174+
175+
dotnet_naming_rule.method_should_be_pascal_case.severity = warning
176+
dotnet_naming_rule.method_should_be_pascal_case.symbols = method
177+
dotnet_naming_rule.method_should_be_pascal_case.style = pascal_case
178+
179+
dotnet_naming_rule.public_or_protected_field_should_be_pascal_case.severity = warning
180+
dotnet_naming_rule.public_or_protected_field_should_be_pascal_case.symbols = public_or_protected_field
181+
dotnet_naming_rule.public_or_protected_field_should_be_pascal_case.style = pascal_case
182+
183+
dotnet_naming_rule.private_or_internal_static_field_should_be_pascal_case.severity = warning
184+
dotnet_naming_rule.private_or_internal_static_field_should_be_pascal_case.symbols = private_or_internal_static_field
185+
dotnet_naming_rule.private_or_internal_static_field_should_be_pascal_case.style = pascal_case
186+
187+
#dotnet_naming_rule.private_or_internal_field_should_be_camelcase.severity = warning
188+
#dotnet_naming_rule.private_or_internal_field_should_be_camelcase.symbols = private_or_internal_field
189+
#dotnet_naming_rule.private_or_internal_field_should_be_camelcase.style = camelcase
190+
191+
dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = warning
192+
dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
193+
dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
194+
195+
# Symbol specifications
196+
197+
dotnet_naming_symbols.interface.applicable_kinds = interface
198+
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
199+
dotnet_naming_symbols.interface.required_modifiers =
200+
201+
dotnet_naming_symbols.method.applicable_kinds = method
202+
dotnet_naming_symbols.method.applicable_accessibilities = public
203+
dotnet_naming_symbols.method.required_modifiers =
204+
205+
dotnet_naming_symbols.public_or_protected_field.applicable_kinds = field
206+
dotnet_naming_symbols.public_or_protected_field.applicable_accessibilities = public, protected
207+
dotnet_naming_symbols.public_or_protected_field.required_modifiers =
208+
209+
dotnet_naming_symbols.private_or_internal_field.applicable_kinds = field
210+
dotnet_naming_symbols.private_or_internal_field.applicable_accessibilities = internal, private, private_protected
211+
dotnet_naming_symbols.private_or_internal_field.required_modifiers =
212+
213+
dotnet_naming_symbols.private_or_internal_static_field.applicable_kinds = field
214+
dotnet_naming_symbols.private_or_internal_static_field.applicable_accessibilities = internal, private, private_protected
215+
dotnet_naming_symbols.private_or_internal_static_field.required_modifiers = static
216+
217+
dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
218+
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
219+
dotnet_naming_symbols.types.required_modifiers =
220+
221+
dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
222+
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
223+
dotnet_naming_symbols.non_field_members.required_modifiers =
224+
225+
# Naming styles
226+
227+
dotnet_naming_style.pascal_case.required_prefix =
228+
dotnet_naming_style.pascal_case.required_suffix =
229+
dotnet_naming_style.pascal_case.word_separator =
230+
dotnet_naming_style.pascal_case.capitalization = pascal_case
231+
232+
dotnet_naming_style.begins_with_i.required_prefix = I
233+
dotnet_naming_style.begins_with_i.required_suffix =
234+
dotnet_naming_style.begins_with_i.word_separator =
235+
dotnet_naming_style.begins_with_i.capitalization = pascal_case
236+
237+
dotnet_naming_style.camelcase.required_prefix =
238+
dotnet_naming_style.camelcase.required_suffix =
239+
dotnet_naming_style.camelcase.word_separator =
240+
dotnet_naming_style.camelcase.capitalization = camel_case
241+
242+
dotnet_naming_rule.instance_fields_should_be_camel_case.severity = suggestion
243+
dotnet_naming_rule.instance_fields_should_be_camel_case.symbols = instance_fields
244+
dotnet_naming_rule.instance_fields_should_be_camel_case.style = instance_field_style
245+
dotnet_naming_symbols.instance_fields.applicable_kinds = field
246+
dotnet_naming_style.instance_field_style.capitalization = camel_case
247+
dotnet_naming_style.instance_field_style.required_prefix = _
248+
249+
# Rules:
250+
251+
# SA1101: Prefix local calls with this
252+
dotnet_diagnostic.SA1101.severity = none
253+
dotnet_diagnostic.SA1309.severity = none
254+
dotnet_diagnostic.SA1600.severity = none
255+
dotnet_diagnostic.SA1633.severity = none

0 commit comments

Comments
 (0)