Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/michaellzc/vscode-hadolint

VSCode extension to integrate hadolint, a Dockerfile linter, into VSCode
https://github.com/michaellzc/vscode-hadolint

dockerfile dockerfile-linter hadolint linter vscode vscode-extension vscode-plugin

Last synced: 3 months ago
JSON representation

VSCode extension to integrate hadolint, a Dockerfile linter, into VSCode

Lists

README

        

# VS Code hadolint extension

[![Build Status](https://travis-ci.com/ExiaSR/vscode-hadolint.svg?branch=master)](https://travis-ci.com/ExiaSR/vscode-hadolint)
[![Greenkeeper badge](https://badges.greenkeeper.io/ExiaSR/vscode-hadolint.svg)](https://greenkeeper.io/)

Integrates [hadolint](https://github.com/hadolint/hadolint), a Dockerfile linter, into VS Code. Please check their [documentation](https://github.com/hadolint/hadolint).

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](https://i.gyazo.com/a701460ccdda13a1a449b2c3e8da40bc.gif)](https://gyazo.com/a701460ccdda13a1a449b2c3e8da40bc)

## Get started

If you are on `MacOS` you can use [Homebrew](https://brew.sh) to install hadolint.

```bash
brew install hadolint
```

You can download prebuilt binaries for Linux and Windows from the latest [release page](https://github.com/hadolint/hadolint/releases/latest).

## Configuration

Below is a sample configuration of the extension.

```json
{
"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](https://github.com/hadolint/hadolint/blob/master/README.md#configure).

```yml
ignored:
- DL3000
```

## Development

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