clj-kondo 2024-12-04

does clj-kondo support reporting reflective calls or is that out-of-scope?

I really like that clj-kondo exposes data not only stderr warning

@ghadi it doesn't since it doesn't really use the clojure compiler

tangent: does clj-kondo do type flow analysis?

you mean something like this?

(let [x :foo] (inc x))
which gives a lint warning? (in this case, yes)

fwiw, I use eastwood to tell me about reflection warnings

oh I forgot about eastwood...

I mean like discovering (Thread/sleep x) is reflective when x isn't known

whether (Thread/sleep x) is reflective depends on your JVM version, clj-kondo doesn't care/know about that, it doesn't assume too much outside of code

eastwood does use the clojure compiler (to expand macros etc) so that seems like a better tool to use for that purpose

I also like eastwood for telling me about deprecations in JVM and Java lib dependencies. But otherwise, kondo is my jam.