Skip to content

Commit

Permalink
Add clj-kondo config and CI lint test.
Browse files Browse the repository at this point in the history
  • Loading branch information
greglook committed Jan 5, 2020
1 parent 5ff942f commit 2a450df
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .circleci/config.yml
Expand Up @@ -32,6 +32,21 @@ jobs:
paths:
- ~/.m2

lint:
executor: clojure
steps:
- checkout
- run:
name: Install clj-kondo
environment:
CLJ_KONDO_VERSION: 2019.12.14
command: |
wget https://github.com/borkdude/clj-kondo/releases/download/v${CLJ_KONDO_VERSION}/clj-kondo-${CLJ_KONDO_VERSION}-linux-amd64.zip
unzip clj-kondo-${CLJ_KONDO_VERSION}-linux-amd64.zip
- run:
name: Lint source code
command: "./clj-kondo --lint core/src core/test tool/src"

style:
executor: clojure
steps:
Expand Down Expand Up @@ -80,6 +95,7 @@ workflows:
build:
jobs:
- test
- lint
- style:
requires:
- test
Expand Down
11 changes: 11 additions & 0 deletions .clj-kondo/config.edn
@@ -0,0 +1,11 @@
{:linters {:unresolved-symbol
{:exclude [(clojure.test/is [thrown-with-data? valid? invalid?])]}

;:unused-binding
;{:exclude-destructured-keys-in-fn-args true}

:consistent-alias
{:level :warning
:aliases {clojure.java.io io
clojure.spec.alpha s
clojure.string str}}}}
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -7,5 +7,6 @@ pom.xml.asc
*.class
.lein-*
.nrepl-port
.clj-kondo/.cache
/cljstyle
/dist

0 comments on commit 2a450df

Please sign in to comment.