cljfmt src if there is no git diff

Signed-off-by: yenda <eric@status.im>
This commit is contained in:
yenda 2020-05-08 14:21:40 +02:00
parent e1074c7c01
commit 288c28df75
No known key found for this signature in database
GPG Key ID: 0095623C0069DCE6
1 changed files with 1 additions and 1 deletions

View File

@ -255,7 +255,7 @@ lint: export TARGET := clojure
lint: ##@test Run code style checks
yarn clj-kondo --confg .clj-kondo/config.edn --lint src && \
clojure -Sdeps '{:deps {cljfmt {:mvn/version "0.6.7"}}}' \
-m cljfmt.main check src/status_im/core.cljs $(git diff --diff-filter=d --cached --name-only src) \
-m cljfmt.main check $$(git diff --diff-filter=d --cached --name-only src && echo src) \
--indents indentation.edn
lint-fix: export TARGET := clojure