Subroutines::ProhibitUnusedPrivateSubroutines
this throws a problem with all the many
_build_
as it thinks they are unused private subroutines, not seeing them elsewhere in the code
To fix (thanks to the CPAN documentation for helping me get to this) add the following in your (.)perlcriticrc
[Subroutines::ProhibitUnusedPrivateSubroutines]
private_name_regex = _(?!build_)\w+
This will pattern match and allow anything beginning _build_
Cheers
1 comment:
this is not at all related to the *content* of your post, but I thought I'd share anyway: the plural of Moose... is also Moose :)
Post a Comment