summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-02-27 17:17:36 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-02-27 17:17:36 +0000
commit8a4435f71a8a47e9cf3050ad6456cd9949da5958 (patch)
tree04fcc00d75ad0e8a8ad3f369688e6c833621c1b4 /check
parentc5fc68fa232e88ec3e5e40aaec619280554886a9 (diff)
downloadmorph-8a4435f71a8a47e9cf3050ad6456cd9949da5958.tar.gz
Make ./check check for long lines (with excptions); fix long lines
Diffstat (limited to 'check')
-rwxr-xr-xcheck14
1 files changed, 13 insertions, 1 deletions
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