To reproduce, create a perl script that chokes perlcritic (e.g. use an unquoted non-ASCII key name in a hash):
#!/usr/bin/perl
use utf8;
my $foo = { fó => 3 };
perlcritic will choke:
$ perlcritic x.pl
Problem while critiquing "x.pl": Can't parse code: Fatal error... regex failed to match in 'ó => 3 };
' when expected at /usr/share/perl5/PPI/Token/Word.pm line 217.
And when critique comes across such an error, it doesn't recover:
Running Perl::Critic against ([path hidden])
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Can't parse code: Fatal error... regex failed to match in 'ú}->{mappings}}), 2;
' when expected at /usr/share/perl5/PPI/Token/Word.pm line 217.
If perl critic crashes, critique doesn't recover.
To reproduce, create a perl script that chokes perlcritic (e.g. use an unquoted non-ASCII key name in a hash):
perlcritic will choke:
And when critique comes across such an error, it doesn't recover: