You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sipwise-base/share/.perlcriticrc

55 lines
1.7 KiB

colour-severity-5 = dark magenta
colour-severity-4 = dark red
colour-severity-3 = dark yellow
colour-severity-2 = dark blue
colour-severity-1 = black
verbose = %f line %l col %c\n [%s] %p (%e) = %m\n %r\n
[-ValuesAndExpressions::ProhibitAccessOfPrivateData]
# see bug http://rt.cpan.org/Public/Bug/Display.html?id=35440
[-Editor::RequireEmacsFileVariables]
# no one uses Emacs here
# next policy is gone in 1.118
# [-Miscellanea::RequireRcsKeywords]
# git says rcs keywords are a stupid idea:
# http://git.or.cz/gitwiki/GitFaq#head-4a0afe71a2bb7734777a8b0b345e0308aefdbd40
[-Lax::ProhibitStringyEval::ExceptForRequire]
# already covered through BuiltinFunctions::ProhibitStringyEval::allow_includes
[Documentation::RequirePodSections]
lib_sections = NAME | VERSION | SYNOPSIS | DESCRIPTION | INTERFACE | Composition | Attributes | Methods | Exports | DIAGNOSTICS | CONFIGURATION AND ENVIRONMENT | DEPENDENCIES | INCOMPATIBILITIES | BUGS AND LIMITATIONS | TO DO | AUTHOR | SEE ALSO
[Bangs::ProhibitCommentedOutCode]
commentedcoderegex = \$(?!Id)[A-Za-z_].*=/
# should not trigger on the RCS variable
[Perl::Critic::Policy::Tics::ProhibitLongLines]
hard_max = 140
# terminal width
[InputOutput::RequireCheckedSyscalls]
functions = :builtins
exclude_functions = print
[Documentation::PodSpelling]
spell_command = aspell list -l en
[Modules::RequireExplicitInclusion]
exempt_packages = /XML::LibXML::.*/
[BuiltinFunctions::ProhibitStringyEval]
allow_includes = 0
# use Module::Runtime for includes
[-CodeLayout::ProhibitHashBarewords]
# meh, it's super annoying
[TestingAndDebugging::RequireUseStrict]
equivalent_modules = strictures
[TestingAndDebugging::RequireUseWarnings]
equivalent_modules = strictures