lint_clojure
Analyze and identify errors or warnings in Clojure, ClojureScript, and EDN files using clj-kondo. Supports file paths, directories, or classpaths, with customizable linting levels and configurations.
Instructions
Lint Clojure/ClojureScript/EDN content using clj-kondo
Input Schema
Name | Required | Description | Default |
---|---|---|---|
configDir | No | Optional absolute path to .clj-kondo config directory (e.g. /Users/name/project/.clj-kondo). If not provided, clj-kondo will look for .clj-kondo directory in the current and parent directories. | |
file | Yes | Can be: 1) Absolute path to a file, 2) Directory path (will lint all .clj/.cljs/.cljc files recursively), or 3) Classpath string (obtained via `lein classpath` or `clojure -Spath`) | |
level | No | Optional linting level. By default all lints are errors. Set to "warning" to use warning level instead. |