Skip to content

v0.6.4

Compare
Choose a tag to compare
@alirezanet alirezanet released this 17 Dec 21:13
· 18 commits to master since this release

What's Changed

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: v0.6.3...v0.6.4