clj-kondo / inspector

Turn Clojure specs into clj-kondo type annotations
Eclipse Public License 1.0
31 stars 0 forks source link

Analyze vars (e.g. created by macros) to prevent false positives #5

Open borkdude opened 3 years ago

borkdude commented 3 years ago

This tool could inspect vars created in the runtime after loading a set of namespaces. This data could be dumped to a file which clj-kondo will use for a second opinion to prevent false positives.

borkdude commented 3 years ago

1m didibus I guess its because I'm coming from the perspective of tools.namespace refresh. People will often like eval a defn and later delete it. So now if you peek in the REPL, you will see that it is there, but that's the bug they want to be warned against.

<1m borkdude yeah, that's true, this is also where clj-kondo shines right now: it will tell you the var doesn't exist anymore .. hmm