[perl-syntax-check]
apt = perl
files = *.pl *.pm
command = perl -wc {file} | grep -v ' syntax OK$'
comment = Dangerous because it executes code in use statements and BEGIN, UNITCHECK and CHECK blocks
flags = dangerous

[perl-b-lint]
apt = perl, libb-lint-perl
files = *.pl *.pm
prereq = perl -t -MO=Lint /dev/null
command = perl -MO=Lint {file} | grep -v ' syntax OK$'
comment = Dangerous because it executes code in use statements and BEGIN, UNITCHECK and CHECK blocks
flags = dangerous

[perlcritic]
flags = perl-bug-588017
apt = libperl-critic-perl
command = perlcritic -1 . 2>&1 | grep -vF 'No perl files were found.'

[perllib]
command = grep -rw PERLLIB .

[podlint]
apt = libpod-pom-perl
files = *.pl *.pm
command = podlint {file}

[cpants-lint]
flags = todo perl-bug-588017
apt = cpants-lint
comment = It is not able to use the current dir instead of tarball (#823299)
command = cpants_lint

# TODO: pkg-perl-tools dpt-packagecheck check-build
# TODO: perltidy
# TODO: libperl-metrics-simple-perl
# TODO: libtest-kwalitee-perl kwalitee-metrics
# TODO: libtest-tabs-perl
# TODO: shell metacharacter injection: backticks system open open2 open3

# vim:ft=dosini
