Fork me on GitHub
#clj-kondo
<
2021-09-16
>
naomarik16:09:29

How would I completely ignore a form in my .clj-kondo file, similar to the comment?

#_:clj-kondo/ignore
(encore/cond
  :let [a 1]
  a)

borkdude16:09:56

@naomarik you would like to ignore one form, but by configuration in .clj-kondo/config.edn? I'm not sure if I got that correctly

naomarik16:09:53

yeah just to remove all the errors from taensso.encore/cond macro

borkdude16:09:36

So, the error is primarily unresolved symbol I think?

borkdude16:09:49

can you provide more examples? I suspect there is a better solution

naomarik16:09:10

yup exactly

naomarik16:09:15

i wouldn't mind ignoring it outright and not have linting, but only way I can do that seems to be with that comment

borkdude16:09:59

alright, for now:

{:linters {:unresolved-symbol {:exclude [(taoensso.encore/cond)]}}}

borkdude16:09:42

in .clj-kondo/config.edn

naomarik16:09:22

ahh I was close to that

:linters {:unresolved-symbol {:exclude [(encore/cond)]}}

naomarik16:09:51

all good now, was missing the full namespace 🙂

🎉 2