blib/lib/Perl/Critic/Policy/Freenode/ConditionalImplicitReturn.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 12 | 14 | 85.7 |
line | true | false | branch |
---|---|---|---|
31 | 7 | 140 | if ($child->isa('PPI::Structure::Block')) |
32 | 0 | 7 | unless is_structural_block($child) |
34 | 8 | 139 | if $child->isa('PPI::Token::Word') and $child eq 'return' |
39 | 4 | 1 | if ($returns and &any(sub { |
42 | 3 | 0 | if ($last and $last->isa('PPI::Statement::Compound') and $last->schildren and exists $conditionals{$last->schild(0)}) |
45 | 5 | 8 | if $_->isa('PPI::Token::Word') |
2 | 1 | unless (&any(sub { |