Subject: | False positive for ValuesAndExpressions::ProhibitMixedBooleanOperators |
Hi,
I'm running Perl::Critic 1.05 and encountered a possible false positive
for ValuesAndExpressions::ProhibitMixedBooleanOperators.
Checking the code:
package main;
# pragmata
use strict;
use warnings;
use 5.008;
# Modules from CPAN
use Test::More tests => 1;
ok( ! 1, 'values are URLs' ) or diag 'never happens';
1;
with
perlcritic -severity 4 high_low.pl
gives me:
Mixed high and low-precedence booleans at line 11, column 1. See page
70 of PBP. (Severity: 4)
I would have thought that the '! 1' and the 'or' are two seperate
expressions.
Best regards,
Bernhard