Integrate hadolint, the Dockerfile
linter, into Visual Studio Code. Dockerfiles are linted as you type and
violations are surfaced inline and in the Problems panel.
Features
Lints any file recognised by VS Code as a Dockerfile language.
Lints on open, on save, and while typing (debounced) — including unsaved
buffer contents, which are streamed to hadolint via stdin.
Maps hadolint levels to VS Code severities: error → Error, warning →
Warning, info → Information, style → Hint.
Rule codes (DL#### and ShellCheck SC####) link straight to their online
documentation.
Auto-discovers .hadolint.yaml / .hadolint.yml in the workspace folder.
Requirements
You must have the hadolint executable installed and on your PATH, or point
the extension at it via the hadolint.hadolintPath setting.