Subject: | false positive for leading tabs |
See the attached file.
In short, perl critic interprets as a string what is in an extended
regexp, causing it to complain about things like the attached, even if
the hard tabs at the beginning of lines settings should permit it.
ski@ganiodayo:~/tmp$ perl -e 'use Perl::Critic; my $critic =
Perl::Critic->new(-severity => 3); my $str = join("", <>); print
$critic->critique(\$str); ' <perl-critic-bug.pl
Hard tabs used at line 7, column 7. See page 20 of PBP.
Subject: | perl-critic-bug.pl |
#!/usr/bin/perl -w
use strict;
use warnings;
my $x = "foo";
$x =~ m/
some
(really | long)
pattern
/mx;