summaryrefslogtreecommitdiff
path: root/perlcriticrc
diff options
context:
space:
mode:
Diffstat (limited to 'perlcriticrc')
-rw-r--r--perlcriticrc18
1 files changed, 18 insertions, 0 deletions
diff --git a/perlcriticrc b/perlcriticrc
new file mode 100644
index 0000000..19f4bd5
--- /dev/null
+++ b/perlcriticrc
@@ -0,0 +1,18 @@
+severity = brutal
+# In this project, regex usage is minimal and simple.
+# /x
+[-RegularExpressions::RequireExtendedFormatting]
+# /m
+[-RegularExpressions::RequireLineBoundaryMatching]
+# /s
+[-RegularExpressions::RequireDotMatchAnything]
+[-ErrorHandling::RequireCarping]
+[ValuesAndExpressions::ProhibitMagicNumbers]
+allowed_values = -4..100
+[-ValuesAndExpressions::ProhibitNoisyQuotes]
+[-ValuesAndExpressions::ProhibitEmptyQuotes]
+[InputOutput::RequireCheckedSyscalls]
+functions = :builtins
+exclude_functions = print say
+# It is tidy in my heart
+[-CodeLayout::RequireTidyCode]