Skip to content

stdevel/simple-linter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

build our image

simple-linter

Very simple container based on Alpine that runs several linting tools:

Building

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)