Skip to content

Commit 9ed74d5

Browse files
Merge pull request #114 from Genocs/main
Merge to master branch
2 parents 09a5783 + cea45d4 commit 9ed74d5

File tree

649 files changed

+11987
-13591
lines changed

Some content is hidden

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

649 files changed

+11987
-13591
lines changed

.editorconfig

Lines changed: 270 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,270 @@
1+
root = true
2+
3+
[*]
4+
roslynator_accessibility_modifiers = explicit
5+
roslynator_use_anonymous_function_or_method_group = anonymous_function|method_group
6+
roslynator_enum_has_flag_style = method
7+
roslynator_object_creation_type_style = explicit|implicit|implicit_when_type_is_obvious
8+
9+
indent_style = space
10+
11+
trim_trailing_whitespace = true
12+
13+
insert_final_newline = false
14+
15+
[*.md]
16+
trim_trailing_whitespace = false
17+
18+
[*.json]
19+
indent_size = 2
20+
21+
[*.cs]
22+
dotnet_sort_system_directives_first = true:warning
23+
24+
csharp_style_namespace_declarations = file_scoped:warning
25+
26+
csharp_style_var_for_built_in_types = false:warning
27+
28+
csharp_style_var_when_type_is_apparent = true:warning
29+
30+
csharp_style_var_elsewhere = true:warning
31+
32+
csharp_new_line_before_members_in_anonymous_types = true:warning
33+
34+
# SA1623: Property summary documentation should match accessors
35+
dotnet_diagnostic.SA1623.severity = none
36+
37+
# SA1101: Prefix local calls with this
38+
dotnet_diagnostic.SA1101.severity = none
39+
40+
# SA1642: Constructor summary documentation should begin with standard text
41+
dotnet_diagnostic.SA1642.severity = none
42+
43+
# SA1309: Field names should not begin with underscore
44+
dotnet_diagnostic.SA1309.severity = none
45+
46+
# RCS1194: Implement exception constructors.
47+
dotnet_diagnostic.RCS1194.severity = none
48+
49+
# SA1000: Keywords should be spaced correctly
50+
dotnet_diagnostic.SA1000.severity = none
51+
52+
# SA1124: Do not use regions
53+
dotnet_diagnostic.SA1124.severity = none
54+
55+
# SA1413: Use trailing comma in multi-line initializers
56+
dotnet_diagnostic.SA1413.severity = none
57+
58+
# SA1201: Elements should appear in the correct order
59+
dotnet_diagnostic.SA1201.severity = suggestion
60+
61+
# SA1638: File header file name documentation should match file name
62+
dotnet_diagnostic.SA1638.severity = warning
63+
64+
# SA1633: File should have header
65+
dotnet_diagnostic.SA1633.severity = none
66+
67+
# SA1404: Code analysis suppression should have justification
68+
dotnet_diagnostic.SA1404.severity = none
69+
70+
# SA1206: Declaration keywords should follow order
71+
dotnet_diagnostic.SA1206.severity = none
72+
73+
# CA1040: Avoid empty interfaces
74+
dotnet_diagnostic.CA1040.severity = none
75+
76+
# RCS1012: Use explicit type instead of 'var'
77+
dotnet_diagnostic.RCS1012.severity = none
78+
79+
# RCS1008: Use explicit type instead of 'var'
80+
dotnet_diagnostic.RCS1008.severity = none
81+
82+
# CA1725
83+
dotnet_diagnostic.CA1725.severity = none
84+
85+
# RCS1009: Use explicit type instead of 'var'
86+
dotnet_diagnostic.RCS1009.severity = none
87+
88+
# SA1402: File may only contain a single type
89+
dotnet_diagnostic.SA1402.severity = suggestion
90+
91+
# CA1711
92+
dotnet_diagnostic.CA1711.severity = none
93+
94+
# CA1720: Identifier contains type name
95+
dotnet_diagnostic.CA1720.severity = none
96+
97+
# IDE0022: Use block body for methods
98+
dotnet_diagnostic.IDE0022.severity = none
99+
100+
# SA1011: Closing square brackets should be spaced correctly
101+
dotnet_diagnostic.SA1011.severity = none
102+
103+
# CA1721
104+
dotnet_diagnostic.CA1721.severity = none
105+
106+
# SA1313: Parameter names should begin with lower-case letter
107+
dotnet_diagnostic.SA1313.severity = none
108+
109+
# SecurityIntelliSenseCS: MS Security rules violation
110+
dotnet_diagnostic.SecurityIntelliSenseCS.severity = suggestion
111+
112+
# SA1123: Do not place regions within elements
113+
dotnet_diagnostic.SA1123.severity = none
114+
115+
# RCS1046: Add suffix 'Async' to asynchronous method name
116+
dotnet_diagnostic.RCS1046.severity = warning
117+
118+
# SA1625: Element documentation should not be copied and pasted
119+
dotnet_diagnostic.SA1625.severity = none
120+
121+
# SCS9999
122+
dotnet_diagnostic.SCS9999.severity = none
123+
124+
# RCS1090 Add call to 'ConfigureAwait'
125+
dotnet_diagnostic.RCS1090.severity = none
126+
127+
# RCS1170 Use read-only auto-implemented property
128+
dotnet_diagnostic.RCS1170.severity = none
129+
130+
# SA1649
131+
dotnet_diagnostic.SA1649.severity = none
132+
133+
# RCS1021 Use expression-bodied lambda.
134+
dotnet_diagnostic.RCS1021.severity = none
135+
136+
# RCS1047 Remove suffix 'Async' from non-asynchronous method name.
137+
# dotnet_diagnostic.RCS1047.severity = silent
138+
139+
# SA1600 Elements should be documented
140+
dotnet_diagnostic.SA1600.severity = silent
141+
142+
# CS1591 Missing XML comment for publicly visible type or member
143+
dotnet_diagnostic.CS1591.severity = none
144+
145+
# SA1602: Enumeration items should be documented
146+
dotnet_diagnostic.SA1602.severity = none
147+
148+
# CA1720 Identifier 'Decimal' contains type name
149+
dotnet_diagnostic.CA1720.severity = none
150+
151+
# SA1601: Partial elements should be documented
152+
dotnet_diagnostic.SA1601.severity = silent
153+
154+
# CA1711 Rename type name UserEventHandler so that it does not end in 'EventHandler'
155+
dotnet_diagnostic.CA1711.severity = none
156+
157+
# CA1307: Specify StringComparison for clarity
158+
dotnet_diagnostic.CA1307.severity = none
159+
csharp_using_directive_placement = outside_namespace:silent
160+
csharp_prefer_simple_using_statement = true:suggestion
161+
csharp_prefer_braces = true:silent
162+
csharp_style_prefer_method_group_conversion = true:silent
163+
csharp_style_prefer_top_level_statements = true:silent
164+
csharp_style_expression_bodied_methods = false:silent
165+
csharp_style_expression_bodied_constructors = false:silent
166+
csharp_style_expression_bodied_operators = false:silent
167+
csharp_style_expression_bodied_properties = true:silent
168+
csharp_style_expression_bodied_indexers = true:silent
169+
csharp_style_expression_bodied_accessors = true:silent
170+
csharp_style_expression_bodied_lambdas = true:silent
171+
csharp_style_expression_bodied_local_functions = false:silent
172+
csharp_indent_labels = one_less_than_current
173+
csharp_style_prefer_primary_constructors = true:suggestion
174+
csharp_style_prefer_null_check_over_type_check = true:suggestion
175+
csharp_style_throw_expression = true:suggestion
176+
csharp_style_prefer_local_over_anonymous_function = true:suggestion
177+
csharp_prefer_simple_default_expression = true:suggestion
178+
csharp_style_prefer_index_operator = true:suggestion
179+
csharp_style_prefer_range_operator = true:suggestion
180+
csharp_style_implicit_object_creation_when_type_is_apparent = true:suggestion
181+
csharp_style_prefer_tuple_swap = true:suggestion
182+
csharp_style_inlined_variable_declaration = true:suggestion
183+
csharp_style_prefer_utf8_string_literals = true:suggestion
184+
csharp_style_unused_value_assignment_preference = discard_variable:suggestion
185+
csharp_style_deconstructed_variable_declaration = true:suggestion
186+
csharp_style_unused_value_expression_statement_preference = discard_variable:silent
187+
csharp_style_prefer_readonly_struct = true:suggestion
188+
csharp_prefer_static_local_function = true:suggestion
189+
csharp_style_prefer_readonly_struct_member = true:suggestion
190+
csharp_style_allow_embedded_statements_on_same_line_experimental = true:silent
191+
csharp_style_allow_blank_lines_between_consecutive_braces_experimental = true:silent
192+
csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = true:silent
193+
csharp_style_allow_blank_line_after_token_in_conditional_expression_experimental = true:silent
194+
csharp_style_allow_blank_line_after_token_in_arrow_expression_clause_experimental = true:silent
195+
csharp_style_conditional_delegate_call = true:suggestion
196+
csharp_space_around_binary_operators = before_and_after
197+
[*.{cs,vb}]
198+
#### Naming styles ####
199+
200+
# Naming rules
201+
202+
dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
203+
dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
204+
dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
205+
206+
dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion
207+
dotnet_naming_rule.types_should_be_pascal_case.symbols = types
208+
dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
209+
210+
dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion
211+
dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
212+
dotnet_naming_rule.non_field_members_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.types.applicable_kinds = class, struct, interface, enum
221+
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
222+
dotnet_naming_symbols.types.required_modifiers =
223+
224+
dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
225+
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
226+
dotnet_naming_symbols.non_field_members.required_modifiers =
227+
228+
# Naming styles
229+
230+
dotnet_naming_style.begins_with_i.required_prefix = I
231+
dotnet_naming_style.begins_with_i.required_suffix =
232+
dotnet_naming_style.begins_with_i.word_separator =
233+
dotnet_naming_style.begins_with_i.capitalization = pascal_case
234+
235+
dotnet_naming_style.pascal_case.required_prefix =
236+
dotnet_naming_style.pascal_case.required_suffix =
237+
dotnet_naming_style.pascal_case.word_separator =
238+
dotnet_naming_style.pascal_case.capitalization = pascal_case
239+
240+
dotnet_naming_style.pascal_case.required_prefix =
241+
dotnet_naming_style.pascal_case.required_suffix =
242+
dotnet_naming_style.pascal_case.word_separator =
243+
dotnet_naming_style.pascal_case.capitalization = pascal_case
244+
dotnet_style_coalesce_expression = true:suggestion
245+
dotnet_style_null_propagation = true:suggestion
246+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
247+
dotnet_style_prefer_auto_properties = true:silent
248+
dotnet_style_object_initializer = true:suggestion
249+
dotnet_style_collection_initializer = true:suggestion
250+
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
251+
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
252+
dotnet_style_prefer_conditional_expression_over_return = true:silent
253+
dotnet_style_operator_placement_when_wrapping = beginning_of_line
254+
tab_width = 4
255+
indent_size = 4
256+
end_of_line = crlf
257+
dotnet_style_prefer_collection_expression = true:suggestion
258+
dotnet_style_explicit_tuple_names = true:suggestion
259+
dotnet_style_prefer_inferred_tuple_names = true:suggestion
260+
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
261+
dotnet_style_prefer_compound_assignment = true:suggestion
262+
dotnet_style_prefer_simplified_interpolation = true:suggestion
263+
dotnet_style_namespace_match_folder = true:suggestion
264+
dotnet_style_readonly_field = true:suggestion
265+
dotnet_style_predefined_type_for_member_access = true:silent
266+
dotnet_style_predefined_type_for_locals_parameters_members = true:silent
267+
dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
268+
dotnet_style_allow_statement_immediately_after_block_experimental = true:silent
269+
dotnet_style_allow_multiple_blank_lines_experimental = true:silent
270+
dotnet_code_quality_unused_parameters = all:suggestion

templates/template/.env renamed to .env

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@
55
# The IP below should be swapped to your real IP or DNS name, like 192.168.88.248, etc. if testing from remote browsers or mobile devices
66

77
PROJECT_EXTERNAL_DNS_NAME_OR_IP=localhost
8+
9+
# The docker image version
10+
DOCKER_IMAGE_TAG=6.0.0

.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# These are supported funding model platforms
2+
open_collective: genocs
3+
custom: ["https://www.buymeacoffee.com/genocs"]

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "nuget" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly" # How often to check for updates (can be "daily", "weekly" or "monthly")

.github/workflows/build_and_test.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ name: Build test and pack
22

33
on:
44
push:
5-
branches: ["master"]
6-
5+
branches: [main, develop]
76
pull_request:
8-
branches: ["master"]
7+
branches: [main, develop]
98

109
jobs:
1110
build:
@@ -14,21 +13,21 @@ jobs:
1413

1514
steps:
1615
- name: Checkout
17-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1817

1918
- name: Setup .NET
20-
uses: actions/setup-dotnet@v2
19+
uses: actions/setup-dotnet@v4
2120
with:
22-
dotnet-version: 7.0.x
21+
dotnet-version: 8.0.x
2322

2423
- name: Restore dependencies
2524
run: dotnet restore
2625

2726
- name: Build
28-
run: dotnet build --no-restore
27+
run: dotnet build -c Debug --no-restore
2928

3029
- name: Test
31-
run: dotnet test --no-build --verbosity normal
30+
run: dotnet test -c Debug --no-build --verbosity normal
3231

3332
- name: Pack
34-
run: dotnet pack --no-build --verbosity normal
33+
run: dotnet pack -c Debug --no-build --verbosity normal
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# This is a manually triggered dockerhub build and publish
2+
3+
name: Publish to Dockerhub
4+
5+
# Controls when the action will run. Workflow runs when manually triggered using the UI
6+
# or API.
7+
on:
8+
workflow_dispatch:
9+
# Inputs the workflow accepts.
10+
inputs:
11+
version:
12+
# Friendly description to be shown in the UI instead of 'name'
13+
description: "Image Version"
14+
15+
# Default value if no value is explicitly provided
16+
default: "6.2.0"
17+
18+
# Input has to be provided for the workflow to run
19+
required: true
20+
21+
jobs:
22+
build:
23+
name: Publish Docker Image
24+
runs-on: ubuntu-latest
25+
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v4
29+
30+
- name: Setup .NET
31+
uses: actions/setup-dotnet@v4
32+
with:
33+
dotnet-version: 8.0.x
34+
35+
- name: Restore dependencies
36+
run: dotnet restore
37+
38+
- name: Build
39+
run: dotnet build -c Debug --no-restore
40+
41+
- name: Test
42+
run: dotnet test --no-build --verbosity normal
43+
44+
- name: Pack
45+
run: dotnet pack --no-build --verbosity normal
46+
47+
- name: Docker Hub Log in
48+
uses: docker/login-action@v3
49+
with:
50+
username: ${{ secrets.DOCKER_USERNAME }}
51+
password: ${{ secrets.DOCKER_PASSWORD }}
52+
53+
- name: Build and push image to Dockerhub
54+
run: |
55+
docker build -f webapi.dockerfile -t genocs/demo-webapi:${{ github.event.inputs.version }} -t genocs/demo-webapi:latest .
56+
docker push genocs/demo-webapi:${{ github.event.inputs.version }}
57+
docker push genocs/demo-webapi:latest

0 commit comments

Comments
 (0)