clj-kondo

https://github.com/clj-kondo/clj-kondo
robert-stuttaford 2020-08-31T10:37:39.006700Z

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

❤️ 1
adambros 2020-08-31T21:02:36.009500Z

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...

ep 2020-09-06T06:17:43.072700Z

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

borkdude 2020-08-31T21:07:43.010600Z

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

adambros 2020-08-31T21:08:44.011300Z

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)

borkdude 2020-08-31T21:09:39.012700Z

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

adambros 2020-08-31T21:10:30.013200Z

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

borkdude 2020-08-31T21:11:11.014500Z

currently yes

adambros 2020-08-31T21:11:34.015Z

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

borkdude 2020-08-31T21:12:05.015800Z

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

adambros 2020-08-31T21:12:30.016100Z

that could work

borkdude 2020-08-31T21:13:11.016700Z

Could you make an issue about this?

adambros 2020-08-31T21:14:08.017300Z

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

borkdude 2020-08-31T21:14:19.017500Z

thanks!

👍 2
adambros 2020-08-31T21:34:47.018200Z

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?

borkdude 2020-08-31T21:41:39.018600Z

I guess it is related

borkdude 2020-08-31T21:43:04.018800Z

so posting the idea there is ok with me

👍 1