From 8a4435f71a8a47e9cf3050ad6456cd9949da5958 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Mon, 27 Feb 2012 17:17:36 +0000 Subject: Make ./check check for long lines (with excptions); fix long lines --- check | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'check') diff --git a/check b/check index 3fa7d1a9..6d910d1a 100755 --- a/check +++ b/check @@ -27,7 +27,7 @@ then echo "Checking copyright statements" git ls-files | xargs scripts/check-copyright-year - echo 'Checking source code for TAB characters' + echo 'Checking source code for silliness' git ls-files | grep -v '\.gz$' | while read x @@ -37,6 +37,18 @@ then echo "ERROR: $x contains TAB characters" 1>&2 errors=1 fi + + case "$x" in + wget-list|baserock-bootstrap) + ;; + *) + if awk 'length > 79' "$x" | grep . > /dev/null + then + echo "ERROR: $x has lines longer than 79 chars" 1>&2 + errors=1 + fi + ;; + esac done fi exit $errors -- cgit v1.2.1