in reply to Request for Perl::Critic Testimonials
They look very funny when they both refer to the line like this:Regular expression without '/m' flag Regular expression without '/x' flag
I think you can set a length limit for the regular expressions to receive a warning about /x flag. Maybe, regexes shorter than e.g. 7 characters do not need /x flag? Or even better—remove warnings for regexes containing less than 5 metacharacters, e.g. /(foo|bar)/? The regexes containing only ONE interpolated variable (like the one mentioned below) must not cause them, too.next if /^;/; #skip comments
The warning about /m simply looks weird for me though I can understand why do you use it. But it must not appear to the lines like
$string =~ /$re/;
causes two warnings:local $" = '|';
Variable declared as 'local' Magic punctuation variable used
while it must cause only the second warning! To use or not to use the punctuation variables is some kind of personal style, but not local'izing them is a severe error!
A little tip about the web-interface: You could add a possibility for the user to re-sort your warnings list by severity or by categories. The list would also look much better if it was represented by a table rather than by a simple linklist :)
Despite all my remarks you have done a great work ad i hope that my comments will help you to improve it :)Sorry for my bad English—it's not my native language :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Request for Perl::Critic Testimonials (some weirdnesses of the module)
by Herkum (Parson) on Jul 15, 2006 at 20:14 UTC | |
by chromatic (Archbishop) on Jul 15, 2006 at 20:59 UTC | |
by Ieronim (Friar) on Jul 15, 2006 at 21:01 UTC |