Skip to content

Commit f29aeb9

Browse files
authored
Refactor (#124)
Implemented CQRS, IUnitOfWork on endpoints. Fixed issue with web socket connecting before the user is logged in. Add some rudimentary ML to license plate prediction. Add tests. Switched to alpine linux. Adding log severity filtering. Better error handling when camera commands fail. Data migrations occur before application startup via migration bundles. Commands to obfuscate db and delete images. Fixed [counting bug](#114). replace fluentassertions and mediatr with free alternatives. switched to microsoft identity. added 2fa.
1 parent 258c134 commit f29aeb9

1,069 files changed

Lines changed: 102019 additions & 17133 deletions

File tree

Some content is hidden

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

.dockerignore

Lines changed: 34 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,34 @@
1-
**/.classpath
2-
**/.dockerignore
3-
**/.env
4-
**/.git
5-
**/.gitignore
6-
**/.project
7-
**/.settings
8-
**/.toolstarget
9-
**/.vs
10-
**/.vscode
11-
**/*.*proj.user
12-
**/*.dbmdl
13-
**/*.jfm
14-
**/azds.yaml
15-
**/bin
16-
**/charts
17-
**/docker-compose*
18-
**/Dockerfile*
19-
**/node_modules
20-
**/npm-debug.log
21-
**/obj
22-
**/secrets.dev.yaml
23-
**/values.dev.yaml
24-
**/config
25-
LICENSE
26-
README.md
27-
!**/.gitignore
28-
!.git/HEAD
29-
!.git/config
30-
!.git/packed-refs
31-
!.git/refs/heads/**
1+
**/.dockerignore
2+
**/.env
3+
**/.git
4+
**/.gitignore
5+
**/.project
6+
**/.settings
7+
**/.toolstarget
8+
**/.vs
9+
**/.vscode
10+
**/*.*proj.user
11+
**/*.dbmdl
12+
**/*.jfm
13+
**/azds.yaml
14+
**/bin
15+
**/docker-compose*
16+
**/Dockerfile*
17+
**/node_modules
18+
**/npm-debug.log
19+
**/obj
20+
**/secrets.dev.yaml
21+
**/values.dev.yaml
22+
LICENSE
23+
README.md
24+
.github/
25+
Tests/
26+
coverage/
27+
*.md
28+
**/.angular/
29+
**/dist/
30+
**/*.log
31+
**/*.tmp
32+
**/.nyc_output
33+
**/coverage/
34+
**/e2e/

OpenAlprWebhookProcessor.Server/.editorconfig renamed to .editorconfig

Lines changed: 59 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,37 @@
1+
root = true
2+
3+
[*.cs]
4+
5+
# CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
6+
dotnet_diagnostic.CS8632.severity = none
7+
8+
# IDE0090: Use 'new(...)'
9+
dotnet_diagnostic.IDE0090.severity = none
10+
csharp_style_implicit_object_creation_when_type_is_apparent = false
11+
12+
# IDE0290: Use primary constructor
13+
dotnet_diagnostic.IDE0290.severity = none
14+
15+
# IDE0300: New can be simplified
16+
dotnet_diagnostic.IDE0300.severity = none
17+
18+
csharp_indent_labels = one_less_than_current
19+
csharp_using_directive_placement = outside_namespace:silent
20+
csharp_prefer_simple_using_statement = true:suggestion
21+
csharp_prefer_braces = true:silent
22+
csharp_style_namespace_declarations = block_scoped:silent
23+
csharp_style_prefer_method_group_conversion = true:silent
24+
csharp_style_prefer_top_level_statements = true:silent
25+
csharp_style_prefer_primary_constructors = true:suggestion
26+
csharp_prefer_system_threading_lock = true:suggestion
27+
csharp_style_expression_bodied_methods = false:silent
28+
csharp_style_expression_bodied_constructors = false:silent
29+
csharp_style_expression_bodied_operators = false:silent
30+
csharp_style_expression_bodied_properties = true:silent
31+
csharp_style_expression_bodied_indexers = true:silent
32+
csharp_style_expression_bodied_accessors = true:silent
33+
csharp_style_expression_bodied_lambdas = true:silent
34+
csharp_style_expression_bodied_local_functions = false:silent
135

236
[*.{cs,vb}]
337
#### Naming styles ####
@@ -55,7 +89,7 @@ dotnet_style_null_propagation = true:suggestion
5589
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
5690
dotnet_style_prefer_auto_properties = true:silent
5791
dotnet_style_object_initializer = true:suggestion
58-
dotnet_style_collection_initializer = true:suggestion
92+
dotnet_style_collection_initializer = true:none
5993
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
6094
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
6195
dotnet_style_prefer_conditional_expression_over_return = true:silent
@@ -64,25 +98,29 @@ dotnet_style_prefer_inferred_tuple_names = true:suggestion
6498
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
6599
dotnet_style_prefer_compound_assignment = true:suggestion
66100
dotnet_style_prefer_simplified_interpolation = true:suggestion
101+
dotnet_style_prefer_collection_expression = when_types_loosely_match:suggestion
67102
dotnet_style_namespace_match_folder = true:suggestion
68-
dotnet_code_quality_unused_parameters = all:suggestion
69103

70-
[*.cs]
71-
csharp_indent_labels = one_less_than_current
72-
csharp_using_directive_placement = outside_namespace:silent
73-
csharp_prefer_simple_using_statement = true:suggestion
74-
csharp_prefer_braces = true:silent
75-
csharp_style_namespace_declarations = block_scoped:silent
76-
csharp_style_prefer_method_group_conversion = true:silent
77-
csharp_style_prefer_top_level_statements = true:silent
78-
csharp_style_prefer_primary_constructors = true:suggestion
79-
csharp_style_expression_bodied_methods = false:silent
80-
csharp_style_expression_bodied_constructors = false:silent
81-
csharp_style_expression_bodied_operators = false:silent
82-
csharp_style_expression_bodied_properties = true:silent
83-
csharp_style_expression_bodied_indexers = true:silent
84-
csharp_style_expression_bodied_accessors = true:silent
85-
csharp_style_expression_bodied_lambdas = true:silent
86-
csharp_style_expression_bodied_local_functions = false:silent
87-
csharp_style_throw_expression = true:suggestion
88-
csharp_style_unused_value_assignment_preference = discard_variable:suggestion
104+
# IDE0028: Simplify collection initialization
105+
dotnet_diagnostic.IDE0028.severity = none
106+
107+
# EF Migration files - disable all rules for auto-generated code
108+
[**/Migrations/*.cs]
109+
generated_code = true
110+
dotnet_analyzer_diagnostic.category-style.severity = none
111+
dotnet_analyzer_diagnostic.category-maintainability.severity = none
112+
dotnet_analyzer_diagnostic.category-naming.severity = none
113+
dotnet_analyzer_diagnostic.category-performance.severity = none
114+
dotnet_analyzer_diagnostic.category-reliability.severity = none
115+
dotnet_analyzer_diagnostic.category-security.severity = none
116+
dotnet_analyzer_diagnostic.category-usage.severity = none
117+
dotnet_analyzer_diagnostic.category-design.severity = none
118+
dotnet_analyzer_diagnostic.category-globalization.severity = none
119+
dotnet_analyzer_diagnostic.category-interoperability.severity = none
120+
dotnet_analyzer_diagnostic.category-single-file.severity = none
121+
dotnet_analyzer_diagnostic.category-publish.severity = none
122+
123+
# Specific common migration warnings
124+
dotnet_diagnostic.CS8981.severity = none # Type name only contains lower-cased ascii characters
125+
dotnet_diagnostic.IDE0055.severity = none # Fix formatting
126+
dotnet_diagnostic.IDE0005.severity = none # Remove unnecessary usings

.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
github: mlapaglia
2+
custom:
3+
- "https://www.paypal.com/donate/?business=JS5FUA7KHHX74&no_recurring=0&currency_code=USD"

0 commit comments

Comments
 (0)