Bug#697921: libtest-critic-perl: Mixed bool operators false positive on postfix control

Guillem Jover guillem at debian.org
Fri Jan 11 12:00:42 UTC 2013


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



More information about the pkg-perl-maintainers mailing list