https://clojurians.slack.com/archives/C06MAR553/p1753541112205909
I have a macro that provides a function pushto be used in the macro body. Clj-kondo marks this as an unresolved symbol. I have written a hook which should return something like {:node (vary-meta new-node assoc :clj-kondo/ignore [:unresolved-symbol])} .
But I want it to ignore only the symbol push, all other unresolved symbols should be reported.
What would be the correct syntax for this?
it depends on what node you're adding this to, but this should more or less be it
perhaps your hook could do something like this:
(let [push ...]
...)instead
I tried that. But then I get the warning unused-symbol when the function does not get used.
you could just inject a fake usage somewhere
like
(let [push ...
_ (push)]Ah. Jepp!! Thanx!!!