Fork me on GitHub
#clj-kondo
<
2023-03-22
>
ep06:03:59

Hi, I’ve defined a few hooks in some repo configs and now would like to export them. What’s the correct way to set them up so they can still be used within the project itself? Do I still need to “copy-configs” to the repo’s .clj-kondo/ or can it be configured to find them in the exported resources location to avoid the duplication? I’ve searched through here and looked at the docs but haven’t had luck.

borkdude08:03:55

@UNNNQBC7N You can do this by adding :config-paths ["../resources/clj-kondo.exports/your.org/your.lib"] in your .clj-kondo/config.edn

ep11:03:47

:man-facepalming: thank you

borkdude11:03:50

@UNNNQBC7N No worries, this is a common question and perhaps the documentation isn't clear on this. Feel free to PR some clarifications

ep18:03:29

Will gladly do so

borkdude19:03:49

I created an example of how to make an AST from clj-kondo analysis and rewrite-clj: https://github.com/clj-kondo/clj-kondo/tree/master/analysis#ast

🙌 2
🆒 4
borkdude19:03:15

@U0FR82FU1 I think you asked about a similar thing once.