15 lines
249 B
Bash
Executable File
15 lines
249 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Succeed fast if we did not change any ruby file
|
|
if ! git status --short | grep -q '\.rb$'; then
|
|
exit 0
|
|
fi
|
|
|
|
rake spec || exit 1
|
|
|
|
# No over-complex methods
|
|
./scripts/check_flog || exit 1
|
|
|
|
# No duplication
|
|
./scripts/check_flay
|