# Change default severity to harsh.
severity = harsh

# Include the policy name in the message.
verbose = * %f: %m at line %l column %c.\n  Reference: %e.\n  Severity: %s.\n  Policy: %p.\n

# Use only core PerlCritic policies.
# This prevents tests from failing if the tester / installer has non-standard
# additional PerlCritic policies.
theme = core

# What's wrong with tabs? They're more friendly.
[-CodeLayout::ProhibitHardTabs]

# Don't require /x on small regexes.
[RegularExpressions::RequireExtendedFormatting]
minimum_regex_length_to_complain_about = 20

# Returning undef makes it easier to enforce explicit return types in APIs.
[-Subroutines::ProhibitExplicitReturnUndef]

# Allow slightly longer if-elsif-else chains.
[ControlStructures::ProhibitCascadingIfElse]
max_elsif = 3

# The performance of map in void context was fixed in Perl v5.8.1.
[-BuiltinFunctions::ProhibitVoidMap]
