diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json new file mode 100644 index 00000000..402c7b79 --- /dev/null +++ b/.config/dotnet-tools.json @@ -0,0 +1,18 @@ +{ + "version": 1, + "isRoot": true, + "tools": { + "csharpier": { + "version": "0.18.0", + "commands": [ + "dotnet-csharpier" + ] + }, + "husky": { + "version": "0.4.4", + "commands": [ + "husky" + ] + } + } +} \ No newline at end of file diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100644 index 00000000..fd85d235 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,22 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +## husky task runner examples ------------------- +## Note : for local installation use 'dotnet' prefix. e.g. 'dotnet husky' + +## run all tasks +#husky run + +### run all tasks with group: 'group-name' +#husky run --group group-name + +## run task with name: 'task-name' +#husky run --name task-name + +## pass hook arguments to task +#husky run --args "$1" "$2" + +## or put your custom commands ------------------- +#echo 'Husky.Net is awesome!' + +dotnet husky run diff --git a/.husky/task-runner.json b/.husky/task-runner.json new file mode 100644 index 00000000..9debd6da --- /dev/null +++ b/.husky/task-runner.json @@ -0,0 +1,8 @@ +{ + "tasks": [{ + "name": "Format code", + "command": "dotnet", + "args": [ "csharpier", "${staged}" ], + "include": [ "**/*.cs" ] + }] +} \ No newline at end of file diff --git a/src/ConductorSharp.Engine/ConductorSharp.Engine.csproj b/src/ConductorSharp.Engine/ConductorSharp.Engine.csproj index 1ed65167..09d0a44f 100644 --- a/src/ConductorSharp.Engine/ConductorSharp.Engine.csproj +++ b/src/ConductorSharp.Engine/ConductorSharp.Engine.csproj @@ -27,5 +27,8 @@ - + + + + diff --git a/src/ConductorSharp.Engine/Model/DynamicForkJoinTaskModel.cs b/src/ConductorSharp.Engine/Model/DynamicForkJoinTaskModel.cs index 272de011..222cdefc 100644 --- a/src/ConductorSharp.Engine/Model/DynamicForkJoinTaskModel.cs +++ b/src/ConductorSharp.Engine/Model/DynamicForkJoinTaskModel.cs @@ -2,14 +2,12 @@ namespace ConductorSharp.Engine.Model { - public class DynamicForkJoinInput : IRequest { public dynamic DynamicTasks { get; set; } public dynamic DynamicTasksI { get; set; } } - public class DynamicForkJoinTaskModel : TaskModel - { - } -} \ No newline at end of file + + public class DynamicForkJoinTaskModel : TaskModel { } +}