adds a filter to pre-commit hook to prevent analysis of deleted files

Signed-off-by: Goran Jovic <goranjovic@gmail.com>
This commit is contained in:
Goran Jovic 2018-05-31 08:20:24 +02:00
parent 955fdc6c17
commit 1f4f913ac6
No known key found for this signature in database
GPG Key ID: D429D1A9B2EB8A8E
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@
[lein-cljfmt "0.5.7"]
[rasom/lein-githooks "0.1.3"]]
:githooks {:auto-install true
:pre-commit ["lein cljfmt check src/status_im/core.cljs $(git diff --cached --name-only src test/cljs)"]}
:pre-commit ["lein cljfmt check src/status_im/core.cljs $(git diff --diff-filter=d --cached --name-only src test/cljs)"]}
:cljfmt {:indents {letsubs [[:inner 0]]}}
:clean-targets ["target/" "index.ios.js" "index.android.js"]
:aliases {"prod-build" ^{:doc "Recompile code with prod profile."}