michaellzc / vscode-hadolint

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

add support for hadolint running in a container #40

Closed CaseyBurnsSv closed 3 years ago

CaseyBurnsSv commented 3 years ago

is it possible to add support for running hadolint like this?

docker run --rm -i hadolint/hadolint < Dockerfile

CaseyBurnsSv commented 3 years ago

i made some progress by creating a batch file named hadolint.bat on my path.but it seems this extension cannot parse the output? i get this error:

hadolint: Cannot read property 'lineNumber' of null

michaellzc commented 3 years ago

Please see https://github.com/ExiaSR/vscode-hadolint/issues/37#issuecomment-605198126

I am not familar with scripting on Windows, but it should be good enough as an example.

Please reopen if you have more questions