clj-kondo / config

Please use https://github.com/clj-kondo/configs instead
Eclipse Public License 1.0
33 stars 10 forks source link

uniform file structure for the repo? #9

Closed andreyorst closed 3 years ago

andreyorst commented 3 years ago

Some library hooks are stored in:

lib-name/.clj-kondo/hooks/lib-name/hook-name.clj

Let's call it "variant A". And some are using:

lib-name/.clj-kondo/hooks/hook-name.clj

, which I'll refer to as "variant B".

Having different paths for different libraries it makes a bit harder to reason about when copying configs around manually.

I'm not sure, but I think it would be better, if all libs used variant A, since it is more futureproof since it matches Clojure's namespacing style, and can easily be copied over to a certain hooks directory

borkdude commented 3 years ago

I think a variant where we include the lib org + lib name is better (as a two-level directory), to prevent clashes. Also see #1.

borkdude commented 3 years ago

I now refactored it to org+lib-name without an extra hooks parent dir.

borkdude commented 3 years ago

Also see https://github.com/borkdude/clj-kondo/blob/master/doc/config.md#Exporting-and-importing-configuration