Subject: | ValuesAndExpressions::ProhibitEmptyCommas false positive |
echo 'my $x = [ { %defaults, a => "b"}, {} ]' | perlcritic --single
ValuesAndExpressions::ProhibitEmptyCommas
Empty comma operator at line 1, column 33. (no explanation). (Severity: 2)
and:
echo 'my $x = [ { 1, 2, a => "b"}, {} ]' | perlcritic --single
ValuesAndExpressions::ProhibitEmptyCommas
Empty comma operator at line 1, column 28. (no explanation). (Severity: 2)
and:
echo 'my $x = [ { 1, 2, a => "b"}, ]' | perlcritic --single
ValuesAndExpressions::ProhibitEmptyCommas
Empty comma operator at line 1, column 28. (no explanation). (Severity: 2)
but as expected:
echo 'my $x = [ { a => "b"}, ]' | perlcritic --single
ValuesAndExpressions::ProhibitEmptyCommas
source OK