Dockerfile linter written in Go. It provides static analysis for Dockerfiles, identifying common mistakes and promotes best practices.
MIT License
Disclaimer: this has started out as a pet-project while learning Golang.
Dockerfile linter written in Go.
It provides static analysis for Dockerfiles, identifying common mistakes and promotes best practices.
Each Dockerfile AST element has a corresponding set of rules. Click on the picture for details.
Feature | Status | |
---|---|---|
Extendable ruleset | ||
CLI | ||
Configurable Output | ||
- JSON | ||
- Colored Summary | ||
Docker image | ||
Rule pass | ||
- Per line | ||
- Config file | ||
Config file | ||
- Rule profiles | ||
IDE plugins/extensions | ||
- VSCode | ||
- JetBrains |
A collection of documents describing the thought process behind selected design decisions. Link >
docker pull cremindes/whalelint:[tag]
docker run --rm -v $(pwd)/Dockerfile:/Dockerfile cremindes/whalelint:[tag] Dockerfile
*Note: make sure, to also install the Docker plugin in case it's not bundled with the IDE.