Fork me on GitHub
#clj-kondo
<
2020-08-03
>
Charlie Briggs12:08:57

Hey, is the current intention for users of clj-kondo to copy and paste the hook definitions of libraries into each project using those definitions? E.g copying hooks/slingshot if using Slingshot?

borkdude12:08:05

If you found something in the READMEs confusing about this, please let me know and I'll change it

Charlie Briggs12:08:44

great, I think it would help if that was more explicit in the Libraries section, i.e. directly calling out the process of adding them for now something like: > Configuration for external libraries can be setup in each clj-kondo project by copying the required library configuration into the .clj-kondo directory. See libraries for a collection of existing configurations

borkdude12:08:03

I have wondered if using a different name like reference-config or something would be clearer

borkdude12:08:11

PR welcome for the text change btw

Charlie Briggs12:08:53

cool, is there any way for libraries to package these configurations currently which can then be picked up by clj-kondo, or is something like that on the roadmap?

borkdude13:08:03

@charliebriggs It is something I've been thinking about and there is an issue for it. https://github.com/borkdude/clj-kondo/issues/559 It's just not that clear cut yet.

Charlie Briggs13:08:12

great, thanks for your help!

borkdude13:08:57

Right now I recommend writing a script that merges and copies all your favorite configs into the right places

borkdude13:08:08

Babashka can be used for this if you want to do it in Clojure

borkdude13:08:23

clj-kondo exposes a function called merge-configs to merge clj-kondo configuration