From c5fc68fa232e88ec3e5e40aaec619280554886a9 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Mon, 27 Feb 2012 17:01:21 +0000 Subject: Expand TAB characters and make check check for them --- check | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'check') diff --git a/check b/check index b214301b..3fa7d1a9 100755 --- a/check +++ b/check @@ -26,4 +26,17 @@ if [ -d .git ]; then echo "Checking copyright statements" git ls-files | xargs scripts/check-copyright-year + + echo 'Checking source code for TAB characters' + git ls-files | + grep -v '\.gz$' | + while read x + do + if tr -cd '\t' < "$x" | grep . > /dev/null + then + echo "ERROR: $x contains TAB characters" 1>&2 + errors=1 + fi + done fi +exit $errors -- cgit v1.2.1