Merge "Reuse .gitignore in whitespace linter"

This commit is contained in:
Zuul 2018-10-27 01:51:38 +00:00 committed by Gerrit Code Review
commit 93dadcb0db
1 changed files with 2 additions and 10 deletions

View File

@ -1,15 +1,7 @@
#!/usr/bin/env bash
set -xe
set -x
RES=$(find . \
-not -path "*/\.*" \
-not -path "*/*.egg-info/*" \
-not -path "*/releasenotes/build/*" \
-not -path "*/doc/build/*" \
-not -name "*.tgz" \
-not -name "*.html" \
-not -name "*.pyc" \
-type f -exec egrep -l " +$" {} \;)
RES=$(git grep -E -l " +$")
if [[ -n $RES ]]; then
exit 1