| 1 |
severity = 3 |
| 2 |
verbose = 11 |
| 3 |
theme = core + pbp + bugs + maintenance + cosmetic + complexity + security + tests + moose |
| 4 |
|
| 5 |
exclude = Subroutines::ProhibitCallsToUndeclaredSubs |
| 6 |
|
| 7 |
[BuiltinFunctions::ProhibitStringySplit] |
| 8 |
severity = 3 |
| 9 |
|
| 10 |
[CodeLayout::RequireTrailingCommas] |
| 11 |
severity = 3 |
| 12 |
|
| 13 |
[ControlStructures::ProhibitCStyleForLoops] |
| 14 |
severity = 3 |
| 15 |
|
| 16 |
[InputOutput::RequireCheckedSyscalls] |
| 17 |
functions = :builtins |
| 18 |
exclude_functions = sleep |
| 19 |
severity = 3 |
| 20 |
|
| 21 |
[RegularExpressions::ProhibitComplexRegexes] |
| 22 |
max_characters = 200 |
| 23 |
|
| 24 |
[RegularExpressions::ProhibitUnusualDelimiters] |
| 25 |
severity = 3 |
| 26 |
|
| 27 |
[Subroutines::ProhibitUnusedPrivateSubroutines] |
| 28 |
private_name_regex = _(?!build)\w+ |
| 29 |
|
| 30 |
[TestingAndDebugging::ProhibitNoWarnings] |
| 31 |
allow = redefine |
| 32 |
|
| 33 |
[ValuesAndExpressions::ProhibitEmptyQuotes] |
| 34 |
severity = 3 |
| 35 |
|
| 36 |
[ValuesAndExpressions::ProhibitInterpolationOfLiterals] |
| 37 |
severity = 3 |
| 38 |
|
| 39 |
[ValuesAndExpressions::RequireUpperCaseHeredocTerminator] |
| 40 |
severity = 3 |
| 41 |
|
| 42 |
[Variables::ProhibitPackageVars] |
| 43 |
add_packages = Carp Test::Builder |
| 44 |
|
| 45 |
[-Subroutines::RequireFinalReturn] |
| 46 |
|
| 47 |
[-ErrorHandling::RequireCarping] |
| 48 |
|
| 49 |
# No need for /xsm everywhere |
| 50 |
[-RegularExpressions::RequireDotMatchAnything] |
| 51 |
[-RegularExpressions::RequireExtendedFormatting] |
| 52 |
[-RegularExpressions::RequireLineBoundaryMatching] |
| 53 |
|
| 54 |
# http://stackoverflow.com/questions/2275317/why-does-perlcritic-dislike-using-shift-to-populate-subroutine-variables |
| 55 |
[-Subroutines::RequireArgUnpacking] |
| 56 |
|
| 57 |
# "use v5.14" is more readable than "use 5.014" |
| 58 |
[-ValuesAndExpressions::ProhibitVersionStrings] |