clj-kondo 2025-05-03

If I follow the instructions for ignoring warnings for only one language at https://github.com/clj-kondo/clj-kondo/blob/master/doc/config.md#ignore-warnings-in-an-expression and use…

#_{:clj-kondo/ignore #?(:clj [:unused-binding] :cljs [])}
(defn foo [x]
  #?(:cljs x)) ;; x is only used in cljs, but unused is ignored for clj, so no warning
…I get a redundant-ignore for CLJS — so it removes one unwanted warning but adds another. 🙂 Is this intended? Is there something else I should be doing?

lol, sorry about that. you hit an untested edge case here. can you file an issue about this?

you can just disable redundant-ignore for now I guess

> can you file an issue about this? Sure

> you can just disable redundant-ignore for now I guess 👍

thanks Simon!

👍 1