Update pre-commit-rubocop

This commit is contained in:
Mark McDonnell 2016-04-01 20:09:03 +01:00
parent 1e7baf8da4
commit 0faf23f834
1 changed files with 2 additions and 2 deletions

View File

@ -17,9 +17,9 @@ errors=$(\
--cpu-shares 1024 \
--rm=true \
--volume $app:/app \
bbcnews/rubocop-config --format simple --fail-level F 2> /dev/null | grep '^F:\|==' | wc -l)
bbcnews/rubocop-config --format simple --fail-level F 2> /dev/null | grep '^F:' | wc -l)
if [ $errors -gt 0 ]; then
echo "Rubocop reported errors. Please double check your code"
echo "Rubocop reported $errors errors. Please double check your code"
exit 1
fi