clj-kondo 2026-07-24

I am building a tool for munging clojure s-expressions and I want to piggie back of existing clj-kondo config like :lint-as, is there a way to get clj-kondo to dump its "effective" config? the cli tool doesn't seem to have any options for that, and I'm not sure using clj-kondo as a library dep in babashka is ok?

you get back the effective config in a call to run!

you can use clj-kondo in babashka via the clj-kondo pod

clj-kondo (master, commit 262739ce) reports unused bindings for a and b-a in the following:

(deftest clj-kondo-warns-for-unused-keys-when-select-test
  (is (= {:a 101 :b {:b-a 121}}
         (let [{a :a
                {:keys [b-a]} :b
                :select select} {:a 101
                                 :b {:b-a 121}}]
           select))))
However, they are used because removing them changes the value of select. I wonder whether this should be regarded as a bug.

✅ 1

:keys [& :b-a] is the solution for that. And :keys [& :a] at the top-level.

We've found the & construct very helpful at work, as we've adopted both :keys! and :select.

👍 1

> :keys [& :b-a] is the solution for that. And :keys [& :a] at the top-level. The annoying thing is I knew that two days ago. Remembering things gets harder as time goes by.

Yeah what @seancorfield says :)

🙂 1