-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ProhibitMagicNumbers false positive with capture variables #455
Comments
RT Ticket: http://rt.cpan.org/Ticket/Display.html?id=72980 PPI bug: ppidump 'my $x = $13;' |
A fix for this has been released as a dev version to CPAN. Please test and give feedback here: |
This bug has been fixed via Perl-Critic/PPI#92
This bug has been fixed via Perl-Critic/PPI#92
This is fixed in Perl-Critic-1.123 via PPI-1.220 |
Thanks perlcritic and PPI developers for fixing this. |
RT Ticket: http://rt.cpan.org/Ticket/Display.html?id=72980
Requested On: Mon Dec 05 11:03:37 2011
Requested By: EDAVIS@cpan.org
Test program:
$_ = 'xxxxxxxxxxxxxxxxxxxx';
/(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)/;
my $x = $13;
print $x;
Checking with --single-policy ValuesAndExpressions::ProhibitMagicNumbers
gives the message
3 is not one of the allowed literal values (0, 1, 2).
The text was updated successfully, but these errors were encountered: