summaryrefslogtreecommitdiffstats
path: root/.perlcriticrc
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2017-12-13 18:46:26 +0100
committerGitHub <noreply@github.com>2017-12-13 18:46:26 +0100
commit48fe3a1e0a4a833aa14e7f95136d0e4542959eb8 (patch)
tree18f2820200f651e087088ea0e870794ae25f5721 /.perlcriticrc
parent988a42a2dc199716f5c9c6e371ffcf9493c68112 (diff)
downloadbugzilla-48fe3a1e0a4a833aa14e7f95136d0e4542959eb8.tar.gz
bugzilla-48fe3a1e0a4a833aa14e7f95136d0e4542959eb8.tar.xz
Bug 1424155 - Write scripts to import/export attachments to disk
Diffstat (limited to '.perlcriticrc')
-rw-r--r--.perlcriticrc12
1 files changed, 11 insertions, 1 deletions
diff --git a/.perlcriticrc b/.perlcriticrc
index 84eb0f8a5..14b2d7cab 100644
--- a/.perlcriticrc
+++ b/.perlcriticrc
@@ -5,7 +5,7 @@ severity = 1
#perltidyrc = .perltidyrc
[InputOutput::RequireCheckedSyscalls]
functions = :builtins
-exclude_functions = print
+exclude_functions = print say binmode
[-BuiltinFunctions::ProhibitUselessTopic]
[-ControlStructures::ProhibitCascadingIfElse]
@@ -35,6 +35,16 @@ exclude_functions = print
# think of javascript arrow functions.
[-Subroutines::RequireFinalReturn]
+# This test is technically correct but I do not care.
+[-InputOutput::ProhibitInteractiveTest]
+
+# I believe in the opposite of this test.
+[-InputOutput::ProhibitExplicitStdin]
+
+# _build_* are allowed
+[Subroutines::ProhibitUnusedPrivateSubroutines]
+ private_name_regex = _(?!_|build_)\w+
+
# I don't agree with this policy because
# a bare return can actually cause more problems.
[-Subroutines::ProhibitExplicitReturnUndef]