summaryrefslogtreecommitdiffstats
path: root/.perlcriticrc
diff options
context:
space:
mode:
Diffstat (limited to '.perlcriticrc')
-rw-r--r--.perlcriticrc20
1 files changed, 19 insertions, 1 deletions
diff --git a/.perlcriticrc b/.perlcriticrc
index 15ff6c82b..0c0d1c9be 100644
--- a/.perlcriticrc
+++ b/.perlcriticrc
@@ -3,10 +3,28 @@ severity = 1
[-CodeLayout::RequireTidyCode]
#perltidyrc = .perltidyrc
+#severity = 2
+
[InputOutput::RequireCheckedSyscalls]
+severity = 2
functions = :builtins
exclude_functions = print say sleep binmode
+[ValuesAndExpressions::ProhibitInterpolationOfLiterals]
+severity = 2
+
+[Freenode::EmptyReturn]
+severity = 2
+
+[CodeLayout::RequireTrailingCommas]
+severity = 2
+
+[CodeLayout::ProhibitParensWithBuiltins]
+severity = 2
+
+[RegularExpressions::ProhibitUnusualDelimiters]
+severity = 2
+
[-BuiltinFunctions::ProhibitUselessTopic]
[-ControlStructures::ProhibitCascadingIfElse]
[-ControlStructures::ProhibitPostfixControls]
@@ -46,7 +64,7 @@ exclude_functions = print say sleep binmode
# _build_* are allowed
[Subroutines::ProhibitUnusedPrivateSubroutines]
- private_name_regex = _(?!_|build_)\w+
+private_name_regex = _(?!_|build_)\w+
# I don't agree with this policy because
# a bare return can actually cause more problems.