Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1.72 KB

README.md

File metadata and controls

49 lines (32 loc) · 1.72 KB

VS Code hadolint extension

Build Status Greenkeeper badge

Integrates hadolint, a Dockerfile linter, into VS Code. Please check their documentation.

The extension uses the hadolint binary installed in the system. If the binary is not existed in $PATH, the extension will not work as expected.

Preview

https://gyazo.com/a701460ccdda13a1a449b2c3e8da40bc

Get started

If you are on MacOS you can use Homebrew to install hadolint.

brew install hadolint

You can download prebuilt binaries for Linux and Windows from the latest release page.

Configuration

Below is a sample configuration of the extension.

{
  "hadolintPath": "hadolint",
  "cliOptions": ["--no-color", "--ignore", "DL3000"],
  "maxNumberOfProblems": 100,
  "outputLevel": "warning"
}

This extension is multi-root compatible. You may have many folders with different .hadolint.yaml opened in the same VSCode instance and they will not interfere each other.

You may also create a .hadolint.yaml in your project root. Learn more from hadolint documentation.

ignored:
  - DL3000

Development

  • Run yarn install to install dependencies.
  • Press F5 or run Launch Client from debugger.