blib/lib/Perl/Critic/Policy/Freenode/ConditionalImplicitReturn.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 12 | 17 | 70.5 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
34 | 129 | 10 | 8 | $child->isa('PPI::Token::Word') and $child eq 'return' |
39 | 0 | 1 | 4 | $returns and &any(sub { |
42 | 0 | 1 | 3 | $last and $last->isa('PPI::Statement::Compound') |
1 | 0 | 3 | $last and $last->isa('PPI::Statement::Compound') and $last->schildren | |
1 | 0 | 3 | $last and $last->isa('PPI::Statement::Compound') and $last->schildren and exists $conditionals{$last->schild(0)} |
line | l | !l | condition |
---|---|---|---|
27 | 5 | 0 | $elem->block || (return ()) |