Skip to content

Commit 76793ff

Browse files
committed
Run clj-kondo by a more stable means
Rationale: clojure-emacs/cider-nrepl#693
1 parent 78584d2 commit 76793ff

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

.circleci/config.yml

+4-8
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,6 @@ commands:
6262
name: Install make
6363
command: |
6464
sudo apt-get install make
65-
- run:
66-
name: Install clj-kondo
67-
command: |
68-
sudo curl -sLO https://raw.githubusercontent.com/clj-kondo/clj-kondo/master/script/install-clj-kondo && sudo chmod +x install-clj-kondo && sudo ./install-clj-kondo
6965
- run:
7066
name: Generate Cache Checksum
7167
command: |
@@ -209,10 +205,6 @@ workflows:
209205
name: Code Linting, (latest LTS JDK)
210206
jdk_version: openjdk11
211207
steps:
212-
- run:
213-
name: Running Eastwood
214-
command: |
215-
make eastwood
216208
- run:
217209
name: Running cljfmt
218210
command: |
@@ -221,6 +213,10 @@ workflows:
221213
name: Running clj-kondo
222214
command: |
223215
make kondo
216+
- run:
217+
name: Running Eastwood
218+
command: |
219+
make eastwood
224220
# - util_job:
225221
# name: Code coverage
226222
# steps:

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ cljfmt:
2020
lein with-profile +$(VERSION),+cljfmt cljfmt check
2121

2222
kondo:
23-
clj-kondo --lint src test
23+
lein with-profile -dev,+clj-kondo run -m clj-kondo.main --lint src test
2424

2525
# Cloverage can't handle some of the code in this project. For now we
2626
# must filter problematic namespaces (`-e`) and tests (`-t`) from

project.clj

+4-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@
5858
with-debug-bindings [[:inner 0]]
5959
merge-meta [[:inner 0]]
6060
letfn [[:block 1] [:inner 2]]}}}
61-
61+
62+
:clj-kondo [:test
63+
{:dependencies [[clj-kondo "2021.03.31"]]}]
64+
6265
:eastwood {:plugins [[jonase/eastwood "0.4.0"]]
6366
:eastwood {:exclude-namespaces [~(if (-> "java.version"
6467
System/getProperty

0 commit comments

Comments
 (0)