[perl-syntax-check]
apt = perl
files = *.pl *.pm
types = text/x-perl
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 fixme fixme-silent

[perl-b-lint]
apt = perl, libb-lint-perl
files = *.pl *.pm
types = text/x-perl
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 fixme fixme-silent

[perlcritic]
flags = perl-bug-588017 fixme fixme-silent
apt = libperl-critic-perl
# TODO: update it before releases:
# see _is_perl in Perl::Critic::Utils
files = *.pl *.pm *.t
types = text/x-perl
comment =
 May create/overwrite a perltidy.ERR file in the current dir (#834213)
 To see full descriptions of each issue, add %d to the --verbose option value
command = perlcritic --noprofile -1 --verbose '%f:%l:%c: %m. %e. Near `%r` (Severity: %s)\n' . 2>&1 | grep -vF 'No perl files were found.'

[perllib]
command = grep -nHrw PERLLIB .

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

[podchecker]
apt = perl
files = *.pl *.pm *.pod
types = text/x-perl
command = podchecker {files}
flags = fixme fixme-silent

[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
