Open plicease opened 3 years ago
I think the problem is that it gets the policy name from caller(), which doesn't know when it's being called from a superclass. An inheritance friendly method would be to check the invocant of Perl::Critic::Policy::violation.
With config:
this perl script passes perlcritic:
with this config:
it fails
@Grinnz point out this line, which may be the culprit:
https://metacpan.org/release/Perl-Critic/source/lib/Perl/Critic/Violation.pm#L67