Fork me on GitHub
#clj-kondo
<
2020-02-18
>
finn.volkel11:02:41

Is there anything special I need to do for flycheck-clj-kondo to pick up a config? The plugin works fine for me in clean project.

borkdude11:02:38

@finn.volkel The config is picked up using the current working directory. Emacs sets the current working directory for flycheck relative to the file you're editing

borkdude11:02:10

so if you're editing /foo/bar/baz.clj and your config is in /foo/bar/.clj-kondo/config.edn then it should work

finn.volkel11:02:42

there is a config at the root of the repo

borkdude11:02:03

does the config work from the command line?

borkdude11:02:08

I'm not aware of any changes you should have to do to flycheck-clj-kondo. I'm using that myself every day

finn.volkel11:02:45

Solved had to restart emacs from a new session.

finn.volkel11:02:51

Sorry for the hassle

dave.dixon18:02:04

Is there some way to set global/default config? Something similar to .clojure/deps.edn.

eggsyntax19:02:07

I'm also curious about sparkofreason's question. And another quick question -- does .clj-kondo/config.edn replace the default config, or is it merged at the top level, or is it deep-merged? Also thanks for clj-kondo, it brings me joy!

borkdude21:02:27

it is deep-merged. global/system/user configs are not supported. more info here: https://github.com/borkdude/clj-kondo/issues/736 solution: make a script (use babashka for it!)

dave.dixon21:02:50

Nice. Been looking for an excuse to use babashka. Thanks.

eggsyntax22:02:43

Thanks borkdude!