- Package:
- libperl-critic-perl
- Source:
- libperl-critic-perl
- Submitter:
- Guillem Jover
- Date:
- 2022-06-26 18:24:04 UTC
- Severity:
- normal
- Tags:
Hi!
Here's what seems like a false positive that I found while going over
the dpkg code:
,--- scalarref-comma.pl
#!/usr/bin/perl
use strict;
use warnings;
our $VERSION = '0.0';
my $scalarref = \{
'name' => [],
};
1;
`---
Reproducible with:
$ perlcritic -s ProhibitCommaSeparatedStatements scalarref-comma.pl
If the single quotes around 'name' are removed, then it does not seem
to trigger.
Thanks,
Guillem
Hi Guillem Thanks, also this issue forwarded to upstream. Regards, Salvatore
According to the upstream ticket¹, this is now working since version 1.121-1, so closing.