Skip to content

Commit 757aa34

Browse files
committed
Dev: Standardize script
1 parent 56fc584 commit 757aa34

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

script/fmt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#!/bin/bash
22
set -e
33

4-
bundle exec rubocop -D -E
4+
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

Comments
 (0)