coc-docker icon indicating copy to clipboard operation
coc-docker copied to clipboard

hadolint for linting

Open madhukar93 opened this issue 4 years ago • 1 comments

https://github.com/hadolint/hadolint

A smarter Dockerfile linter that helps you build best practice Docker images. The linter is parsing the Dockerfile into an AST and performs rules on top of the AST. It is standing on the shoulders of ShellCheck to lint the Bash code inside RUN instructions.

This should make a good addition to the plugin. Thoughts?

madhukar93 avatar Jun 06 '20 17:06 madhukar93

You can configure hadolint by using this configuration https://github.com/iamcco/diagnostic-languageserver/wiki/Linters#hadolint and map the filetype with "diagnostic-languageserver.filetypes": { "dockerfile": "hadolint" } .

Alternatively, you can use coc-diagnostic and just map the filetype.

meinzer1899 avatar Nov 11 '22 15:11 meinzer1899