| 1 |
severity = stern |
| 2 |
theme = core |
| 3 |
|
| 4 |
[Perl::Critic::Policy::BuiltinFunctions::ProhibitStringyEval] |
| 5 |
|
| 6 |
allow_includes = 1 |
| 7 |
|
| 8 |
[Perl::Critic::Policy::Documentation::PodSpelling] |
| 9 |
|
| 10 |
spell_command = aspell list |
| 11 |
|
| 12 |
[Perl::Critic::Policy::ErrorHandling::RequireCheckingReturnValueOfEval] |
| 13 |
|
| 14 |
# The default is 3 ('harsh'), but I think this is more severe than that. |
| 15 |
|
| 16 |
severity = stern |
| 17 |
|
| 18 |
[Perl::Critic::Policy::InputOutput::ProhibitInteractiveTest] |
| 19 |
|
| 20 |
# Perl::Critic and Perl Best Practices prefer the IO::Interactive |
| 21 |
# is_interactive() subroutine to -T STDIN. But that assumes that |
| 22 |
# ARGV is used for input, and that you don't want to be interactive |
| 23 |
# if output goes to a pipe. I do not want these assumptions, but |
| 24 |
# rather than disable them in the code I am simply assigning them |
| 25 |
# a severity slightly higher than I currently use. |
| 26 |
|
| 27 |
severity = harsh |
| 28 |
|
| 29 |
[Perl::Critic::Policy::InputOutput::RequireCheckedOpen] |
| 30 |
|
| 31 |
# For some reason the default is 3 ('harsh'). But IM(NS)HO this |
| 32 |
# kind of thing should be a 5. So: |
| 33 |
|
| 34 |
severity = gentle |
| 35 |
|
| 36 |
[Perl::Critic::Policy::Subroutines::RequireArgUnpacking] |
| 37 |
|
| 38 |
short_subroutine_statements = 3 |
| 39 |
|
| 40 |
[Perl::Critic::Policy::Subroutines::RequireFinalReturn] |
| 41 |
|
| 42 |
terminal_funcs = CORE::exit |
| 43 |
|
| 44 |
[Perl::Critic::Policy::TestingAndDebugging::ProhibitNoStrict] |
| 45 |
|
| 46 |
allow = refs |
| 47 |
|
| 48 |
[Perl::Critic::Policy::TestingAndDebugging::ProhibitNoWarnings] |
| 49 |
|
| 50 |
allow = exiting once substr uninitialized |
| 51 |
|
| 52 |
[Perl::Critic::Policy::ValuesAndExpressions::ProhibitConstantPragma] |
| 53 |
|
| 54 |
# Perl::Critic and Perl Best Practices do not like the 'constant' |
| 55 |
# pragma because it does not interpolate. It really does, the |
| 56 |
# syntax is just different. Rather than disable the things in the |
| 57 |
# source, I'm just assigning them a severity slightly greater than |
| 58 |
# I customarily use. |
| 59 |
|
| 60 |
severity = harsh |
| 61 |
|
| 62 |
[Perl::Critic::Policy::Variables::ProhibitUnusedVarsStricter] |
| 63 |
|
| 64 |
add_themes = core |
| 65 |
allow_unused_subroutine_arguments = 0 |
| 66 |
severity = stern |