clj-kondo

https://github.com/clj-kondo/clj-kondo
slimslenderslacks 2020-07-01T00:39:08.109300Z

@borkdude I'm trying to deploy a new version of the clj-kondo skill with support for running hooks. But I think that borkdude/clj-kondo:latest has version clj-kondo v2020.06.12 and that does not have support for hooks yet, right?

slimslenderslacks 2020-07-01T01:15:38.114900Z

Also, I think this is a quick question. My current understanding of hooks is that the config.edn {:hooks {:analyze-call {macro-symbol hook-symbol}}} could be merged from anywhere so as long as I can get that data into command line --config it should be available to clj-kondo. However, the code for the hook itself has to be in the :cfg-dir so that it can be required. Looking at the code, maybe it could also be slurped if we were to use a form like {:hooks {:analyze-call {macro-symbol "my/hook.clj"}}}``. I've only been trying to do this with symbols so far but I want to confirm my understanding that the :cfg-dir plays a crucial role here. I guess that's .clj-kondo by default.

borkdude 2020-07-01T07:23:24.115200Z

@slimslenderslacks 2020.06.21 is the latest version, includes hooks

borkdude 2020-07-01T07:23:59.115500Z

see https://clojars.org/clj-kondo

slimslenderslacks 2020-07-01T14:43:29.115700Z

Sorry, what I really had meant to ask was about the docker image currently tagged latest But looking closer, it seems like that's on 2020.06.21 as well. So that should have hooks support.

borkdude 2020-07-01T14:44:59.115900Z

it should yes