This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
hi all 👋
I'm getting a :clojure-lsp/unused-public-var
for a function referenced by :init-fn
in shadow-cljs.edn
can kondo be aware of this somehow, without resorting to suppressing?
Thanks!
the linter depends on clj-kondo analysis, but the logic of this is implemented in clojure-lsp. I think clojure-lsp could maybe use the symbols analysis to know that the var is used. cc @UKFSJSM38
Yeah, that is something to improve on that linter, please open a issue in clojure-lsp @UKDLTFSE4, if you know other things in shadow-cljs.edn that can reference vara as well, please specify
@UKFSJSM38 you could just ignore any var that occurs in symbol analysis maybe, not just some specific cases for shadow-cljs?