Subject: | Support for __PACKAGE__ |
Hello,
As usual, thanks for this module and it's handy in my daily development :)
However, I noticed this starting to pop up more often after I started
to use Moose. Moose recommends me to use
"__PACKAGE__->meta->make_immutable" and I'm using it now.
The error I see is this:
[Modules::RequireExplicitInclusion] Use of "__PACKAGE__" without
including "__PACKAGE__" at line 14, column 1. (Severity: 4)
Attached is a small patch that fixes this, thanks again for your time!
--
~Apocalypse
Subject: | patch.diff |
--- RequireExplicitInclusion.pm.orig 2009-03-26 21:38:56.000000000 +0100
+++ RequireExplicitInclusion.pm 2009-03-26 21:36:58.000000000 +0100
@@ -187,6 +187,7 @@
for my $call ( $finder->( $doc ) ) {
my $package = $package_extractor->( $call );
next if exists $included_packages->{ $package };
+ next if $package eq '__PACKAGE__';
my $desc = qq{Use of "$call" without including "$package"};
push @violations, $self->violation( $desc, $expl, $call );