Hello! I did update clj-kondo to 2024.08.01. I think the https://github.com/clj-kondo/clj-kondo/issues/2342 causes one minor false positive.
If I use this slight anti-pattern (return a list using '):
(fn [] '({:a 1} {:b 2} {:c 3}))
Then I get the unused value warning about the :a and :b map.
Is this something to be fixed (I can create an issue) or something else?Doesn't look like an antipattern to me at all
Yeah. I just usually return a list using (list) and that removes the warning in this case.
And (fn [] '(1 2 3)) does not produce warnings
Yes, issue welcome
thanks!
fixed on master
Thanks! Tested and works great.