From: | CARNIL [...] cpan.org |
Subject: | libperl-critic-perl: Mixed bool operators false positive on postfix control |
Hi
This bug has been forwarded from http://bugs.debian.org/697921 and
reported by Guillem Jover <guillem@debian.org>:
----cut---------cut---------cut---------cut---------cut---------cut-----
Package: libperl-critic-perl
Version: 1.118-1
Severity: normal
Tags: upstream
Hi!
Here's what seems like a false positive that I found while going over
the dpkg code:
,--- mixed-bool.pl
#!/usr/bin/perl
use strict;
use warnings;
our $VERSION = '0.0';
my $value = 0;
$value ||= 1 if 1 and 1;
1;
`---
Reproducible with:
$ perlcritic -s ProhibitMixedBooleanOperators mixed-bool.pl
Thanks,
Guillem
----cut---------cut---------cut---------cut---------cut---------cut-----
Thanks in advance,
Salvatore Bonaccorso, Debian Perl Group