This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-12-14
Channels
- # adventofcode (29)
- # aws (3)
- # babashka (25)
- # beginners (13)
- # calva (4)
- # cherry (7)
- # cider (26)
- # clj-kondo (9)
- # clojure (88)
- # clojure-europe (21)
- # clojure-losangeles (3)
- # clojure-nl (1)
- # clojure-norway (6)
- # clojure-uk (11)
- # clojuredesign-podcast (2)
- # clojurescript (4)
- # cursive (10)
- # datalevin (1)
- # emacs (50)
- # gratitude (1)
- # honeysql (12)
- # hyperfiddle (19)
- # jobs-discuss (28)
- # kaocha (3)
- # lsp (53)
- # malli (4)
- # meander (3)
- # off-topic (48)
- # re-frame (11)
- # releases (2)
- # ring-swagger (2)
- # shadow-cljs (50)
- # squint (26)
- # tools-build (3)
- # tools-deps (8)
- # xtdb (4)
- # yamlscript (1)
Is it possible to ask clj-kondo to format inline-configs as it copies them using my custom formatter?
Is it possible to suppress linting summary linting took 14ms, errors: 1, warnings: 1
(especially when there are no errors or warnings)?
Nevermind, found this undocumented(?) config option {:output {:summary false}}
.
I was looking into how to make clj-kondo work reliably for a subset of files on any commit and any branch and found that I need to always refresh the cache manually before getting the correct output. A simpler version of this is that when I’m linting a particular namespace, I may have no errors and warnings if I’m using cache, but if I set cache to false, I get a lot of warnings. Is there a way to have clj-kondo detect missing cache entries automatically (using clj-kondo.exports or otherwise) so that if the cache is not built or out of date, it would still produce correct linting output?
Before cloning a project, you can run what is instructed here: https://github.com/clj-kondo/clj-kondo?tab=readme-ov-file#project-setup If you use clojure-lsp then this will happen automatically
If refreshing the cache is mandatory for linting to work correctly, sounds like it may be not as important to check in those copied configs as they can be recreated each time? I was looking into the situation where I can check in enough content for clj-kondo to produce the same correct linting result without an extra step. I assumed that checked in copied configs would do that but sounds like it isn’t so?