Git hooks made easy with Husky.Net internal task runner! 🐶 It brings the dev-dependency concept to the .NET world!
To support tools like JetBrains Clean Code, the ${staged}
variable can now accept a separator character. For example, to separate the staged files with a semicolon (;), you can use the variable like ${staged:;}
, and any other separator after :
is valid. Additionally, it can be used along with any static arguments, such as "--include=${staged:;}".
Here's an example in task-runner.json configuration:
{
"name": "jb cleanup",
"group": "pre-commit",
"command": "dotnet",
"pathMode": "relative",
"include": ["**/*.cs", "**/*.vb", "*.cs"],
"args": [
"jb",
"cleanupcode",
"--include=${staged:;}",
"solutionFile.sln"
]
}
Full Changelog: https://github.com/alirezanet/Husky.Net/compare/v0.6.3...v0.6.4
Full Changelog: https://github.com/alirezanet/Husky.Net/compare/v0.6.2...v0.6.3
Bugfix: Chunks tasks can't load csx files in parallel. #93
Full Changelog: https://github.com/alirezanet/Husky.Net/compare/v0.6.0...v0.6.1
Full Changelog: https://github.com/alirezanet/Husky.Net/compare/v0.5.4...v0.6.0
Full Changelog: https://github.com/alirezanet/Husky.Net/compare/v0.5.2...v0.5.4
Full Changelog: https://github.com/alirezanet/Husky.Net/compare/v0.5.2...v0.5.3