Skip Menu |

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

Report information
The Basics
Id: 69593
Status: resolved
Priority: 0/
Queue: Perl-Critic-Bangs

People
Owner: Nobody in particular
Requestors: rjray [...] blackperl.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.08
Fixed in: (no value)



Subject: Bangs::ProhibitNumberedNames is too strict in reporting violations
Upon my first use of P::C::Bangs, I was flagged for a variable named "$as_base64"... only there is no "$as_base" or anything like it. The message implies that you should avoid variable names that DIFFER by just a number or few numbers. But a name like "$as_base64" with nothing else that resembles it is not at all ambiguous. Most likely, this policy should probably only complain about "$name(\d+)" if "$name" itself (or a different value of (\d+)) exists. -- Randy J. Ray rjray@blackperl.com randy.j.ray@gmail.com
I'm adding base64 to the set of things that are OK, and then your $as_base64 will pass just fine.