blob: 3e2addc70d0a952d04764bf248a2abf38212a462 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/usr/bin/env bash
files_with_long_lines=$(./admin/findphp |
xargs -L 1 -I FILENAME /usr/bin/env perl admin/longlines.pl FILENAME 80)
if [ "$files_with_long_lines" ]
then
cat <<EOF 1>&2
Found lines > 80 characters in:
$files_with_long_lines
EOF
exit 1
fi
|