[coreboot-gerrit] New patch to review for coreboot: ead2136 lint: improve whitespace test
Patrick Georgi (patrick@georgi-clan.de)
gerrit at coreboot.org
Sun Aug 10 19:15:32 CEST 2014
Patrick Georgi (patrick at georgi-clan.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/6582
-gerrit
commit ead2136af869e2312f0fbb6f0075218a7c16bd82
Author: Patrick Georgi <patrick at georgi-clan.de>
Date: Sun Aug 10 19:07:09 2014 +0200
lint: improve whitespace test
The whitespace test only trips on files that are part
of the git index - in particular not temporary editor
files or other cruft that doesn't hurt anyone.
Change-Id: I793fcc773845ee02281d8614b07e9c5958126a5a
Signed-off-by: Patrick Georgi <patrick at georgi-clan.de>
---
util/lint/lint-stable-003-whitespace | 21 +--------------------
1 file changed, 1 insertion(+), 20 deletions(-)
diff --git a/util/lint/lint-stable-003-whitespace b/util/lint/lint-stable-003-whitespace
index 1e824a1..4c0a5fd 100755
--- a/util/lint/lint-stable-003-whitespace
+++ b/util/lint/lint-stable-003-whitespace
@@ -19,25 +19,6 @@
# DESCR: Check for superfluous whitespace in the tree
LC_ALL=C export LC_ALL
-find src util -name .svn -type d -prune -o \
- -type f -perm /111 -prune -o \
- -name .git -type d -prune -o \
- -name README -prune -o \
- -name LICENSE -prune -o \
- -name TODO -prune -o \
- -name COPYING -prune -o \
- -name \*.txt -prune -o \
- -name \*.exe -prune -o \
- -name \*.o -prune -o \
- -name microcode-\*.h -prune -o \
- -name \*.?_shipped -prune -o \
- -name \*.[18] -prune -o \
- -name \*~ -prune -o \
- -name kconfig -type d -prune -o \
- -name romcc -type d -prune -o \
- -name crossgcc -type d -prune -o \
- -name vendorcode -type d -prune -o \
- -type f -exec \
- grep -l "[[:space:]][[:space:]]*$" {} + | \
+grep -l "[[:space:]][[:space:]]*$" `git ls-files src util |egrep -v "(^3rdparty|^src/vendorcode/|^util/kconfig/|\<COPYING\>|\<LICENSE\>|\<README\>|_shipped$|\.patch$)"` | \
sed -e "s,^.*$,File & has lines ending with whitespace.,"
More information about the coreboot-gerrit
mailing list