meli/scripts/pre-commit

9 lines
273 B
Plaintext
Raw Normal View History

2018-08-11 18:05:48 +03:00
#!/bin/zsh
#
2018-08-23 15:36:52 +03:00
exec git diff --name-only HEAD | grep ".*\.rs" | xargs rustfmt
#exec find . -name "*rs" -exec rustfmt {} \;
2018-08-11 18:05:48 +03:00
exec cargo +nightly clippy
# If there are whitespace errors, print the offending file names and fail.
exec git diff-index --check --cached $against --