From 681b26aa8d4124b312799bae69ae721c0ff41328 Mon Sep 17 00:00:00 2001 From: dakkar Date: Tue, 7 Feb 2017 19:12:42 +0000 Subject: don't criticise "prototypes" Perl::Critic doesn't distinguish between prototypes and signatures, so let's disable the check --- perlcritic.rc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'perlcritic.rc') diff --git a/perlcritic.rc b/perlcritic.rc index 651ba52..be04a88 100644 --- a/perlcritic.rc +++ b/perlcritic.rc @@ -313,8 +313,9 @@ allow_import_of = utf8 strict warnings # Behavior of `sort' is not defined if called in scalar context. [Subroutines::ProhibitReturnSort] +# we use signatures! # Don't write `sub my_function (@@) {}'. -[Subroutines::ProhibitSubroutinePrototypes] +[-Subroutines::ProhibitSubroutinePrototypes] severity = 2 # Prevent unused private subroutines. -- cgit v1.2.3