We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56fc584 commit 757aa34Copy full SHA for 757aa34
script/fmt
@@ -1,4 +1,10 @@
1
#!/bin/bash
2
set -e
3
4
-bundle exec rubocop -D -E
+echo "Rubocop $(bundle exec rubocop --version)"
5
+bundle exec rubocop -D -E $@
6
+success=$?
7
+if ((success != 0)); then
8
+ echo -e "\nTry running \`script/fmt -a\` to automatically fix errors"
9
+fi
10
+exit $success
0 commit comments