This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-06-20
Channels
- # announcements (5)
- # asami (7)
- # babashka-sci-dev (36)
- # beginners (50)
- # calva (47)
- # cider (1)
- # clj-kondo (19)
- # clojure (33)
- # clojure-europe (25)
- # clojure-nl (2)
- # clojure-uk (4)
- # clojurescript (26)
- # conjure (2)
- # cursive (5)
- # datalog (6)
- # fulcro (5)
- # graalvm (12)
- # leiningen (1)
- # malli (30)
- # off-topic (5)
- # rdf (4)
- # ring (11)
- # shadow-cljs (55)
Is there a way to suppress all warning level linters with the --config flag? I'm having trouble finding it if there is..., e.g. git ls-files -m | xargs clj-kondo --config '{:output {:level :error}}' --lint
that's still reporting warnings for me. ah, right, I'm just using this for the ouput not the exit code
I guess you can use grep for now and post an issue (there might already be one for this I vaguely remember)
Yeah, I think there's a stale issue, but it's not a big problem to use grep. Thanks for the help!!
since this can already be resolved with grep, I don't want to add to the number of things for you to juggle 🙂
Btw it's also possible to output EDN and then process it using e.g. babashka or clj or jet
$ clj-kondo --lint src --config '{:output {:format :edn}}' | jet -q ':findings (filter (= (quote :error) :level))'
or:
$ clj-kondo --lint src --config '{:output {:format :edn}}' | jet -t ':findings (filter #(= :error (:level %)))'
On another topic, I see that support for compojure macros is built in to clj-kondo. I'm running the most recent version of clj-kondo available thru brew. Is there an obvious place where I might have misconfigured things? All my defroutes are not being linted as def
@uwo can you be more specific? compojure support is indeed built-in so you should not have to configure anything