Skip to content

Commit

Permalink
dev: bump clj-kondo (#48)
Browse files Browse the repository at this point in the history
* dev: bump clj-kondo

Because who can resist, right?
Clj-kondo now supports copying configs and generating the cache for
dependencies in one step, so move to that.

* typo
  • Loading branch information
lread authored Aug 1, 2024
1 parent 2c8fd8b commit 9cbd22d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
slipset/deps-deploy {:mvn/version "0.2.2"}}
:ns-default build}
:uber {:extra-paths ["test"]}
:clj-kondo {:extra-deps {clj-kondo/clj-kondo {:mvn/version "2024.05.24"}}
:clj-kondo {:extra-deps {clj-kondo/clj-kondo {:mvn/version "2024.08.01"}}
:main-opts ["-m" "clj-kondo.main"]}
:test {:extra-paths ["test"]
:extra-deps {io.github.cognitect-labs/test-runner
Expand Down
8 changes: 3 additions & 5 deletions scripts/lint.clj
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@
with-out-str
string/trim)
bb-cp (bbcp/get-classpath)]
(status/line :detail "- copying configs")
(t/clojure "-M:clj-kondo --skip-lint --copy-configs --lint" clj-cp bb-cp)
(status/line :detail "- creating cache")
(t/clojure "-M:clj-kondo --dependencies --lint" clj-cp bb-cp)))
(status/line :detail "- copying lib configs and creating cache")
(t/clojure "-M:clj-kondo --skip-lint --copy-configs --dependencies --parallel --lint" clj-cp bb-cp)))

(defn- check-cache [{:keys [rebuild]}]
(status/line :head "clj-kondo: cache check")
Expand All @@ -50,7 +48,7 @@
(status/line :head "clj-kondo: linting")
(let [{:keys [exit]}
(t/clojure {:continue true}
"-M:clj-kondo --lint src test scripts build.clj build_shared.clj deps.edn bb.edn")]
"-M:clj-kondo --parallel --lint src test scripts build.clj build_shared.clj deps.edn bb.edn")]
(cond
(= 2 exit) (status/die exit "clj-kondo found one or more lint errors")
(= 3 exit) (status/die exit "clj-kondo found one or more lint warnings")
Expand Down

0 comments on commit 9cbd22d

Please sign in to comment.