Perl-Lint
view release on metacpan or search on metacpan
t/Policy/ValuesAndExpressions/require_interpolation_of_metachars.t view on Meta::CPAN
===
--- dscr: Do complain about RCS variables, if not turned on.
--- failures: 7
--- params:
--- input
$VERSION = q<$Revision$>;
($VERSION) = q<$Revision$> =~ m/(\d+)/mx;
our $VERSION = substr(q/$Revision$/, 10);
our ($VERSION) = q<$Revision$> =~ m/(\d+)/mx;
our ($VERSION) = (q<$Revision$> =~ m/(\d+)/mx);
our (undef, $AUTHOR, undef, undef, $VERSION) = split m/\s+/, q<$Author$ $Revision$>;
# Yes, silly example, but still need to check it.
if ( ($VERSION) = q<$Revision$> =~ m/(\d+)/mx ) {}
===
--- dscr: Don't complain about RCS variables, if turned on.
--- failures: 0
--- params: {require_interpolation_of_matchers => {rcs_keywords => 'Revision Author'}}
--- input
$VERSION = q<$Revision$>;
($VERSION) = q<$Revision$> =~ m/(\d+)/mx;
our $VERSION = substr(q/$Revision$/, 10);
our ($VERSION) = q<$Revision$> =~ m/(\d+)/mx;
our ($VERSION) = (q<$Revision$> =~ m/(\d+)/mx);
our (undef, $AUTHOR, undef, undef, $VERSION) = split m/\s+/, q<$Author$ $Revision$>;
# Yes, silly example, but still need to check it.
if ( ($VERSION) = q<$Revision$> =~ m/(\d+)/mx ) {}
===
--- dscr: Don't complain about '${}' and '@{}' because they're invalid syntax. See RT #38528/commit r3077 for original problem/solution.
--- failures: 0
--- params:
--- input
use Blah '${}' => \&scalar_deref;
t/Policy/Variables/require_localized_punctuation_vars.PL view on Meta::CPAN
--- input
@ARGV = (1, 2, 3);
===
--- dscr: Allow "my" as well, RT #33937
--- failures: 0
--- params:
--- input
for my $entry (
sort {
my @a = split m{,}xms, $a;
my @b = split m{,}xms, $b;
$a[0] cmp $b[0] || $a[1] <=> $b[1]
} qw( b,6 c,3 )
)
{
print;
}
END_CODE
return;
t/Policy/Variables/require_localized_punctuation_vars.t view on Meta::CPAN
--- input
@ARGV = (1, 2, 3);
===
--- dscr: Allow "my" as well, RT #33937
--- failures: 0
--- params:
--- input
for my $entry (
sort {
my @a = split m{,}xms, $a;
my @b = split m{,}xms, $b;
$a[0] cmp $b[0] || $a[1] <=> $b[1]
} qw( b,6 c,3 )
)
{
print;
}
( run in 0.496 second using v1.01-cache-2.11-cpan-71847e10f99 )