pvc/.hooks/pre-commit

18 lines
234 B
Plaintext
Raw Normal View History

2020-11-07 15:32:56 -05:00
#!/usr/bin/env bash
pushd $( git rev-parse --show-toplevel ) &>/dev/null
ex=0
# Linting
2021-05-28 00:20:03 -04:00
echo "Linting..."
2020-11-07 15:32:56 -05:00
./lint
if [[ $? -ne 0 ]]; then
echo "Aborting commit due to linting errors."
ex=1
fi
echo
popd &>/dev/null
exit $ex