| 1 |
# Change default severity to harsh. |
| 2 |
severity = harsh |
| 3 |
|
| 4 |
# Use only core PerlCritic policies. |
| 5 |
# This prevents tests from failing if the tester / installer has non-standard |
| 6 |
# additional PerlCritic policies. |
| 7 |
theme = core |
| 8 |
|
| 9 |
# Don't require /x on small regexes. |
| 10 |
[RegularExpressions::RequireExtendedFormatting] |
| 11 |
minimum_regex_length_to_complain_about = 20 |
| 12 |
|
| 13 |
# Allow private subroutines that start with an underscore followed by at least |
| 14 |
# three uppercase characters, which are subroutines coming from Params::Util. |
| 15 |
[Subroutines::ProtectPrivateSubs] |
| 16 |
private_name_regex = _(?![A-Z]{3,})\w+ |