|
Packit |
92cec9 |
severity = 3
|
|
Packit |
92cec9 |
verbose = 11
|
|
Packit |
92cec9 |
theme = core + pbp + bugs + maintenance + cosmetic + complexity + security + tests + moose
|
|
Packit |
92cec9 |
program-extensions = pl psgi t
|
|
Packit |
92cec9 |
|
|
Packit |
92cec9 |
exclude = Subroutines::ProhibitCallsToUndeclaredSubs
|
|
Packit |
92cec9 |
|
|
Packit |
92cec9 |
[BuiltinFunctions::ProhibitStringySplit]
|
|
Packit |
92cec9 |
severity = 3
|
|
Packit |
92cec9 |
|
|
Packit |
92cec9 |
[CodeLayout::RequireTrailingCommas]
|
|
Packit |
92cec9 |
severity = 3
|
|
Packit |
92cec9 |
|
|
Packit |
92cec9 |
[ControlStructures::ProhibitCStyleForLoops]
|
|
Packit |
92cec9 |
severity = 3
|
|
Packit |
92cec9 |
|
|
Packit |
92cec9 |
[InputOutput::RequireCheckedSyscalls]
|
|
Packit |
92cec9 |
functions = :builtins
|
|
Packit |
92cec9 |
exclude_functions = sleep
|
|
Packit |
92cec9 |
severity = 3
|
|
Packit |
92cec9 |
|
|
Packit |
92cec9 |
[RegularExpressions::ProhibitComplexRegexes]
|
|
Packit |
92cec9 |
max_characters = 200
|
|
Packit |
92cec9 |
|
|
Packit |
92cec9 |
[RegularExpressions::ProhibitUnusualDelimiters]
|
|
Packit |
92cec9 |
severity = 3
|
|
Packit |
92cec9 |
|
|
Packit |
92cec9 |
[Subroutines::ProhibitUnusedPrivateSubroutines]
|
|
Packit |
92cec9 |
private_name_regex = _(?!build)\w+
|
|
Packit |
92cec9 |
|
|
Packit |
92cec9 |
[TestingAndDebugging::ProhibitNoWarnings]
|
|
Packit |
92cec9 |
allow = redefine
|
|
Packit |
92cec9 |
|
|
Packit |
92cec9 |
[ValuesAndExpressions::ProhibitEmptyQuotes]
|
|
Packit |
92cec9 |
severity = 3
|
|
Packit |
92cec9 |
|
|
Packit |
92cec9 |
[ValuesAndExpressions::ProhibitInterpolationOfLiterals]
|
|
Packit |
92cec9 |
severity = 3
|
|
Packit |
92cec9 |
|
|
Packit |
92cec9 |
[ValuesAndExpressions::RequireUpperCaseHeredocTerminator]
|
|
Packit |
92cec9 |
severity = 3
|
|
Packit |
92cec9 |
|
|
Packit |
92cec9 |
[Variables::ProhibitPackageVars]
|
|
Packit |
92cec9 |
add_packages = Carp Test::Builder
|
|
Packit |
92cec9 |
|
|
Packit |
92cec9 |
[-Subroutines::RequireFinalReturn]
|
|
Packit |
92cec9 |
|
|
Packit |
92cec9 |
# This incorrectly thinks signatures are prototypes.
|
|
Packit |
92cec9 |
[-Subroutines::ProhibitSubroutinePrototypes]
|
|
Packit |
92cec9 |
|
|
Packit |
92cec9 |
[-ErrorHandling::RequireCarping]
|
|
Packit |
92cec9 |
|
|
Packit |
92cec9 |
# No need for /xsm everywhere
|
|
Packit |
92cec9 |
[-RegularExpressions::RequireDotMatchAnything]
|
|
Packit |
92cec9 |
[-RegularExpressions::RequireExtendedFormatting]
|
|
Packit |
92cec9 |
[-RegularExpressions::RequireLineBoundaryMatching]
|
|
Packit |
92cec9 |
|
|
Packit |
92cec9 |
# http://stackoverflow.com/questions/2275317/why-does-perlcritic-dislike-using-shift-to-populate-subroutine-variables
|
|
Packit |
92cec9 |
[-Subroutines::RequireArgUnpacking]
|
|
Packit |
92cec9 |
|
|
Packit |
92cec9 |
# "use v5.14" is more readable than "use 5.014"
|
|
Packit |
92cec9 |
[-ValuesAndExpressions::ProhibitVersionStrings]
|
|
Packit |
92cec9 |
|
|
Packit |
92cec9 |
# Explicitly returning undef is a _good_ thing in many cases, since it
|
|
Packit |
92cec9 |
# prevents very common errors when using a sub in list context to construct a
|
|
Packit |
92cec9 |
# hash and ending up with a missing value or key.
|
|
Packit |
92cec9 |
[-Subroutines::ProhibitExplicitReturnUndef]
|