This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-08-31
Channels
- # announcements (1)
- # babashka (27)
- # beginners (107)
- # calva (2)
- # cider (1)
- # clara (1)
- # clj-kondo (17)
- # clojure (74)
- # clojure-europe (18)
- # clojure-nl (4)
- # clojure-norway (3)
- # clojure-spec (11)
- # clojure-uk (3)
- # clojurescript (10)
- # conjure (12)
- # datomic (4)
- # figwheel-main (1)
- # fulcro (28)
- # graalvm (11)
- # hugsql (12)
- # joker (1)
- # klipse (5)
- # malli (2)
- # meander (1)
- # membrane (9)
- # off-topic (26)
- # pedestal (6)
- # remote-jobs (1)
- # ring-swagger (5)
- # shadow-cljs (4)
- # test-check (14)
- # vrac (8)
- # xtdb (8)
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...
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?
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
sure, not sure when but i'll get to it this week
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?