| 1 |
severity = stern |
| 2 |
theme = core |
| 3 |
|
| 4 |
[Perl::Critic::Policy::BuiltinFunctions::ProhibitStringyEval] |
| 5 |
|
| 6 |
allow_includes = 1 |
| 7 |
|
| 8 |
[Perl::Critic::Policy::CodeLayout::ProhibitHardTabs] |
| 9 |
|
| 10 |
# I don't intend to comply with this at this point. |
| 11 |
severity = 2 |
| 12 |
|
| 13 |
[Perl::Critic::Policy::Documentation::PodSpelling] |
| 14 |
|
| 15 |
spell_command = aspell list |
| 16 |
|
| 17 |
[Perl::Critic::Policy::ErrorHandling::RequireCheckingReturnValueOfEval] |
| 18 |
|
| 19 |
# The default is 3 ('harsh'), but I think this is more severe than that. |
| 20 |
|
| 21 |
severity = stern |
| 22 |
|
| 23 |
[Perl::Critic::Policy::InputOutput::ProhibitInteractiveTest] |
| 24 |
|
| 25 |
# Perl::Critic and Perl Best Practices prefer the IO::Interactive |
| 26 |
# is_interactive() subroutine to -T STDIN. But that assumes that |
| 27 |
# ARGV is used for input, and that you don't want to be interactive |
| 28 |
# if output goes to a pipe. I do not want these assumptions, but |
| 29 |
# rather than disable them in the code I am simply assigning them |
| 30 |
# a severity slightly higher than I currently use. |
| 31 |
|
| 32 |
severity = cruel |
| 33 |
|
| 34 |
[Perl::Critic::Policy::InputOutput::RequireCheckedOpen] |
| 35 |
|
| 36 |
# For some reason the default is 3 ('harsh'). But IM(NS)HO this |
| 37 |
# kind of thing should be a 5. So: |
| 38 |
|
| 39 |
severity = gentle |
| 40 |
|
| 41 |
[Perl::Critic::Policy::Miscellanea::ProhibitUselessNoCritic] |
| 42 |
|
| 43 |
severity = stern |
| 44 |
|
| 45 |
[Perl::Critic::Policy::Subroutines::ProhibitUnusedPrivateSubroutines] |
| 46 |
|
| 47 |
severity = stern |
| 48 |
private_name_regex = _(?!_)\w+ |
| 49 |
|
| 50 |
[Perl::Critic::Policy::Subroutines::RequireArgUnpacking] |
| 51 |
|
| 52 |
allow_delegation_to = __arguments _arguments grep map |
| 53 |
short_subroutine_statements = 3 |
| 54 |
|
| 55 |
[Perl::Critic::Policy::Subroutines::RequireFinalReturn] |
| 56 |
|
| 57 |
terminal_funcs = CORE::exit |
| 58 |
|
| 59 |
[Perl::Critic::Policy::TestingAndDebugging::ProhibitNoStrict] |
| 60 |
|
| 61 |
allow = refs |
| 62 |
|
| 63 |
[Perl::Critic::Policy::TestingAndDebugging::ProhibitNoWarnings] |
| 64 |
|
| 65 |
allow = exiting once substr uninitialized |
| 66 |
|
| 67 |
[Perl::Critic::Policy::ValuesAndExpressions::ProhibitConstantPragma] |
| 68 |
|
| 69 |
# Perl::Critic and Perl Best Practices do not like the 'constant' |
| 70 |
# pragma because it does not interpolate. It really does, the |
| 71 |
# syntax is just different. Rather than disable the things in the |
| 72 |
# source, I'm just assigning them a severity slightly greater than |
| 73 |
# I customarily use. |
| 74 |
|
| 75 |
severity = cruel |
| 76 |
|
| 77 |
[Perl::Critic::Policy::ValuesAndExpressions::ProhibitInterpolationOfLiterals] |
| 78 |
|
| 79 |
# This policy is severity 1 by default, but because of the desire to |
| 80 |
# localize messages I want it severe enough that I get output. |
| 81 |
|
| 82 |
severity = gentle |
| 83 |
|
| 84 |
[Perl::Critic::Policy::Variables::ProhibitUnusedVarsStricter] |
| 85 |
|
| 86 |
add_themes = core |
| 87 |
allow_if_computed_by = __arguments _arguments |
| 88 |
allow_unused_subroutine_arguments = 0 |
| 89 |
severity = stern |