| 1 |
severity = 3 |
| 2 |
verbose = 11 |
| 3 |
|
| 4 |
theme = core + pbp + bugs + maintenance + cosmetic + complexity + security + tests + moose |
| 5 |
|
| 6 |
exclude = Subroutines::ProhibitCallsToUndeclaredSubs |
| 7 |
|
| 8 |
[BuiltinFunctions::ProhibitStringySplit] |
| 9 |
severity = 3 |
| 10 |
|
| 11 |
[CodeLayout::RequireTrailingCommas] |
| 12 |
severity = 3 |
| 13 |
|
| 14 |
[ControlStructures::ProhibitCStyleForLoops] |
| 15 |
severity = 3 |
| 16 |
|
| 17 |
[InputOutput::RequireCheckedSyscalls] |
| 18 |
functions = :builtins |
| 19 |
exclude_functions = sleep |
| 20 |
severity = 3 |
| 21 |
|
| 22 |
[Moose::RequireCleanNamespace] |
| 23 |
modules = Moose Moose::Role MooseX::Role::Parameterized Moose::Util::TypeConstraints |
| 24 |
cleaners = namespace::autoclean |
| 25 |
|
| 26 |
[NamingConventions::Capitalization] |
| 27 |
package_exemptions = [A-Z]\w+|minFraud |
| 28 |
file_lexical_variables = [A-Z]\w+|[^A-Z]+ |
| 29 |
global_variables = :starts_with_upper |
| 30 |
scoped_lexical_variables = [A-Z]\w+|[^A-Z]+ |
| 31 |
severity = 3 |
| 32 |
|
| 33 |
# Given our code base, leaving this at 5 would be a huge pain |
| 34 |
[Subroutines::ProhibitManyArgs] |
| 35 |
max_arguments = 10 |
| 36 |
|
| 37 |
[RegularExpressions::ProhibitComplexRegexes] |
| 38 |
max_characters = 200 |
| 39 |
|
| 40 |
[RegularExpressions::ProhibitUnusualDelimiters] |
| 41 |
severity = 3 |
| 42 |
|
| 43 |
[Subroutines::ProhibitUnusedPrivateSubroutines] |
| 44 |
private_name_regex = _(?!build)\w+ |
| 45 |
skip_when_using = Moo::Role Moose::Role MooseX::Role::Parameterized Role::Tiny Test::Class::Moose::Role |
| 46 |
|
| 47 |
[TestingAndDebugging::ProhibitNoWarnings] |
| 48 |
allow = redefine |
| 49 |
|
| 50 |
[ValuesAndExpressions::ProhibitEmptyQuotes] |
| 51 |
severity = 3 |
| 52 |
|
| 53 |
[ValuesAndExpressions::ProhibitInterpolationOfLiterals] |
| 54 |
severity = 3 |
| 55 |
|
| 56 |
[ValuesAndExpressions::RequireUpperCaseHeredocTerminator] |
| 57 |
severity = 3 |
| 58 |
|
| 59 |
[Variables::ProhibitPackageVars] |
| 60 |
add_packages = Test::Builder |
| 61 |
|
| 62 |
[TestingAndDebugging::RequireUseStrict] |
| 63 |
|
| 64 |
[TestingAndDebugging::RequireUseWarnings] |
| 65 |
|
| 66 |
[-ControlStructures::ProhibitCascadingIfElse] |
| 67 |
|
| 68 |
[-ErrorHandling::RequireCarping] |
| 69 |
[-InputOutput::RequireBriefOpen] |
| 70 |
|
| 71 |
[-ValuesAndExpressions::ProhibitConstantPragma] |
| 72 |
|
| 73 |
# No need for /xsm everywhere |
| 74 |
[-RegularExpressions::RequireDotMatchAnything] |
| 75 |
[-RegularExpressions::RequireExtendedFormatting] |
| 76 |
[-RegularExpressions::RequireLineBoundaryMatching] |
| 77 |
|
| 78 |
[-Subroutines::ProhibitExplicitReturnUndef] |
| 79 |
|
| 80 |
# http://stackoverflow.com/questions/2275317/why-does-perlcritic-dislike-using-shift-to-populate-subroutine-variables |
| 81 |
[-Subroutines::RequireArgUnpacking] |
| 82 |
|
| 83 |
[-Subroutines::RequireFinalReturn] |
| 84 |
|
| 85 |
# "use v5.14" is more readable than "use 5.014" |
| 86 |
[-ValuesAndExpressions::ProhibitVersionStrings] |