Subject: | ValuesAndExpressions::ProhibitCommaSeparatedStatements false positive |
I see that #27654 is fixed, but this is another false positive for the
same policy:
#!/usr/bin/perl
use warnings;
use strict;
use 5.010;
sub foo {}
foo { 0 => 1, 1 => 2 };
% perlcritic --verbose "%f:%l:%c:%m [%p] (%e)\n" -3 test
test:6:7:Comma used to separate statements
[ValuesAndExpressions::ProhibitCommaSeparatedStatements] (See pages
68,71 of PBP)
This is a fairly minimal test case and has an unusual-looking anonymous
hash which not everybody would write in real code, but there are other
more normal-looking examples.