From d2180e208f9d221dbfffb6a694742fe0f0a115c9 Mon Sep 17 00:00:00 2001 From: dakkar Date: Tue, 7 Feb 2017 20:05:29 +0000 Subject: don't consider Moo(se)'s _build_* unused actually, we're telling the policy to not consider them private, but the effect is the same --- perlcritic.rc | 1 + 1 file changed, 1 insertion(+) diff --git a/perlcritic.rc b/perlcritic.rc index 651ba52..7bfe7a1 100644 --- a/perlcritic.rc +++ b/perlcritic.rc @@ -319,6 +319,7 @@ severity = 2 # Prevent unused private subroutines. [Subroutines::ProhibitUnusedPrivateSubroutines] +private_name_regex = _(?!build_)\w+ # Prevent access to private subs in other packages. [Subroutines::ProtectPrivateSubs] -- cgit v1.2.3