Log-Log4perl-NDC-Scoped
view release on metacpan or search on metacpan
t/perlcriticrc view on Meta::CPAN
# Use a pager.
pager = $PAGER
###
### Turn off policies.
###
# No problemo con constant
[-ValuesAndExpressions::ProhibitConstantPragma]
# Nuthin wrong with the expression form of map and grep.
[-BuiltinFunctions::RequireBlockMap]
[-BuiltinFunctions::RequireBlockGrep]
# Can't use Carp
[-ErrorHandling::RequireCarping]
# We realize that localizing a variable does not retain it's original value,
# thanks.
[-Variables::RequireInitializationForLocalVars]
# I'd rather use a few unnecessary "" then forget to interpolate.
[-ValuesAndExpressions::ProhibitInterpolationOfLiterals]
# Inline POD is more worthwhile than the dubious optimization of putting it
# after the __END__ block
[-Documentation::RequirePodAtEnd]
# No, we're not going to use English.
[-Variables::ProhibitPunctuationVars]
# That's just rediculous
[-ControlStructures::ProhibitPostfixControls]
[-ValuesAndExpressions::ProhibitEmptyQuotes]
[-ValuesAndExpressions::ProhibitNoisyQuotes]
# Test::Builder makes heavy use of local()
[-Variables::ProhibitLocalVars]
# Nuthin wrong with @$foo
[-References::ProhibitDoubleSigils]
# No funciona bien con Params::Validate
[-Subroutines::RequireArgUnpacking]
# No funciona con Moose, Mouse, etc
[-Subroutines::ProhibitUnusedPrivateSubroutines]
###
### Configure policies
###
# No tabs ever
[CodeLayout::ProhibitHardTabs]
allow_leading_tabs = 0
# Inform perlcritic that other things turn on strictures and warnings
[TestingAndDebugging::RequireUseStrict]
equivalent_modules = Mouse perl5i::0 perl5i::1 perl5i::2 Modern::Perl TB2::Mouse TB2::Mouse::Role Mojo::Base ojolicious
[TestingAndDebugging::RequireUseWarnings]
equivalent_modules = Mouse perl5i::0 perl5i::1 perl5i::2 Modern::Perl TB2::Mouse TB2::Mouse::Role Mojo::Base Mojolicious::Lite
# "no warnings" is fine as long as it's restricted to one or more categories
[TestingAndDebugging::ProhibitNoWarnings]
allow_with_category_restriction = 1
# Don't need /x on small regexes.
[RegularExpressions::RequireExtendedFormatting]
minimum_regex_length_to_complain_about = 12
( run in 2.519 seconds using v1.01-cache-2.11-cpan-364913b4093 )