A Leiningen plugin to run clj-kondo.
Add the plugin to your project.clj
:
:plugins [[com.github.clj-kondo/lein-clj-kondo "0.1.3"]]
This plugin accepts the following pattern clj-kondo <options>
.
For more information on all available options, Check the documentation.
$ lein clj-kondo --lint $classpath
You can configure your project.clj to add custom aliases to run specific clj-kondo tasks, below you can find a simple example which first lint the project dependencies and then lint the project code:
,,,
:aliases {"clj-kondo-deps" ["clj-kondo" "--copy-configs" "--dependencies" "--lint" "$classpath"]
"clj-kondo" ["do" ["clj-kondo-deps"] ["clj-kondo" "--lint" "src" "test"]]}
,,,
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close