# perlcritic configuration for scala-debian-helper; t/critic.t runs it when
# AUTHOR_TESTING is set.
severity = 3
verbose = %f:%l: [%p] %m\n

# Extended formatting helps long patterns; for short ones it hurts more than
# it helps.
[RegularExpressions::RequireExtendedFormatting]
minimum_regex_length_to_complain_about = 30

# `use constant` is core Perl and the clearest way to name a fixed value;
# Readonly would add a dependency.
[-ValuesAndExpressions::ProhibitConstantPragma]

# scala-debian-helper sets environment variables for the tools it runs.
[Variables::RequireLocalizedPunctuationVars]
allow = %ENV

# These always end the program or die, like die and croak: a sub that ends
# with one needs no return after it. fail() of Debian::DhScala::Make::Util
# and error() of Debian::Debhelper::Dh_Lib die; usage() of dh-make-scala
# exits.
[Subroutines::RequireFinalReturn]
terminal_funcs = fail error usage
