Skip to content

Commit dc972c8

Browse files
author
ChrisMaunder
committed
Updated to v2.6.1
1 parent eb6dc3e commit dc972c8

File tree

363 files changed

+11588
-6296
lines changed

Some content is hidden

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

363 files changed

+11588
-6296
lines changed

.editorconfig

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
[*.cs]
2+
3+
tab_width = 4
4+
indent_size = 4
5+
end_of_line = crlf
6+
7+
# CA2213: Disposable fields should be disposed
8+
dotnet_diagnostic.CA2213.severity = warning
9+
csharp_using_directive_placement = outside_namespace:silent
10+
csharp_prefer_simple_using_statement = true:suggestion
11+
csharp_prefer_braces = true:silent
12+
csharp_style_namespace_declarations = block_scoped:silent
13+
csharp_style_prefer_method_group_conversion = true:silent
14+
csharp_style_prefer_top_level_statements = true:silent
15+
csharp_style_expression_bodied_methods = false:silent
16+
csharp_style_expression_bodied_constructors = false:silent
17+
csharp_style_expression_bodied_operators = false:silent
18+
csharp_style_expression_bodied_properties = true:silent
19+
csharp_style_expression_bodied_indexers = true:silent
20+
csharp_style_expression_bodied_accessors = true:silent
21+
csharp_style_expression_bodied_lambdas = true:silent
22+
csharp_style_expression_bodied_local_functions = false:silent
23+
csharp_style_throw_expression = true:suggestion
24+
csharp_indent_labels = one_less_than_current
25+
26+
[*.{cs,vb}]
27+
#### Naming styles ####
28+
29+
# Naming rules
30+
31+
dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
32+
dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
33+
dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
34+
35+
dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion
36+
dotnet_naming_rule.types_should_be_pascal_case.symbols = types
37+
dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
38+
39+
dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion
40+
dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
41+
dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
42+
43+
# Symbol specifications
44+
45+
dotnet_naming_symbols.interface.applicable_kinds = interface
46+
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
47+
dotnet_naming_symbols.interface.required_modifiers =
48+
49+
dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
50+
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
51+
dotnet_naming_symbols.types.required_modifiers =
52+
53+
dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
54+
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
55+
dotnet_naming_symbols.non_field_members.required_modifiers =
56+
57+
# Naming styles
58+
59+
dotnet_naming_style.begins_with_i.required_prefix = I
60+
61+
dotnet_naming_style.begins_with_i.required_suffix =
62+
dotnet_naming_style.begins_with_i.word_separator =
63+
dotnet_naming_style.begins_with_i.capitalization = pascal_case
64+
65+
dotnet_naming_style.pascal_case.required_prefix =
66+
dotnet_naming_style.pascal_case.required_suffix =
67+
dotnet_naming_style.pascal_case.word_separator =
68+
dotnet_naming_style.pascal_case.capitalization = pascal_case
69+
70+
dotnet_naming_style.pascal_case.required_prefix =
71+
dotnet_naming_style.pascal_case.required_suffix =
72+
dotnet_naming_style.pascal_case.word_separator =
73+
dotnet_naming_style.pascal_case.capitalization = pascal_case
74+
75+
dotnet_style_coalesce_expression = true:suggestion
76+
dotnet_style_null_propagation = true:suggestion
77+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
78+
dotnet_style_prefer_auto_properties = true:silent
79+
dotnet_style_object_initializer = true:suggestion
80+
dotnet_style_collection_initializer = true:suggestion
81+
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
82+
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
83+
dotnet_style_prefer_conditional_expression_over_return = true:silent
84+
dotnet_style_explicit_tuple_names = true:suggestion
85+
dotnet_style_prefer_inferred_tuple_names = true:suggestion
86+
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
87+
dotnet_style_prefer_compound_assignment = true:suggestion
88+
dotnet_style_prefer_simplified_interpolation = true:suggestion
89+
dotnet_style_namespace_match_folder = true:suggestion
90+
dotnet_style_operator_placement_when_wrapping = beginning_of_line
91+
92+
93+
# Note: We can't make this an error. See the following regarding analyser warnings about ConfigureAwait:
94+
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca2007?source=recommendations
95+
# "Running this analyzer on application code (for example, button click event handlers in a WinForms
96+
# or WPF project) is likely to lead to the wrong actions being taken.
97+
# dotnet_diagnostic.CA2007.severity = error
98+
99+
dotnet_diagnostic.CA2215.severity = warning
100+
dotnet_diagnostic.CA1816.severity = warning

.gitignore

Lines changed: 50 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -294,10 +294,16 @@ MigrationBackup/
294294

295295
*.DS_Store
296296

297-
/demos/Python/detected
298-
/demos/Python/Vision/detected
299297

300-
/Installers/downloads
298+
# CodeProject.AI ===============================================================
299+
300+
# Demos ------------------------------------------------------------------------
301+
302+
/demos/clients/Python/detected
303+
/demos/clients/Python/Vision/detected
304+
305+
306+
# Installers -------------------------------------------------------------------
301307

302308
/Installers/macOS/application
303309
/Installers/macOS/build/
@@ -314,40 +320,35 @@ MigrationBackup/
314320
/Installers/Windows/Inno Setup/assets/dotnet-hosting-*.exe
315321
/Installers/Windows/WIX Toolset/CodeProjectAI.Server.Installer/ServerInstallFiles.wxs
316322

317-
/src/server/installconfig.json
318323

319-
# The compiled form of the ParseJSON utility. We move the compiled files to its base dir it for convenience
320-
/src/SDK/Utilities/ParseJSON/ParseJSON
321-
/src/SDK/Utilities/ParseJSON/ParseJSON.exe
322-
/src/SDK/Utilities/ParseJSON/ParseJSON.deps.json
323-
/src/SDK/Utilities/ParseJSON/ParseJSON.dll
324-
/src/SDK/Utilities/ParseJSON/ParseJSON.runtimeconfig.json
325-
/src/SDK/Utilities/ParseJSON/ParseJSON.xml
324+
# Downloads --------------------------------------------------------------------
325+
326+
# Linux utilities
327+
wget-log*
326328

327329
# keep the folder structure but don't git commit the cached downloads
328330
!/src/downloads
329331
/src/downloads/*
332+
330333
!/src/downloads/modules
331334
/src/downloads/modules/*
332335
!/src/downloads/modules/readme.txt
333336

334-
# Generated exe packages
335-
/src/modules/ObjectDetectionYOLOv5Net/ObjectDetectionYOLOv5Net-*-[0-9].[0-9].zip
336-
/src/modules/ObjectDetectionYOLOv5Net/ObjectDetectionYOLOv5Net-*-[0-9].[0-9].[0-9].zip
337+
!/src/downloads/models
338+
/src/downloads/models/*
339+
!/src/downloads/models/models.json
337340

338-
# Downloaded assets for modules
341+
342+
# Downloaded assets and libraries for modules
339343
/src/modules/ALPR/paddleocr
340-
/src/modules/ALPR/plate.png
341344
/src/modules/ALPR-RKNN/paddleocr
342-
/src/modules/ALPR-RKNN/plate.png
343345
/src/modules/BackgroundRemover/models
344346
/src/modules/Cartooniser/weights
345347
/src/modules/FaceProcessing/assets
346348
/src/modules/FaceProcessing/datastore/
347349
/src/modules/LlamaChat/models/
348350
/src/modules/ObjectDetectionCoral/assets
349351
src/modules/ObjectDetectionCoral/edgetpu_runtime
350-
src/modules/ObjectDetectionCoral/libedgetpu.*
351352
src/modules/ObjectDetectionYoloRKNN/assets
352353
src/modules/ObjectDetectionYoloRKNN/custom-models
353354
/src/modules/ObjectDetectionYOLOv5Net/assets/
@@ -359,10 +360,7 @@ src/modules/ObjectDetectionYoloRKNN/custom-models
359360
/src/modules/ObjectDetectionYOLOv5-6.2/custom-models
360361
/src/modules/ObjectDetectionYOLOv8/assets
361362
/src/modules/ObjectDetectionYOLOv8/custom-models
362-
/src/modules/ObjectDetectionYOLOv8/torchvision/
363-
/src/modules/ObjectDetectionYOLOv8/ultralytics/
364363
/src/modules/OCR/paddleocr
365-
/src/modules/PortraitFilter/runtimeconfig.template.Designer.cs
366364
/src/modules/SceneClassifier/assets
367365
/src/modules/SoundClassifierTF/data/
368366
/src/modules/Text2Image/assets
@@ -373,8 +371,34 @@ src/modules/ObjectDetectionYoloRKNN/custom-models
373371
/src/modules/TrainingObjectDetectionYOLOv5/train
374372
/src/modules/TrainingObjectDetectionYOLOv5/zoo
375373

376-
/src/modules/ModuleDemoPythonSimple/assets/
377-
/src/modules/ModuleDemoPythonSimple/bin/
378-
/src/modules/ModuleDemoNetSimple/assets/
379-
/src/modules/ModuleDemoNetSimple/bin/
380-
/src/modules/ModuleDemoNetSimple/obj/
374+
/demos/modules/DotNetLongProcess/assets/
375+
/demos/modules/DotNetSimple/assets/
376+
/demos/modules/PythonLongProcess/assets
377+
/demos/modules/PythonSimple/assets
378+
379+
# Config files -----------------------------------------------------------------
380+
381+
# Server config on install
382+
/src/server/installconfig.json
383+
384+
385+
# SDK --------------------------------------------------------------------------
386+
387+
# The compiled form of the ParseJSON utility. We move the compiled files to its base dir it for convenience
388+
/src/SDK/Utilities/ParseJSON/ParseJSON
389+
/src/SDK/Utilities/ParseJSON/ParseJSON.exe
390+
/src/SDK/Utilities/ParseJSON/ParseJSON.deps.json
391+
/src/SDK/Utilities/ParseJSON/ParseJSON.dll
392+
/src/SDK/Utilities/ParseJSON/ParseJSON.runtimeconfig.json
393+
/src/SDK/Utilities/ParseJSON/ParseJSON.xml
394+
395+
# Module packages --------------------------------------------------------------
396+
397+
# Generated exe packages
398+
/src/modules/*/*-[0-9]*.[0-9]*.[0-9]*.zip
399+
400+
# Debug debris -----------------------------------------------------------------
401+
402+
/src/modules/ALPR/plate.png
403+
/src/modules/ALPR-RKNN/plate.png
404+
/SDK

0 commit comments

Comments
 (0)