Fork me on GitHub
#clj-kondo
<
2023-03-14
>
Emanuel Rylke11:03:08

I've put :config-in-comment {:linters {:unresolved-namespace {:level :off} :unused-binding {:level :off}}} into my clj-kondo config and that worked for disabling the unresolved namespace linter but not for the unused binding linter. is that how it is or did I do something dumb?

borkdude11:03:35

This works for me:

(ns dude
  {:clj-kondo/config '{:config-in-comment {:linters {:unresolved-namespace {:level :off}
                                                     :unused-binding {:level :off}}}}})


(comment
  (clojure.string/includes? "")
  (let [x 1]
    )
  )

borkdude11:03:19

can you give a "counter" repro?

Emanuel Rylke12:03:46

Turns out I was using an outdated version, after updating clj-kondo it now works. Sorry for the bother

borkdude12:03:49

no worries :)