Fork me on GitHub
#clj-kondo
<
2020-02-04
>
d.ian.b13:02:15

how I config the "root" kondo for emacs lsp-mode use a lint-as config?

borkdude13:02:59

@d.ian.b The .clj-kondo/config.edn lives in the root of your project.

d.ian.b13:02:57

I need to restart lsp server to re-detect the config.edn?

borkdude13:02:51

no, I think the lsp-server should set the current working directory for the file you're editing

borkdude13:02:32

for example in Visual Studio Code you can open a directory and edit files. then the current working directory for plugins becomes that directory

borkdude14:02:08

@d.ian.b If something does not work as expected, you can hack on the LSP server and add some logging. The code is here: https://github.com/borkdude/clj-kondo.lsp

slawek09814:02:10

Does clj-kondo should warn about non-existant namespaces?

borkdude14:02:32

@slawek098 it does warn about namespaces that you are trying to use but you haven't required. but it does not check if the namespace exists somewhere on disk