util/lint: list files with whitespace issues

Change-Id: I8ae13f62c6e2cd87278fefab8de5faf0d1bc0a90
Signed-off-by: Balazs Vinarz <vinibali1@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/30988
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
Balazs Vinarz 2019-01-18 11:23:29 +01:00 committed by Patrick Georgi
parent 6d9c131061
commit 28def8b5a0
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ INCLUDELIST="src util payloads Makefile* toolchain.inc"
# shellcheck disable=SC2086,SC2046 # shellcheck disable=SC2086,SC2046
if uname | grep -qi "linux"; then if uname | grep -qi "linux"; then
grep -l "[[:space:]][[:space:]]*$" \ grep -n -H "[[:space:]][[:space:]]*$" \
$(git ls-files $INCLUDELIST | \ $(git ls-files $INCLUDELIST | \
grep -Ev "($EXCLUDELIST)" ) | \ grep -Ev "($EXCLUDELIST)" ) | \
sed -e "s,^.*$,File & has lines ending with whitespace.," sed -e "s,^.*$,File & has lines ending with whitespace.,"