| blib/lib/Perl/Critic/Policy/ValuesAndExpressions/ProhibitNullStatements.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 22 | 28 | 78.5 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 46 | 15 | 2 | 2 | $self->{'_allow_perl4_semihash'} and _is_perl4_semihash($elem) |
| 106 | 92 | 37 | 6 | $elem->content eq ';' and Perl::Critic::Policy::CodeLayout::RequireFinalSemicolon::_elem_is_try_block($elem->parent) |
| 124 | 0 | 0 | 9 | $elem->isa('PPI::Token::Word') and $is_try_catch_keyword{$elem->content} |
| 153 | 7 | 7 | 11 | $prev and $prev->isa('PPI::Token::Whitespace') || $prev->isa('PPI::Token::Comment') |
| 196 | 0 | 1 | 2 | $next && $next->isa('PPI::Token::Comment') |
| line | l | !l | condition |
|---|---|---|---|
| 120 | 11 | 4 | $elem->sprevious_sibling || (return 1) |
| 123 | 9 | 0 | $elem->sprevious_sibling || (return 0) |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 68 | 2 | 0 | 15 | $parent->isa('PPI::Structure::For') or $parent->isa('PPI::Structure::ForLoop') |
| 153 | 12 | 3 | 3 | $prev->isa('PPI::Token::Whitespace') || $prev->isa('PPI::Token::Comment') |
| 166 | 6 | 1 | 0 | $content eq 'map' || $content eq 'grep' |