Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Perl-Critic CPAN distribution.

Report information
The Basics
Id: 55751
Status: new
Priority: 0/
Queue: Perl-Critic

People
Owner: Nobody in particular
Requestors: user42 [...] zip.com.au
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: ProhibitIndirectSyntax on dynaloader bootstrap()
Date: Sun, 21 Mar 2010 09:58:45 +1100
To: bug-Perl-Critic [...] rt.cpan.org
From: Kevin Ryde <user42 [...] zip.com.au>
Download (untitled) / with headers
text/plain 587b
As an idea for a feature, ProhibitIndirectSyntax could report on the common DynaLoader form bootstrap Foo; or bootstrap Foo $VERSION; I'd used it several times over the years by cut and paste before realizing it was a method call instead of some magical function :-). Anything where "bootstrap" is followed by the current package name would be pretty unambiguous and could be a builtin. I don't think bootstrap normally appears with anything except the current package name either. I suppose it would work to make the call from somewhere else, but that'd have to be rare.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.