mirror of
https://github.com/pret/pokeruby.git
synced 2025-01-31 09:42:55 +00:00
Detect trailing whitespace
This commit is contained in:
parent
e75c3262f3
commit
bb5ba37736
@ -21,6 +21,7 @@ install:
|
||||
- cd agbcc && ./build.sh && ./install.sh $TRAVIS_BUILD_DIR
|
||||
script:
|
||||
- cd $TRAVIS_BUILD_DIR
|
||||
- ./whitespace.sh
|
||||
- ./build_tools.sh
|
||||
- make -j2 compare_ruby
|
||||
- make -j2 compare_ruby_rev1
|
||||
|
6
whitespace.sh
Executable file
6
whitespace.sh
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
if grep -Enr "\s+\$" src; then
|
||||
# Trailing whitespace detected
|
||||
exit 1
|
||||
fi
|
Loading…
x
Reference in New Issue
Block a user