Skip to content

Commit

Permalink
Introduce splint as a second linter
Browse files Browse the repository at this point in the history
  • Loading branch information
dpassen committed May 23, 2023
1 parent 1219cec commit 12ccc8b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions .splint.edn
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{output "clj-kondo"}
13 changes: 12 additions & 1 deletion Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,21 @@ tasks:
- clojure -X:test:watcher

lint:
desc: Lint code using clj-kondo
desc: Lint source code
cmds:
- task: lint:kondo
- task: lint:splint

lint:kondo:
desc: Lint source code using clj-kondo
cmds:
- rg -tclojure -tedn --files | xargs clj-kondo --parallel --lint

lint:splint:
desc: Lint source code using splint
cmds:
- clojure -M:splint src test

check:
desc: Check for reflection using clj-check
cmds:
Expand Down
6 changes: 6 additions & 0 deletions deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@
{:git/tag "0.1.0"
:git/sha "0ca84df"}}
:main-opts ["-m" "clj-check.check"]}
:splint
{:deps
{io.github.noahtheduke/splint
{:git/tag "v1.6.1"
:git/sha "d70343e"}}
:main-opts ["-m" "noahtheduke.splint"]}
:test
{:extra-deps
{lambdaisland/kaocha
Expand Down

0 comments on commit 12ccc8b

Please sign in to comment.