Merge pull request #1019 from urbit/trailing-whitespace

Remove trailing whitespace & put check in CI
This commit is contained in:
ixv 2019-01-18 13:50:00 -08:00 committed by GitHub
commit e74927405f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
51 changed files with 327 additions and 313 deletions

View File

@ -3,9 +3,12 @@ node_js:
- 4
before_install:
# building vere directly in lieu of a working debian package script
# pwd: ~/urbit/arvo
- cd ../
- cd .travis/
- bash check-trailing-whitespace.sh
- cd ../../
# pwd: ~/urbit
# building vere directly in lieu of a working debian package script
- wget https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-linux.zip
- unzip ninja-linux.zip
- sudo mv ninja /usr/bin/

View File

@ -0,0 +1,11 @@
#!/bin/bash
whitespace=$(find .. -path ../.git -prune -o \
-type f -exec egrep -l " +$" {} \;);
if [ ! -z $whitespace ]
then
echo 'found trailing whitespace in:';
echo $whitespace;
exit 1;
fi