Liking cljdoc? Tell your friends :D

lein-clj-kondo

A Leiningen plugin to run clj-kondo.

Installation

Add the plugin to your project.clj:

:plugins [[clj-kondo/lein-clj-kondo "0.1.0"]]

Usage

This plugin accepts the following pattern clj-kondo <options>.

For more information on all available options, Check the documentation.

lein CLI

$ lein clj-kondo --lint $classpath

Aliases

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