summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
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