michaellzc / vscode-hadolint

VSCode extension to integrate hadolint, a Dockerfile linter, into VSCode
https://marketplace.visualstudio.com/items?itemName=exiasr.hadolint
MIT License
78 stars 5 forks source link

issue in hadolint.cliOptions VScode: setting.json #71

Closed idoharel closed 2 years ago

idoharel commented 2 years ago

hi, In setting.json. when I try adding more option to hadolint.cliOptions the extinction failed to lint the issues, look it only can tak --no-color for example, I tried add this: "hadolint.cliOptions": [ "--ignore DL4001", "--no-color" ]

or this "hadolint.cliOptions": [ "--ignore DL4001 --no-color" ]

or this: "hadolint.cliOptions": [ "-c some/path/to/.hadolint.yaml --no-color" ]

I tried to add option to set config file in other location (not root of project)

I run on Ubuntu with latest hadolint version if I run with same flag from terminal, it works as excepted

idoharel commented 2 years ago

I see now that need set it like this: "hadolint.cliOptions": [ "--no-color", "--config=some/path/to/.hadolint.yaml" ]

or:

"hadolint.cliOptions": [ "--no-color", "--ignore=DL4001" ]