This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-12-10
Channels
- # adventofcode (76)
- # announcements (7)
- # aws (3)
- # babashka (75)
- # beginners (25)
- # calva (37)
- # cider (9)
- # clara (4)
- # clj-kondo (17)
- # cljsrn (1)
- # clojure (106)
- # clojure-europe (4)
- # clojure-india (2)
- # clojure-italy (12)
- # clojure-nl (27)
- # clojure-spec (33)
- # clojure-uk (20)
- # clojurescript (103)
- # clojutre (3)
- # core-async (1)
- # cryogen (10)
- # cursive (24)
- # datomic (113)
- # dirac (5)
- # emacs (12)
- # events (4)
- # fulcro (64)
- # garden (5)
- # jobs (1)
- # kaocha (5)
- # luminus (2)
- # malli (14)
- # off-topic (53)
- # planck (11)
- # re-frame (9)
- # reagent (16)
- # reitit (26)
- # remote-jobs (2)
- # shadow-cljs (137)
- # spacemacs (34)
How could we remove warnings like these again?
Adding defstate
in some .clj-kondo right
{:lint-as {mount.core/defstate clojure.core/defn}}
In .clj-kondo/config.edn
Would be nice if a tool went over your libraries and added all the macros configs to config.edn
@erwinrooijakkers You can write such a tool using the analysis output: https://github.com/borkdude/clj-kondo/tree/master/analysis
Can you explain in one line what extra step is needed after running the analysis on a project? 🙂
selecting all the macros from the analysis output and stuff them in your config file
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!
@mafcocinco Have you tried this? https://github.com/borkdude/flycheck-clj-kondo#troubleshooting
I have not. I will give it a try! Thanks.
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.
@mafcocinco I think it should say: Flycheck Mode is enabled. Use C-u C-c ! x to enable disabled checkers.
that did it. thanks @borkdude!