File: nolonglines

package info (click to toggle)
php-openid 2.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,928 kB
  • ctags: 6,167
  • sloc: php: 22,223; python: 376; xml: 333; sh: 144; perl: 103; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 283 bytes parent folder | download | duplicates (6)
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