Fork me on GitHub
#lsp
<
2022-02-25
>
Noah Bogart18:02:22

I have a macro that creates a private function. i wrote a clj-kondo hook to use :analyze-call to transform the macro call to a normal defn-. I want to disable the unused-private-var lint, so I've added :clojure-lsp/unused-private-var {:exclude-when-defined-by #{my-ns.core/def-new-func} but this doesn't seem to work. is this an unfortunate side-effect of my transformation hook?

ericdallo18:02:34

I think the linter name is wrong 😅

ericdallo18:02:47

I think the correct is just :unused-private-var

ericdallo18:02:54

since this is a clj-kondo built-in linter

ericdallo18:02:07

the only one that is from clojure-lsp is :clojure-lsp/unused-public-var