Add Overcommit to prevent committing substandard code

This commit is contained in:
Wilson Silva
2023-01-06 10:58:39 +07:00
parent edc2269ff7
commit 836e54f9d8
3 changed files with 41 additions and 1 deletions

View File

@@ -5,4 +5,10 @@ set -vx
bundle install
# Do any other automated setup that you need to do here
if ! which overcommit >/dev/null; then
echo 'The gem overcommit is not installed. It is necessary to lint the git history through git hooks.'
echo 'Please install overcommit and run this script again.'
exit 1
fi
overcommit --install