Closed ndepal closed 3 years ago
This has something to do with how arguments are passed to cross-spawn, mostly due to having spaces in the argument.
The correct configuration should be something like below
{
"hadolint.cliOptions": [
"--no-color",
"--ignore",
"DL3059"
],
// ... more stuff
}
or
{
"hadolint.cliOptions": [
"--no-color",
"--ignore=DL3059"
],
// ... more stuff
}
I added the sample config to README for future references https://github.com/hadolint/hadolint/blob/master/README.md#configure
Great, thanks a lot!
I'm trying to add a command line option to the
hadolint
command that this extension runs. In particular, I would like to ignore a ruleset.I have modified the vscode settings as follows:
This produces an error:
But when I copy the command that the extension says it runs and run it manually, everything works as expected (including the specified rule being ignored):
results in:
I'm using
hadolint
versionHaskell Dockerfile Linter 2.3.0-no-git
and only onehadolint
executable exists on my system.Is this supposed to be a supported feature? How else can I disable specific checks?