| 1 |
severity = 3 |
| 2 |
verbose = 11 |
| 3 |
|
| 4 |
theme = core + pbp + bugs + maintenance + cosmetic + complexity + security + tests + moose |
| 5 |
|
| 6 |
program-extensions = pl psgi t |
| 7 |
|
| 8 |
exclude = Subroutines::ProhibitCallsToUndeclaredSubs |
| 9 |
|
| 10 |
[BuiltinFunctions::ProhibitStringySplit] |
| 11 |
severity = 3 |
| 12 |
|
| 13 |
[CodeLayout::RequireTrailingCommas] |
| 14 |
severity = 3 |
| 15 |
|
| 16 |
[ControlStructures::ProhibitCStyleForLoops] |
| 17 |
severity = 3 |
| 18 |
|
| 19 |
[Documentation::RequirePackageMatchesPodName] |
| 20 |
severity = 3 |
| 21 |
|
| 22 |
[Freenode::WhileDiamondDefaultAssignment] |
| 23 |
set_themes = core |
| 24 |
|
| 25 |
[InputOutput::RequireCheckedSyscalls] |
| 26 |
functions = :builtins |
| 27 |
exclude_functions = sleep |
| 28 |
severity = 3 |
| 29 |
|
| 30 |
[Moose::RequireCleanNamespace] |
| 31 |
modules = Moose Moose::Role MooseX::Role::Parameterized Moose::Util::TypeConstraints |
| 32 |
cleaners = namespace::autoclean |
| 33 |
|
| 34 |
[NamingConventions::Capitalization] |
| 35 |
package_exemptions = [A-Z]\w+|main |
| 36 |
file_lexical_variables = [A-Z]\w+|[^A-Z]+ |
| 37 |
global_variables = :starts_with_upper |
| 38 |
scoped_lexical_variables = [A-Z]\w+|[^A-Z]+ |
| 39 |
severity = 3 |
| 40 |
|
| 41 |
# Given our code base, leaving this at 5 would be a huge pain |
| 42 |
[Subroutines::ProhibitManyArgs] |
| 43 |
max_arguments = 10 |
| 44 |
|
| 45 |
[RegularExpressions::ProhibitComplexRegexes] |
| 46 |
max_characters = 200 |
| 47 |
|
| 48 |
[RegularExpressions::ProhibitUnusualDelimiters] |
| 49 |
severity = 3 |
| 50 |
|
| 51 |
[Subroutines::ProhibitUnusedPrivateSubroutines] |
| 52 |
private_name_regex = _(?!build)\w+ |
| 53 |
|
| 54 |
[TestingAndDebugging::ProhibitNoWarnings] |
| 55 |
allow = redefine |
| 56 |
|
| 57 |
[ValuesAndExpressions::ProhibitEmptyQuotes] |
| 58 |
severity = 3 |
| 59 |
|
| 60 |
[ValuesAndExpressions::ProhibitInterpolationOfLiterals] |
| 61 |
severity = 3 |
| 62 |
|
| 63 |
[ValuesAndExpressions::RequireUpperCaseHeredocTerminator] |
| 64 |
severity = 3 |
| 65 |
|
| 66 |
[Variables::ProhibitPackageVars] |
| 67 |
add_packages = Test::Builder |
| 68 |
|
| 69 |
[-ControlStructures::ProhibitCascadingIfElse] |
| 70 |
|
| 71 |
[-ErrorHandling::RequireCarping] |
| 72 |
[-InputOutput::RequireBriefOpen] |
| 73 |
|
| 74 |
[-ValuesAndExpressions::ProhibitConstantPragma] |
| 75 |
|
| 76 |
# No need for /xsm everywhere |
| 77 |
[-RegularExpressions::RequireDotMatchAnything] |
| 78 |
[-RegularExpressions::RequireExtendedFormatting] |
| 79 |
[-RegularExpressions::RequireLineBoundaryMatching] |
| 80 |
|
| 81 |
# by concensus in standup 2015-05-12 we decided to allow return undef |
| 82 |
# this is mainly so bar can be written to return undef so that |
| 83 |
# foo( bar => bar(), bazz => baz() ) won't cause problems |
| 84 |
[-Subroutines::ProhibitExplicitReturnUndef] |
| 85 |
|
| 86 |
# This incorrectly thinks signatures are prototypes. |
| 87 |
[-Subroutines::ProhibitSubroutinePrototypes] |
| 88 |
|
| 89 |
# http://stackoverflow.com/questions/2275317/why-does-perlcritic-dislike-using-shift-to-populate-subroutine-variables |
| 90 |
[-Subroutines::RequireArgUnpacking] |
| 91 |
|
| 92 |
[-Subroutines::RequireFinalReturn] |
| 93 |
|
| 94 |
# "use v5.14" is more readable than "use 5.014" |
| 95 |
[-ValuesAndExpressions::ProhibitVersionStrings] |