Fork me on GitHub
#clj-kondo
<
2020-08-31
>
robert-stuttaford10:08:39

thank you for fixing rum.core/defcs call-site arity issue @borkdude 🙏

❤️ 3
adambrosio21:08:36

What are my options if I want to refer in my config.edn hooks to a rewrite that i want provided as a library or just in my home dir? can I refer to a hooks that is outside of the .clj-kondo directory? I'm using vim / ALE and clojure-lsp, but for ale i would have to write a whole new linter file to pass it --config, and clojure-lsp just doesnt support that currently...

ep06:09:43

i think you can pass --config-dir to point to another directory

borkdude21:08:43

Currently hooks are expected to be inside the .clj-kondo. directory. Does a symlink work for your situation?

adambrosio21:08:44

i guess it would work, i was just hoping to have a home dir kondo config directory that would always be applied to all my clojure projects (or something equivalent)

borkdude21:08:39

We don't. Clj-kondo has the opinion that such config belongs to a project and that all team members agree on the same config

adambrosio21:08:30

ok, but does that mean that I would have to copy paste any hooks related to a library?

borkdude21:08:11

currently yes

adambrosio21:08:34

at the very least, if i could put some hooks into a library, and then use it in each project that would work fine

borkdude21:08:05

we might do better here by providing a classpath option, so you can put your hooks in a github project and use clojure to resolve that library into a classpath

adambrosio21:08:30

that could work

borkdude21:08:11

Could you make an issue about this?

adambrosio21:08:08

sure, not sure when but i'll get to it this week

borkdude21:08:19

thanks!

👍 6
adambrosio21:08:47

from the looks of it there are a few issues already related to this, eg: https://github.com/borkdude/clj-kondo/issues/559 you sure you want me to make a whole new issue? I could just add a comment?

borkdude21:08:39

I guess it is related

borkdude21:08:04

so posting the idea there is ok with me

👍 3