Skip to content

Commit bf37e3d

Browse files
authored
dev: bump da kondo (#302)
Also, take advantage of clj-kondo's new ability to copy configs and create cache at same time.
1 parent 1d15fdd commit bf37e3d

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

deps.edn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
;;
5353
:lint-cache {:replace-paths ["src"]} ;; when building classpath we want to exclude resources
5454
;; so we do not pick up our own clj-kondo config exports
55-
:clj-kondo {:extra-deps {clj-kondo/clj-kondo {:mvn/version "2024.05.24"}}
55+
:clj-kondo {:extra-deps {clj-kondo/clj-kondo {:mvn/version "2024.08.01"}}
5656
:override-deps {org.clojure/clojure {:mvn/version "1.11.3"}}
5757
:main-opts ["-m" "clj-kondo.main"]}
5858

script/lint_kondo.clj

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,8 @@
2525
with-out-str
2626
string/trim)
2727
bb-cp (bbcp/get-classpath)]
28-
29-
(status/line :detail "- copying configs")
30-
(shell/command "clojure -M:clj-kondo --skip-lint --copy-configs --lint" clj-cp bb-cp)
31-
(status/line :detail "- creating cache")
32-
(shell/command "clojure -M:clj-kondo --dependencies --parallel --lint" clj-cp bb-cp)))
28+
(status/line :detail "- copying lib configs and creating cache")
29+
(shell/command "clojure -M:clj-kondo --skip-lint --copy-configs --dependencies --lint" clj-cp bb-cp)))
3330

3431
(defn- check-cache [{:keys [rebuild-cache]}]
3532
(status/line :head "clj-kondo: cache check")
@@ -53,7 +50,7 @@
5350
(status/line :head "clj-kondo: linting")
5451
(let [{:keys [exit]}
5552
(shell/command {:continue true}
56-
"clojure -M:clj-kondo --lint src test script deps.edn build.clj")]
53+
"clojure -M:clj-kondo --parallel --lint src test script deps.edn build.clj")]
5754
(cond
5855
(= 2 exit) (status/die exit "clj-kondo found one or more lint errors")
5956
(= 3 exit) (status/die exit "clj-kondo found one or more lint warnings")

0 commit comments

Comments
 (0)