Subject: | warning from RequireExplicitInclusion on Glib subclass |
Date: | Mon, 16 Jun 2008 08:32:57 +1000 |
To: | bug-Perl-Critic-StricterSubs [...] rt.cpan.org |
From: | Kevin Ryde <user42 [...] zip.com.au> |
With perlcritic 1.084, strictersubs 0.03, and the debian packaged perl
5.10.0, the file foo.pm below run through
perlcritic --single-policy=RequireExplicitInclusion foo.pm
gets a warning
Use of uninitialized value $package in exists at /usr/share/perl5/Perl/Critic/Policy/Modules/RequireExplicitInclusion.pm line 189.
("Glib::Object::Subclass" doesn't import anything, it sets you up to be
a subclass of a given class. In this example the base Glib::Object,
which must be specified in slightly bizarre "Glib::Object::" style.)
Message body is not shown because sender requested not to inline it.