Skip to content

Commit

Permalink
lint: have clj-kondo also check our new build.clj
Browse files Browse the repository at this point in the history
  • Loading branch information
lread committed Oct 10, 2021
1 parent 7fe7fa3 commit e9ee5dd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions script/lint_kondo.clj
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
(status/line :detail "Building cache")
(when (cache-exists?)
(delete-cache))
(let [clj-cp (-> (shell/command {:out :string}
"clojure -A:test:lint-cache -Spath" )
(let [clj-cp (-> (shell/command {:out :string}
"clojure -A:test:lint-cache -Spath")
:out string/trim)
bb-cp (bbcp/get-classpath)]
(shell/command "clojure -M:clj-kondo --dependencies --copy-configs --lint" clj-cp bb-cp)))
Expand All @@ -48,8 +48,8 @@
(check-cache opts)
(status/line :head "clj-kondo: linting")
(let [{:keys [exit]}
(shell/command {:continue true}
"clojure -M:clj-kondo --lint src test script deps.edn")]
(shell/command {:continue true}
"clojure -M:clj-kondo --lint src test script deps.edn build.clj")]
(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 e9ee5dd

Please sign in to comment.