This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-02
Channels
- # babashka (117)
- # babashka-sci-dev (6)
- # beginners (34)
- # biff (2)
- # calva (7)
- # clj-kondo (27)
- # clojure (6)
- # clojure-dev (8)
- # clojure-europe (41)
- # clojure-israel (1)
- # clojure-nl (1)
- # clojure-norway (2)
- # clojure-uk (1)
- # clojurescript (22)
- # cursive (3)
- # datascript (12)
- # dev-tooling (4)
- # emacs (13)
- # hyperfiddle (60)
- # introduce-yourself (8)
- # joyride (9)
- # lsp (46)
- # malli (3)
- # mranderson (75)
- # off-topic (40)
- # pathom (9)
- # pedestal (4)
- # reagent (11)
- # reitit (18)
- # releases (2)
- # shadow-cljs (81)
- # squint (18)
Is there a way to configure lein clj-kondo
so that it exits with 0
when there are only warnings?
Is there a way to set fail-level
inside project.clj
somehow?
@U0L91U7A8 I think you can do it like this:
https://github.com/clj-kondo/lein-clj-kondo#config
with :fail-level :error
you can also do it like this I guess? https://github.com/clj-kondo/lein-clj-kondo#aliases
And as part of .clj-kondo/config.edn
?
(-> (clj-kondo.core/run! {:fail-level :error :lint ["src" "test"]}) (clj-kondo.core/print!))
I prefer to have it inside project.clj
. But it doesn't seem to work 😞
With aliases, it works
But not with ;config
under :clj-kondo
in project.clj
I think lein clj-kondo doesn't pick up on settings outside of config though so you'll have to go with aliases - is this a problem?
Let me see...
It is a bit problematic in our case as we have a kondo-lint
alias defined in a parent project. I'd prefer not overriding it in the child project.
@U0L91U7A8 Should be supported now with version 0.2.3
Perfect!
I cannot use a different name for kondo-lint
alias because it is used by another alias 😱