blob: 1c2f787580aadf1284d816ad9201be8605a0b4d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
# src/tools/perlcheck/pgperlcritic
test -f src/tools/perlcheck/perlcriticrc || {
echo could not find src/tools/perlcheck/perlcriticrc
exit 1
}
set -e
# set this to override default perlcritic program:
PERLCRITIC=${PERLCRITIC:-perlcritic}
. src/tools/perlcheck/find_perl_files
find_perl_files | xargs $PERLCRITIC \
--quiet \
--program-extensions .pl \
--profile=src/tools/perlcheck/perlcriticrc
|