Closed p5pRT closed 16 years ago
Turning off some lint check categories does not work in B::Lint as documented due to a small bug. The patch below fixes it. At least 5.005_03\, 5.6.0 and 5.7.2 are affected.
This is a bug report for perl from ville.skytta@popsystems.com\, generated with the help of perlbug 1.28 running under perl v5.6.0.
----------------------------------------------------------------- [Please enter your report here]
Turning off some lint check categories does not work in B::Lint as documented due to a small bug. The patch below fixes it. At least 5.005_03\, 5.6.0 and 5.7.2 are affected.
--- Lint.pm.orig Tue Aug 28 00:56:40 2001 +++ Lint.pm Tue Aug 28 00:57:03 2001 @@ -345\,7 +345\,7 @@ %check = (); } else { - if ($opt =~ s/^no-//) { + if ($opt =~ s/^no_//) { $check{$opt} = 0; } else {
Thanks\, could we get a testcase for this aswell?
(Applied in bleadperl)
-- Arthur
#!./perl
BEGIN { chdir 't' if -d 't'; if ($^O eq 'MacOS') { @INC = qw(: ::lib ::macos:lib); } else { @INC = '.'; push @INC\, '../lib'; } }
$| = 1; use warnings; use strict;
print "1..1\n";
my $test = 1;
sub ok { print "ok $test\n"; $test++ }
my $a; my $Is_VMS = $^O eq 'VMS'; my $Is_MacOS = $^O eq 'MacOS';
my $path = join " "\, map { qq["-I$_"] } @INC; my $redir = $Is_MacOS ? "" : "2>&1";
$a =`$^X $path "-MO=Lint\,no-context" -e "" $redir`;
print "not " if $a =~ /^No such check:/s; ok;
This ticket is still open but shouldn't be.
p5p@spam.wizbit.be - Status changed from 'open' to 'resolved'
A patch with tests for this bug has been send to the current maintainer of the module.
Migrated from rt.perl.org#7594 (status was 'resolved')
Searchable as RT7594$