thank you for fixing rum.core/defcs
call-site arity issue @borkdude 🙏
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...
i think you can pass --config-dir
to point to another directory
Currently hooks are expected to be inside the .clj-kondo
. directory. Does a symlink work for your situation?
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)
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
ok, but does that mean that I would have to copy paste any hooks related to a library?
currently yes
at the very least, if i could put some hooks into a library, and then use it in each project that would work fine
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
that could work
Could you make an issue about this?
sure, not sure when but i'll get to it this week
thanks!
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?
I guess it is related
so posting the idea there is ok with me