clj-kondo

https://github.com/clj-kondo/clj-kondo
Charlie Briggs 2020-08-03T12:49:57.268500Z

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?

borkdude 2020-08-03T12:53:50.268700Z

@charliebriggs Currently, yes

borkdude 2020-08-03T12:54:05.269200Z

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

Charlie Briggs 2020-08-03T12:55:44.269800Z

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

borkdude 2020-08-03T12:58:03.270500Z

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

borkdude 2020-08-03T12:58:11.270800Z

PR welcome for the text change btw

Charlie Briggs 2020-08-03T12:58:53.271500Z

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?

borkdude 2020-08-03T13:00:03.272200Z

@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 Briggs 2020-08-03T13:00:12.272600Z

great, thanks for your help!

borkdude 2020-08-03T13:00:57.273Z

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

borkdude 2020-08-03T13:01:08.273300Z

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

borkdude 2020-08-03T13:01:23.273700Z

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