11 lines
224 B
Plaintext
11 lines
224 B
Plaintext
|
#!/bin/bash
|
||
|
set -e
|
||
|
|
||
|
echo "Rubocop $(bundle exec rubocop --version)"
|
||
|
bundle exec rubocop -D -E $@
|
||
|
success=$?
|
||
|
if ((success != 0)); then
|
||
|
echo -e "\nTry running \`script/fmt -a\` to automatically fix errors"
|
||
|
fi
|
||
|
exit $success
|