Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 569 Bytes

docker.md

File metadata and controls

17 lines (10 loc) · 569 Bytes

Docker

To run with Docker:

docker run -v $PWD/src:/src --rm cljkondo/clj-kondo clj-kondo --lint src

To lint an entire project including dependencies, you can mount your Maven dependencies into the container:

docker run -v $PWD/src:/src -v $HOME/.m2:$HOME/.m2 --rm cljkondo/clj-kondo \
  clj-kondo --lint $(clj -Spath)

To lint stdin:

echo '(select-keys)' | docker run -i --rm cljkondo/clj-kondo clj-kondo --lint -

You can use the latest tag to get the latest non-SNAPSHOT release. See tags.