Fork me on GitHub
#clj-kondo
<
2019-12-10
>
yuhan03:12:05

sure - I was still figuring the CircleCI stuff out last night, will try again later

erwinrooijakkers17:12:09

How could we remove warnings like these again?

erwinrooijakkers17:12:44

Adding defstate in some .clj-kondo right

erwinrooijakkers17:12:56

{:lint-as {mount.core/defstate clojure.core/defn}}

erwinrooijakkers17:12:03

In .clj-kondo/config.edn

erwinrooijakkers17:12:53

Would be nice if a tool went over your libraries and added all the macros configs to config.edn

erwinrooijakkers17:12:20

Can you explain in one line what extra step is needed after running the analysis on a project? 🙂

borkdude17:12:04

selecting all the macros from the analysis output and stuff them in your config file

mafcocinco18:12:40

I'm a newb to clj-kondo. Trying to get it setup in my Spacemacs configuration. I have followed the steps as they appear here: https://github.com/borkdude/clj-kondo/blob/master/doc/editor-integration.md#spacemacs for the master branch, but to no avail. I'm reasonably confident that clj-kondo is available on my emacs path as I can run it from a shell that I start in emacs (Not sure if this is a sufficient test or not). I was able to build the cache in a .clj-kondo directory within the project I'm working on and could run the linter from the CLI without issue. However, getting clj-kondo working inside of Emacs is the last and most important step. Thanks in advance!

mafcocinco18:12:10

I have not. I will give it a try! Thanks.

mafcocinco19:12:32

clj-kondo-clj appears to be configured correctly. It could be that my expectations are off or user error is manifesting in some other way. The .clj-kondo cache is built for this project and I was able to lint files from the CLI. It was my expectation that if I included an unused namespace, for example, clj-kondo (if configured properly) would underline the namespace and flag it as unnecessary. That is currently not happening but maybe there is something else I need to do to turn this functionality on.

borkdude21:12:47

@mafcocinco I think it should say: Flycheck Mode is enabled. Use C-u C-c ! x to enable disabled checkers.

mafcocinco21:12:22

that did it. thanks @borkdude!