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:
parent
6d9c131061
commit
28def8b5a0
|
@ -20,7 +20,7 @@ INCLUDELIST="src util payloads Makefile* toolchain.inc"
|
|||
|
||||
# shellcheck disable=SC2086,SC2046
|
||||
if uname | grep -qi "linux"; then
|
||||
grep -l "[[:space:]][[:space:]]*$" \
|
||||
grep -n -H "[[:space:]][[:space:]]*$" \
|
||||
$(git ls-files $INCLUDELIST | \
|
||||
grep -Ev "($EXCLUDELIST)" ) | \
|
||||
sed -e "s,^.*$,File & has lines ending with whitespace.,"
|
||||
|
|
Loading…
Reference in New Issue