Skip to content

Commit

Permalink
Updated to v2.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisMaunder committed Apr 2, 2024
1 parent eb6dc3e commit dc972c8
Show file tree
Hide file tree
Showing 363 changed files with 11,588 additions and 6,296 deletions.
100 changes: 100 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
[*.cs]

tab_width = 4
indent_size = 4
end_of_line = crlf

# CA2213: Disposable fields should be disposed
dotnet_diagnostic.CA2213.severity = warning
csharp_using_directive_placement = outside_namespace:silent
csharp_prefer_simple_using_statement = true:suggestion
csharp_prefer_braces = true:silent
csharp_style_namespace_declarations = block_scoped:silent
csharp_style_prefer_method_group_conversion = true:silent
csharp_style_prefer_top_level_statements = true:silent
csharp_style_expression_bodied_methods = false:silent
csharp_style_expression_bodied_constructors = false:silent
csharp_style_expression_bodied_operators = false:silent
csharp_style_expression_bodied_properties = true:silent
csharp_style_expression_bodied_indexers = true:silent
csharp_style_expression_bodied_accessors = true:silent
csharp_style_expression_bodied_lambdas = true:silent
csharp_style_expression_bodied_local_functions = false:silent
csharp_style_throw_expression = true:suggestion
csharp_indent_labels = one_less_than_current

[*.{cs,vb}]
#### Naming styles ####

# Naming rules

dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i

dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.types_should_be_pascal_case.symbols = types
dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case

dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case

# Symbol specifications

dotnet_naming_symbols.interface.applicable_kinds = interface
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.interface.required_modifiers =

dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.types.required_modifiers =

dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.non_field_members.required_modifiers =

# Naming styles

dotnet_naming_style.begins_with_i.required_prefix = I

dotnet_naming_style.begins_with_i.required_suffix =
dotnet_naming_style.begins_with_i.word_separator =
dotnet_naming_style.begins_with_i.capitalization = pascal_case

dotnet_naming_style.pascal_case.required_prefix =
dotnet_naming_style.pascal_case.required_suffix =
dotnet_naming_style.pascal_case.word_separator =
dotnet_naming_style.pascal_case.capitalization = pascal_case

dotnet_naming_style.pascal_case.required_prefix =
dotnet_naming_style.pascal_case.required_suffix =
dotnet_naming_style.pascal_case.word_separator =
dotnet_naming_style.pascal_case.capitalization = pascal_case

dotnet_style_coalesce_expression = true:suggestion
dotnet_style_null_propagation = true:suggestion
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
dotnet_style_prefer_auto_properties = true:silent
dotnet_style_object_initializer = true:suggestion
dotnet_style_collection_initializer = true:suggestion
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
dotnet_style_prefer_conditional_expression_over_return = true:silent
dotnet_style_explicit_tuple_names = true:suggestion
dotnet_style_prefer_inferred_tuple_names = true:suggestion
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
dotnet_style_prefer_compound_assignment = true:suggestion
dotnet_style_prefer_simplified_interpolation = true:suggestion
dotnet_style_namespace_match_folder = true:suggestion
dotnet_style_operator_placement_when_wrapping = beginning_of_line


# Note: We can't make this an error. See the following regarding analyser warnings about ConfigureAwait:
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca2007?source=recommendations
# "Running this analyzer on application code (for example, button click event handlers in a WinForms
# or WPF project) is likely to lead to the wrong actions being taken.
# dotnet_diagnostic.CA2007.severity = error

dotnet_diagnostic.CA2215.severity = warning
dotnet_diagnostic.CA1816.severity = warning
76 changes: 50 additions & 26 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,16 @@ MigrationBackup/

*.DS_Store

/demos/Python/detected
/demos/Python/Vision/detected

/Installers/downloads
# CodeProject.AI ===============================================================

# Demos ------------------------------------------------------------------------

/demos/clients/Python/detected
/demos/clients/Python/Vision/detected


# Installers -------------------------------------------------------------------

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

/src/server/installconfig.json

# The compiled form of the ParseJSON utility. We move the compiled files to its base dir it for convenience
/src/SDK/Utilities/ParseJSON/ParseJSON
/src/SDK/Utilities/ParseJSON/ParseJSON.exe
/src/SDK/Utilities/ParseJSON/ParseJSON.deps.json
/src/SDK/Utilities/ParseJSON/ParseJSON.dll
/src/SDK/Utilities/ParseJSON/ParseJSON.runtimeconfig.json
/src/SDK/Utilities/ParseJSON/ParseJSON.xml
# Downloads --------------------------------------------------------------------

# Linux utilities
wget-log*

# keep the folder structure but don't git commit the cached downloads
!/src/downloads
/src/downloads/*

!/src/downloads/modules
/src/downloads/modules/*
!/src/downloads/modules/readme.txt

# Generated exe packages
/src/modules/ObjectDetectionYOLOv5Net/ObjectDetectionYOLOv5Net-*-[0-9].[0-9].zip
/src/modules/ObjectDetectionYOLOv5Net/ObjectDetectionYOLOv5Net-*-[0-9].[0-9].[0-9].zip
!/src/downloads/models
/src/downloads/models/*
!/src/downloads/models/models.json

# Downloaded assets for modules

# Downloaded assets and libraries for modules
/src/modules/ALPR/paddleocr
/src/modules/ALPR/plate.png
/src/modules/ALPR-RKNN/paddleocr
/src/modules/ALPR-RKNN/plate.png
/src/modules/BackgroundRemover/models
/src/modules/Cartooniser/weights
/src/modules/FaceProcessing/assets
/src/modules/FaceProcessing/datastore/
/src/modules/LlamaChat/models/
/src/modules/ObjectDetectionCoral/assets
src/modules/ObjectDetectionCoral/edgetpu_runtime
src/modules/ObjectDetectionCoral/libedgetpu.*
src/modules/ObjectDetectionYoloRKNN/assets
src/modules/ObjectDetectionYoloRKNN/custom-models
/src/modules/ObjectDetectionYOLOv5Net/assets/
Expand All @@ -359,10 +360,7 @@ src/modules/ObjectDetectionYoloRKNN/custom-models
/src/modules/ObjectDetectionYOLOv5-6.2/custom-models
/src/modules/ObjectDetectionYOLOv8/assets
/src/modules/ObjectDetectionYOLOv8/custom-models
/src/modules/ObjectDetectionYOLOv8/torchvision/
/src/modules/ObjectDetectionYOLOv8/ultralytics/
/src/modules/OCR/paddleocr
/src/modules/PortraitFilter/runtimeconfig.template.Designer.cs
/src/modules/SceneClassifier/assets
/src/modules/SoundClassifierTF/data/
/src/modules/Text2Image/assets
Expand All @@ -373,8 +371,34 @@ src/modules/ObjectDetectionYoloRKNN/custom-models
/src/modules/TrainingObjectDetectionYOLOv5/train
/src/modules/TrainingObjectDetectionYOLOv5/zoo

/src/modules/ModuleDemoPythonSimple/assets/
/src/modules/ModuleDemoPythonSimple/bin/
/src/modules/ModuleDemoNetSimple/assets/
/src/modules/ModuleDemoNetSimple/bin/
/src/modules/ModuleDemoNetSimple/obj/
/demos/modules/DotNetLongProcess/assets/
/demos/modules/DotNetSimple/assets/
/demos/modules/PythonLongProcess/assets
/demos/modules/PythonSimple/assets

# Config files -----------------------------------------------------------------

# Server config on install
/src/server/installconfig.json


# SDK --------------------------------------------------------------------------

# The compiled form of the ParseJSON utility. We move the compiled files to its base dir it for convenience
/src/SDK/Utilities/ParseJSON/ParseJSON
/src/SDK/Utilities/ParseJSON/ParseJSON.exe
/src/SDK/Utilities/ParseJSON/ParseJSON.deps.json
/src/SDK/Utilities/ParseJSON/ParseJSON.dll
/src/SDK/Utilities/ParseJSON/ParseJSON.runtimeconfig.json
/src/SDK/Utilities/ParseJSON/ParseJSON.xml

# Module packages --------------------------------------------------------------

# Generated exe packages
/src/modules/*/*-[0-9]*.[0-9]*.[0-9]*.zip

# Debug debris -----------------------------------------------------------------

/src/modules/ALPR/plate.png
/src/modules/ALPR-RKNN/plate.png
/SDK

0 comments on commit dc972c8

Please sign in to comment.