clj-kondo

Kimmo Ahola 2024-08-08T07:09:24.730149Z

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?

imre 2024-08-08T07:12:13.296789Z

Doesn't look like an antipattern to me at all

Kimmo Ahola 2024-08-08T07:13:08.786189Z

Yeah. I just usually return a list using (list) and that removes the warning in this case.

Kimmo Ahola 2024-08-08T07:13:41.150379Z

And (fn [] '(1 2 3)) does not produce warnings

borkdude 2024-08-08T07:17:25.837029Z

Yes, issue welcome

Kimmo Ahola 2024-08-08T07:37:18.228309Z

Created https://github.com/clj-kondo/clj-kondo/issues/2369

borkdude 2024-08-08T07:48:54.212219Z

thanks!

borkdude 2024-08-08T10:03:29.420319Z

fixed on master

Kimmo Ahola 2024-08-08T10:12:22.352029Z

Thanks! Tested and works great.