Skip to content

Commit

Permalink
Run clj-kondo by a more stable means
Browse files Browse the repository at this point in the history
  • Loading branch information
vemv committed Apr 13, 2021
1 parent 78584d2 commit 76793ff
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
12 changes: 4 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@ commands:
name: Install make
command: |
sudo apt-get install make
- run:
name: Install clj-kondo
command: |
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
- run:
name: Generate Cache Checksum
command: |
Expand Down Expand Up @@ -209,10 +205,6 @@ workflows:
name: Code Linting, (latest LTS JDK)
jdk_version: openjdk11
steps:
- run:
name: Running Eastwood
command: |
make eastwood
- run:
name: Running cljfmt
command: |
Expand All @@ -221,6 +213,10 @@ workflows:
name: Running clj-kondo
command: |
make kondo
- run:
name: Running Eastwood
command: |
make eastwood
# - util_job:
# name: Code coverage
# steps:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ cljfmt:
lein with-profile +$(VERSION),+cljfmt cljfmt check

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

# Cloverage can't handle some of the code in this project. For now we
# must filter problematic namespaces (`-e`) and tests (`-t`) from
Expand Down
5 changes: 4 additions & 1 deletion project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@
with-debug-bindings [[:inner 0]]
merge-meta [[:inner 0]]
letfn [[:block 1] [:inner 2]]}}}


:clj-kondo [:test
{:dependencies [[clj-kondo "2021.03.31"]]}]

:eastwood {:plugins [[jonase/eastwood "0.4.0"]]
:eastwood {:exclude-namespaces [~(if (-> "java.version"
System/getProperty
Expand Down

0 comments on commit 76793ff

Please sign in to comment.