Debian Bug report logs - #697921
libperl-critic-perl: Mixed bool operators false positive on postfix control

version graph

Package: libperl-critic-perl; Maintainer for libperl-critic-perl is Debian Perl Group <[email protected]>; Source for libperl-critic-perl is src:libperl-critic-perl (PTS, buildd, popcon).

Reported by: Guillem Jover <[email protected]>

Date: Fri, 11 Jan 2013 12:15:01 UTC

Severity: normal

Tags: upstream

Found in version libperl-critic-perl/1.118-1

Forwarded to http://rt.cpan.org/Public/Bug/Display.html?id=82636

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Debian Perl Group <[email protected]>:
Bug#697921; Package libperl-critic-perl. (Fri, 11 Jan 2013 12:15:04 GMT) (full text, mbox, link).


Acknowledgement sent to Guillem Jover <[email protected]>:
New Bug report received and forwarded. Copy sent to Debian Perl Group <[email protected]>. (Fri, 11 Jan 2013 12:15:04 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Guillem Jover <[email protected]>
To: [email protected]
Subject: libtest-critic-perl: Mixed bool operators false positive on postfix control
Date: Fri, 11 Jan 2013 13:00:42 +0100
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



Changed Bug title to 'libperl-critic-perl: Mixed bool operators false positive on postfix control' from 'libtest-critic-perl: Mixed bool operators false positive on postfix control' Request was from Salvatore Bonaccorso <[email protected]> to [email protected]. (Fri, 11 Jan 2013 16:24:06 GMT) (full text, mbox, link).


Set Bug forwarded-to-address to 'http://rt.cpan.org/Public/Bug/Display.html?id=82636'. Request was from Salvatore Bonaccorso <[email protected]> to [email protected]. (Fri, 11 Jan 2013 16:33:03 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 12:23:52 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.