moznion / Perl-Lint

Yet Another Perl Source Code Linter
https://metacpan.org/pod/Perl::Lint
Other
95 stars 12 forks source link

Can't lint empty regexp literal #49

Closed syohex closed 10 years ago

syohex commented 10 years ago
# test.pl
m//;

I got

% perl -MPerl::Lint=lint -wle 'lint([shift])' test.pl
no regex defined at /home/syohei/.plenv/versions/5.20.0/lib/perl5/site_perl/5.20.0/Perl/Lint/Policy/RegularExpressions/ProhibitFixedStringMatches.pm line 59.
moznion commented 10 years ago

Fixed :beer: