Fork me on GitHub
#clj-kondo
<
2021-06-16
>
tatut04:06:12

tried hooks and it works great, transformed my custom macro into a simple defn that can be linted

tatut05:06:48

the map-node seems to be commented out in the hooks api

tatut07:06:54

little cumbersome to develope without repl, should probably start a clj-kondo repl in jvm clojure for hook development

borkdude07:06:40

@tatut you can use prn and println :)

borkdude07:06:01

but yeah, you can also run clj-kondo on the JVM and then run the hook over some code

tatut07:06:09

yeah, tried that but I found it still difficult to determine what I can do with the ndoes

tatut07:06:27

I’m used to “inspect things in the repl” workflow so println is painful 😄

tatut11:06:43

ah, but the hooks api is not in the jvm version… it’s a sci thing?

borkdude12:06:28

@tatut correct. it runs in sci for both safety and native-image compatibility (can't use clojure's eval in a native binary)