Very simple container based on Alpine that runs several linting tools:
Build the container:
$ docker build -t simple-linter .
Test with demo
content:
$ docker run -v `pwd`/demo:/data simple-linter
./demo.yml
3:12 warning truthy value should be one of [false, true] (truthy)
./demo.py:1:21: W292 no newline at end of file
************* Module demo
demo.py:1:0: C0304: Final newline missing (missing-final-newline)
demo.py:1:0: C0114: Missing module docstring (missing-module-docstring)
-------------------------------------
Your code has been rated at -10.00/10
./demo.sh
2:1 warning missing document start "---" (document-start)
3:13 error no new line character at the end of file (new-line-at-end-of-file)
You can also use the entrypoint.py
script directly and set a working directory or other options:
Parameter | Description |
---|---|
-E / --exclude |
Excludes particular files (can be used multiple times) |
-d / --debug |
Enable debugging outputs (default: no) |
-l / --list |
Only lists files (default: no) |