You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 3, 2020. It is now read-only.
whale-linter is a cross-platform Dockerfile linter.
Installation
Tested on
Python 3.2, 3.4, 3.5
Debian wheezy, jessie, stretch
Docker : The cool way :)
Note : You should use a specific tag (like jeromepin/whale-linter:0.0.7) instead of (implicit) latest
docker run -it --rm -v /path/to/Dockerfile:/Dockerfile jeromepin/whale-linter
PyPI : The easy way
pip install whale-linter
and to upgrade :
pip install --upgrade whale-linter
Usage
usage: whale-linter [-h] [-i RULE] [-v] DOCKERFILE
A simple non professional Dockerfile linter
positional arguments:
DOCKERFILE The Dockerfile to lint
optional arguments:
-h, --help Show this help message and exit
-i, --ignore RULE Rule to ignore
-v, --version Print version
Rules
Here is the list of all rules checked by whale-linter.
Do not hesitate to create a new issue if you have an idea for a new/incomplete rule.
Rules are ordered as follows :
WL1xxx : Critical errors
WL2xxx : Bad practices
WL3xxx : Enhancements
Rule
Corresponding message (as template given in config.json)