mirror of
https://github.com/letic/Shell-Scripts.git
synced 2024-09-28 05:56:04 +00:00
Update pre-commit-rubocop
This commit is contained in:
parent
0d90ea8617
commit
feb5f11c97
@ -17,7 +17,7 @@ errors=$(\
|
|||||||
--cpu-shares 1024 \
|
--cpu-shares 1024 \
|
||||||
--rm=true \
|
--rm=true \
|
||||||
--volume $app:/app \
|
--volume $app:/app \
|
||||||
bbcnews/rubocop-config --format simple --fail-level F 2> /dev/null | grep '^F:' | wc -l | tr -d '[[:space:]])
|
bbcnews/rubocop-config --format simple --fail-level F 2> /dev/null | grep '^F:' | wc -l | tr -d '[[:space:]]')
|
||||||
|
|
||||||
if [ $errors -gt 0 ]; then
|
if [ $errors -gt 0 ]; then
|
||||||
echo "Rubocop reported $errors errors. Please double check your code"
|
echo "Rubocop reported $errors errors. Please double check your code"
|
||||||
|
Loading…
Reference in New Issue
Block a user