diff options
Diffstat (limited to 'models/openid-php-openid-782224d/admin/nolonglines')
-rw-r--r-- | models/openid-php-openid-782224d/admin/nolonglines | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/models/openid-php-openid-782224d/admin/nolonglines b/models/openid-php-openid-782224d/admin/nolonglines new file mode 100644 index 000000000..3e2addc70 --- /dev/null +++ b/models/openid-php-openid-782224d/admin/nolonglines @@ -0,0 +1,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 |