lein check alternative for Clojure CLI tool
You don't have to have Leiningen to check your codebase anymore :-)
Add the following to your deps.edn:
:aliases {:check {:extra-deps {athos/clj-check {:git/url "https://github.com/athos/clj-check.git"
:sha "da6363a38b06d9b84976ed330a9544b69d3c4dee"}}
:main-opts ["-m" "clj-check.check"]}}If your project has its codebase under some directories other than src (say src/clj and src/cljc), specify them as the command line arguments as follows:
:aliases {:check {...
:main-opts ["-m" "clj-check.check" "src/clj" "src/cljc"]}}Then, run clj-check via the declared alias:
For clj versions 1.10.1.697 and greater:
clj -M:check
For older versions:
clj -A:check
Copyright © 2018 Shogo Ohta
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.