Subject: | suggest perlcritic continue after parse error in one file |
Date: | Tue, 03 Jun 2008 09:41:55 +1000 |
To: | bug-perl-critic [...] rt.cpan.org |
From: | Kevin Ryde <user42 [...] zip.com.au> |
If PPI throws a parse error for a file, it seems the perlcritic
front-end program stops at that point. It'd be good if it would
continue on with further files given on the command line (or recursing
through a tree).
You can get a sample parse error from current ppi with a nul, ie. \0
byte in a file; so with such a file "perlcritic nul.pl foo.pl" shows the
problem.
Perhaps perlcritic should bail out on exceptions related to its own
critiquing code, but an error, like a parse, related only to the one
file needn't prevent others being checked.