Skip to content

Commit 8f88af9

Browse files
refactor: build
1 parent 4651f32 commit 8f88af9

15 files changed

Lines changed: 243 additions & 329 deletions

File tree

src/1-Libraries/Application/Application.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<RootNamespace>CanBeYours.Application</RootNamespace>
66
</PropertyGroup>
77
<ItemGroup>
8-
<PackageReference Include="CodeBlock.DevKit.Application" Version="1.3.0" />
8+
<PackageReference Include="CodeBlock.DevKit.Application" Version="1.3.3" />
99
</ItemGroup>
1010
<ItemGroup>
1111
<ProjectReference Include="..\Domain\Domain.csproj" />

src/1-Libraries/Domain/Domain.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
<RootNamespace>CanBeYours.Domain</RootNamespace>
77
</PropertyGroup>
88
<ItemGroup>
9-
<PackageReference Include="CodeBlock.DevKit.Domain" Version="1.3.0" />
9+
<PackageReference Include="CodeBlock.DevKit.Domain" Version="1.3.3" />
1010
</ItemGroup>
1111
</Project>

src/1-Libraries/Infrastructure/Infrastructure.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<RootNamespace>CanBeYours.Infrastructure</RootNamespace>
77
</PropertyGroup>
88
<ItemGroup>
9-
<PackageReference Include="CodeBlock.DevKit.Infrastructure" Version="1.3.0" />
9+
<PackageReference Include="CodeBlock.DevKit.Infrastructure" Version="1.3.3" />
1010
</ItemGroup>
1111
<ItemGroup>
1212
<ProjectReference Include="..\Application\Application.csproj" />

src/2-Clients/AdminPanel/AdminPanel.csproj

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>
88
<ItemGroup>
9-
<PackageReference Include="CodeBlock.DevKit.Core" Version="1.3.0" />
10-
<PackageReference Include="CodeBlock.DevKit.Application" Version="1.3.0" />
11-
<PackageReference Include="CodeBlock.DevKit.Authorization" Version="1.3.0" />
12-
<PackageReference Include="CodeBlock.DevKit.Authorization.UI" Version="1.3.0" />
13-
<PackageReference Include="CodeBlock.DevKit.Web" Version="1.3.0" />
14-
<PackageReference Include="CodeBlock.DevKit.Web.Blazor.Server" Version="1.3.0" />
15-
<PackageReference Include="CodeBlock.DevKit.Licensing" Version="1.3.0" />
16-
<PackageReference Include="CodeBlock.DevKit.Licensing.UI" Version="1.3.0" />
17-
<PackageReference Include="CodeBlock.DevKit.Clients.AdminPanel" Version="1.3.0" />
9+
<PackageReference Include="CodeBlock.DevKit.Core" Version="1.3.3" />
10+
<PackageReference Include="CodeBlock.DevKit.Application" Version="1.3.3" />
11+
<PackageReference Include="CodeBlock.DevKit.Authorization" Version="1.3.3" />
12+
<PackageReference Include="CodeBlock.DevKit.Authorization.UI" Version="1.3.3" />
13+
<PackageReference Include="CodeBlock.DevKit.Web" Version="1.3.3" />
14+
<PackageReference Include="CodeBlock.DevKit.Web.Blazor.Server" Version="1.3.3" />
15+
<PackageReference Include="CodeBlock.DevKit.Licensing" Version="1.3.3" />
16+
<PackageReference Include="CodeBlock.DevKit.Licensing.UI" Version="1.3.3" />
17+
<PackageReference Include="CodeBlock.DevKit.Clients.AdminPanel" Version="1.3.3" />
1818
</ItemGroup>
1919
<ItemGroup>
2020
<ProjectReference Include="..\..\1-Libraries\Infrastructure\Infrastructure.csproj" />

src/2-Clients/Api/Api.csproj

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>
88
<ItemGroup>
9-
<PackageReference Include="CodeBlock.DevKit.Core" Version="1.3.0" />
10-
<PackageReference Include="CodeBlock.DevKit.Application" Version="1.3.0" />
11-
<PackageReference Include="CodeBlock.DevKit.Authorization" Version="1.3.0" />
12-
<PackageReference Include="CodeBlock.DevKit.Authorization.Api" Version="1.3.0" />
13-
<PackageReference Include="CodeBlock.DevKit.Web" Version="1.3.0" />
14-
<PackageReference Include="CodeBlock.DevKit.Api" Version="1.3.0" />
15-
<PackageReference Include="CodeBlock.DevKit.Licensing" Version="1.3.0" />
16-
<PackageReference Include="CodeBlock.DevKit.Licensing.Api" Version="1.3.0" />
17-
<PackageReference Include="CodeBlock.DevKit.Clients.Api" Version="1.3.0" />
9+
<PackageReference Include="CodeBlock.DevKit.Core" Version="1.3.3" />
10+
<PackageReference Include="CodeBlock.DevKit.Application" Version="1.3.3" />
11+
<PackageReference Include="CodeBlock.DevKit.Authorization" Version="1.3.3" />
12+
<PackageReference Include="CodeBlock.DevKit.Authorization.Api" Version="1.3.3" />
13+
<PackageReference Include="CodeBlock.DevKit.Web" Version="1.3.3" />
14+
<PackageReference Include="CodeBlock.DevKit.Web.Api" Version="1.3.3" />
15+
<PackageReference Include="CodeBlock.DevKit.Licensing" Version="1.3.3" />
16+
<PackageReference Include="CodeBlock.DevKit.Licensing.Api" Version="1.3.3" />
17+
<PackageReference Include="CodeBlock.DevKit.Clients.Api" Version="1.3.3" />
1818
</ItemGroup>
1919
<ItemGroup>
2020
<ProjectReference Include="..\..\1-Libraries\Infrastructure\Infrastructure.csproj" />

src/2-Clients/WebApp/WebApp.csproj

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>
88
<ItemGroup>
9-
<PackageReference Include="CodeBlock.DevKit.Core" Version="1.3.0" />
10-
<PackageReference Include="CodeBlock.DevKit.Application" Version="1.3.0" />
11-
<PackageReference Include="CodeBlock.DevKit.Authorization" Version="1.3.0" />
12-
<PackageReference Include="CodeBlock.DevKit.Authorization.UI" Version="1.3.0" />
13-
<PackageReference Include="CodeBlock.DevKit.Web" Version="1.3.0" />
14-
<PackageReference Include="CodeBlock.DevKit.Web.Blazor.Server" Version="1.3.0" />
15-
<PackageReference Include="CodeBlock.DevKit.Licensing" Version="1.3.0" />
16-
<PackageReference Include="CodeBlock.DevKit.Licensing.UI" Version="1.3.0" />
17-
<PackageReference Include="CodeBlock.DevKit.Clients.Website" Version="1.3.0" />
9+
<PackageReference Include="CodeBlock.DevKit.Core" Version="1.3.3" />
10+
<PackageReference Include="CodeBlock.DevKit.Application" Version="1.3.3" />
11+
<PackageReference Include="CodeBlock.DevKit.Authorization" Version="1.3.3" />
12+
<PackageReference Include="CodeBlock.DevKit.Authorization.UI" Version="1.3.3" />
13+
<PackageReference Include="CodeBlock.DevKit.Web" Version="1.3.3" />
14+
<PackageReference Include="CodeBlock.DevKit.Web.Blazor.Server" Version="1.3.3" />
15+
<PackageReference Include="CodeBlock.DevKit.Licensing" Version="1.3.3" />
16+
<PackageReference Include="CodeBlock.DevKit.Licensing.UI" Version="1.3.3" />
17+
<PackageReference Include="CodeBlock.DevKit.Clients.Website" Version="1.3.3" />
1818
</ItemGroup>
1919
<ItemGroup>
2020
<ProjectReference Include="..\..\1-Libraries\Infrastructure\Infrastructure.csproj" />

src/4-Build/.editorconfig

Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,165 @@ csharp_style_expression_bodied_methods = true:silent
99
csharp_style_expression_bodied_properties = true:warning
1010
csharp_style_expression_bodied_indexers = true:warning
1111
csharp_style_expression_bodied_accessors = true:warning
12+
13+
[*.cs]
14+
#### Naming styles ####
15+
16+
# Naming rules
17+
18+
dotnet_naming_rule.interface_should_be_begins_with_i.severity = warning
19+
dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
20+
dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
21+
22+
dotnet_naming_rule.types_should_be_pascal_case.severity = warning
23+
dotnet_naming_rule.types_should_be_pascal_case.symbols = types
24+
dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
25+
26+
dotnet_naming_rule.constant_should_be_capitalized_snake_case.severity = warning
27+
dotnet_naming_rule.constant_should_be_capitalized_snake_case.symbols = constant
28+
dotnet_naming_rule.constant_should_be_capitalized_snake_case.style = capitalized_snake_case
29+
30+
dotnet_naming_rule.readonly_should_be_begins_with__.severity = warning
31+
dotnet_naming_rule.readonly_should_be_begins_with__.symbols = readonly
32+
dotnet_naming_rule.readonly_should_be_begins_with__.style = begins_with__
33+
34+
dotnet_naming_rule.private_or_internal_field_should_be_camel_case.severity = warning
35+
dotnet_naming_rule.private_or_internal_field_should_be_camel_case.symbols = private_or_internal_field
36+
dotnet_naming_rule.private_or_internal_field_should_be_camel_case.style = camel_case
37+
38+
dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = warning
39+
dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
40+
dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
41+
42+
# Symbol specifications
43+
44+
dotnet_naming_symbols.interface.applicable_kinds = interface
45+
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
46+
dotnet_naming_symbols.interface.required_modifiers =
47+
48+
dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
49+
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
50+
dotnet_naming_symbols.types.required_modifiers =
51+
52+
dotnet_naming_symbols.constant.applicable_kinds = field
53+
dotnet_naming_symbols.constant.applicable_accessibilities = public, internal, private
54+
dotnet_naming_symbols.constant.required_modifiers = const
55+
56+
dotnet_naming_symbols.readonly.applicable_kinds = field
57+
dotnet_naming_symbols.readonly.applicable_accessibilities = public, private
58+
dotnet_naming_symbols.readonly.required_modifiers = readonly
59+
60+
dotnet_naming_symbols.private_or_internal_field.applicable_kinds = field
61+
dotnet_naming_symbols.private_or_internal_field.applicable_accessibilities = internal, private, private_protected
62+
dotnet_naming_symbols.private_or_internal_field.required_modifiers =
63+
64+
dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
65+
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
66+
dotnet_naming_symbols.non_field_members.required_modifiers =
67+
68+
# Naming styles
69+
70+
dotnet_naming_style.begins_with_i.required_prefix = I
71+
dotnet_naming_style.begins_with_i.required_suffix =
72+
dotnet_naming_style.begins_with_i.word_separator =
73+
dotnet_naming_style.begins_with_i.capitalization = pascal_case
74+
75+
dotnet_naming_style.pascal_case.required_prefix =
76+
dotnet_naming_style.pascal_case.required_suffix =
77+
dotnet_naming_style.pascal_case.word_separator =
78+
dotnet_naming_style.pascal_case.capitalization = pascal_case
79+
80+
dotnet_naming_style.capitalized_snake_case.required_prefix =
81+
dotnet_naming_style.capitalized_snake_case.required_suffix =
82+
dotnet_naming_style.capitalized_snake_case.word_separator = _
83+
dotnet_naming_style.capitalized_snake_case.capitalization = all_upper
84+
85+
dotnet_naming_style.begins_with__.required_prefix = _
86+
dotnet_naming_style.begins_with__.required_suffix =
87+
dotnet_naming_style.begins_with__.word_separator =
88+
dotnet_naming_style.begins_with__.capitalization = camel_case
89+
90+
dotnet_naming_style.camel_case.required_prefix =
91+
dotnet_naming_style.camel_case.required_suffix =
92+
dotnet_naming_style.camel_case.word_separator =
93+
dotnet_naming_style.camel_case.capitalization = camel_case
94+
95+
dotnet_naming_style.pascal_case.required_prefix =
96+
dotnet_naming_style.pascal_case.required_suffix =
97+
dotnet_naming_style.pascal_case.word_separator =
98+
dotnet_naming_style.pascal_case.capitalization = pascal_case
99+
csharp_using_directive_placement = outside_namespace:silent
100+
csharp_prefer_simple_using_statement = false:silent
101+
csharp_prefer_braces = when_multiline:error
102+
csharp_style_namespace_declarations = file_scoped:error
103+
csharp_style_prefer_method_group_conversion = true:silent
104+
csharp_style_prefer_top_level_statements = false:silent
105+
csharp_style_prefer_primary_constructors = true:suggestion
106+
csharp_prefer_system_threading_lock = true:suggestion
107+
csharp_style_expression_bodied_constructors = false:silent
108+
csharp_style_expression_bodied_operators = false:silent
109+
csharp_style_expression_bodied_lambdas = true:silent
110+
csharp_style_expression_bodied_local_functions = false:silent
111+
csharp_indent_labels = one_less_than_current
112+
113+
[*.vb]
114+
#### Naming styles ####
115+
116+
# Naming rules
117+
118+
dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
119+
dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
120+
dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
121+
122+
dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion
123+
dotnet_naming_rule.types_should_be_pascal_case.symbols = types
124+
dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
125+
126+
dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion
127+
dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
128+
dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
129+
130+
# Symbol specifications
131+
132+
dotnet_naming_symbols.interface.applicable_kinds = interface
133+
dotnet_naming_symbols.interface.applicable_accessibilities = public, friend, private, protected, protected_friend, private_protected
134+
dotnet_naming_symbols.interface.required_modifiers =
135+
136+
dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
137+
dotnet_naming_symbols.types.applicable_accessibilities = public, friend, private, protected, protected_friend, private_protected
138+
dotnet_naming_symbols.types.required_modifiers =
139+
140+
dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
141+
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, friend, private, protected, protected_friend, private_protected
142+
dotnet_naming_symbols.non_field_members.required_modifiers =
143+
144+
# Naming styles
145+
146+
dotnet_naming_style.begins_with_i.required_prefix = I
147+
dotnet_naming_style.begins_with_i.required_suffix =
148+
dotnet_naming_style.begins_with_i.word_separator =
149+
dotnet_naming_style.begins_with_i.capitalization = pascal_case
150+
151+
dotnet_naming_style.pascal_case.required_prefix =
152+
dotnet_naming_style.pascal_case.required_suffix =
153+
dotnet_naming_style.pascal_case.word_separator =
154+
dotnet_naming_style.pascal_case.capitalization = pascal_case
155+
156+
dotnet_naming_style.pascal_case.required_prefix =
157+
dotnet_naming_style.pascal_case.required_suffix =
158+
dotnet_naming_style.pascal_case.word_separator =
159+
dotnet_naming_style.pascal_case.capitalization = pascal_case
160+
161+
[*.{cs,vb}]
162+
dotnet_style_coalesce_expression = true:suggestion
163+
dotnet_style_null_propagation = true:suggestion
164+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
165+
dotnet_style_prefer_auto_properties = true:silent
166+
dotnet_style_object_initializer = true:suggestion
167+
dotnet_style_collection_initializer = true:suggestion
168+
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
169+
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
170+
dotnet_style_operator_placement_when_wrapping = beginning_of_line
171+
tab_width = 4
172+
indent_size = 4
173+
end_of_line = crlf

0 commit comments

Comments
 (0)