diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-02-27 17:17:36 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-02-27 17:17:36 +0000 |
commit | 8a4435f71a8a47e9cf3050ad6456cd9949da5958 (patch) | |
tree | 04fcc00d75ad0e8a8ad3f369688e6c833621c1b4 /check | |
parent | c5fc68fa232e88ec3e5e40aaec619280554886a9 (diff) | |
download | morph-8a4435f71a8a47e9cf3050ad6456cd9949da5958.tar.gz |
Make ./check check for long lines (with excptions); fix long lines
Diffstat (limited to 'check')
-rwxr-xr-x | check | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -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 |