diff options
author | Marijn van der Werf <marijn.vanderwerf@gmail.com> | 2017-05-09 01:34:14 +0200 |
---|---|---|
committer | YamaArashi <YamaArashi@users.noreply.github.com> | 2017-05-08 16:53:21 -0700 |
commit | bb5ba377365fbb5818c974f5ebaa4716154bb21f (patch) | |
tree | 04bdf1f0fc1befa052553144d478f0eb5638cd06 | |
parent | e75c3262f37483d3503126bebf8bf8b7b662d345 (diff) |
Detect trailing whitespace
-rw-r--r-- | .travis.yml | 1 | ||||
-rwxr-xr-x | whitespace.sh | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index 693b6bf69..ca2b5a12a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/whitespace.sh b/whitespace.sh new file mode 100755 index 000000000..7075fbd4e --- /dev/null +++ b/whitespace.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +if grep -Enr "\s+\$" src; then + # Trailing whitespace detected + exit 1 +fi |