forked from athensresearch/athens
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add clj-kondo script + build step (athensresearch#38)
* Ignore Emacs and Mac specific files * Add clj-kondo Config copied from https://github.com/borkdude/clj-kondo/blob/554d7d93e2eb78ff21cfbbee4a084c4b6e089411/.clj-kondo/config.edn * Add Lint build step * Don’t need maven deps for clj-kondo * Allow clj-kondo warnings for now * Add TODO for when all warnings are fixed
- Loading branch information
1 parent
0e0abb6
commit c5eb0a1
Showing
4 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{:linters {:unused-namespace | ||
{:exclude [clj-kondo.impl.rewrite-clj-patch | ||
rewrite-clj.parser.core | ||
clj-kondo.impl.var-info-gen | ||
clj-kondo.impl.node.seq | ||
clj-kondo.impl.profiler]} | ||
:unresolved-symbol | ||
{:exclude [(clj-kondo.impl.utils/one-of)]} | ||
:unused-referred-var | ||
{:exclude {clojure.test [is deftest testing]}} | ||
:type-mismatch | ||
{:level :warning | ||
:namespaces | ||
{clj-kondo.core {print! {:arities {1 {:args [:map] | ||
:ret :nil}}} | ||
run! {:arities {1 {:args [:map] | ||
:ret :map}}}} | ||
clj-kondo.impl.config #include "../src/clj_kondo/impl/config.types.edn" | ||
clj-kondo.impl.findings #include "../src/clj_kondo/impl/findings.types.edn"}} | ||
:missing-docstring {:level :off} | ||
:unsorted-required-namespaces {:level :warning}} | ||
:lint-as {me.raynes.conch/programs clojure.core/declare | ||
me.raynes.conch/let-programs clojure.core/let} | ||
:output {:exclude-files ["src/clj_kondo/impl/rewrite_clj_patch.clj"]}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eo pipefail | ||
|
||
# Find installation instructions here https://github.com/borkdude/clj-kondo/blob/554d7d93e2eb78ff21cfbbee4a084c4b6e089411/doc/install.md | ||
|
||
# TODO remove this when all warnings have been fixed | ||
clj-kondo --lint src || echo " | ||
[FIXME] fix above warnings and remove this warning" |