Skip to content

Commit 763746e

Browse files
committed
chore: add script/fmt
1 parent 169274c commit 763746e

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

script/cibuild

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
#!/usr/bin/env bash
2-
./script/test
2+
3+
set -e
4+
5+
bundle exec rake test
6+
script/fmt

script/fmt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
set -e
3+
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 -safe-auto-correct\` to automatically fix errors"
9+
fi
10+
exit $success

0 commit comments

Comments
 (0)