Fork me on GitHub
#clj-kondo
<
2024-07-22
>
exitsandman08:07:21

Hello. I have been using spec a lot for macros because it's really good at processing arg lists, but it always creates issues when I try to define a macroexpand hook. As far as I understand, clj-kondo's Clojure interpreter used for processing these macroexpansions is deliberately light on dependencies, and I'm not here to ask to change that ofc. What I wanted to know is, did anyone here run into the same issue and find a good solution beyond not using spec ?

borkdude08:07:24

spec isn't included yet, since it's still alpha

andrea.crotti21:07:52

how are people dealing with clj-kondo configuration and lots of different repositories? Since most rules really should be shared across multiple (if not all) projects, it would be nice to avoid repeating them everywhere. We could put the config in a scripts repo and symlink it, but it should run the same way locally and on CI. I also wanted to use https://pre-commit.com/ but I don't think I convinced enough colleagues to use that, that would also help with centralising the config. Any other ideas?

borkdude21:07:49

You can use :config-paths ["../shared-config"] for this