Fork me on GitHub
Israel Gerbi10:03:49

Hey @borkdude! A question about disabling specific linter / file I have a file named unleash_client.clj with a public method called enabled? Currently, all usages of this method are removed though I get the following error when running lein lint:

=================== WARNING: Parents ======================
==    Could not find any references to the following     ==


================== WARNING: Children ======================
==   The following have references to them, but their    ==
==   parents do not.                                     ==

Subprocess failed
I have tried to disable this warning for this specific file / method in a few ways using the, nothing worked Any ideas?

Israel Gerbi10:03:47

my last attempt of the .clj-kondo/config.edn file:

{:linters {:unresolved-symbol {:exclude [(clojure.core.match/match)
                               :level :info}
           :unused-referred-var {:level :warning
                                 :exclude {taoensso.timbre [info spy debug error warn]}}
           :unused-binding {:exclude-destructured-keys-in-fn-args true
                            :level :warning}
           :unused-namespace {:exclude [taoensso.timbre]
                              :level   :off}
           :invalid-arity {:skip-args [clojure.core.match/match]}
           :consistent-alias {:level   :warning
                              :aliases {clojure.string string
                                        clojure.set set
                                        clojure.walk walk
                                        af-wh-engmnt.utils.json json}}}
 :output {:exclude-files ["src/af_wh_engmnt/utils/unleash_client.clj"]}
 :skip-comments true
 :lint-as {mount.core/defstate clojure.core/def}}


I do not recognize those warnings as something that comes from clj-kondo


If you can provide a full standalone repro, I can take a look, but not with only the information you posted above.

Israel Gerbi11:03:39

sure I’ll provide one, thanks!

Israel Gerbi11:03:26

doubled checked, you’re right, it doesn’t come from clj-kondo, rather than a library called I’ll search for a solution there, thanks!