line |
true |
false |
branch |
244
|
2 |
63 |
if (%selected) { }
|
|
63 |
0 |
elsif (my $mode = $self->mode) { }
|
246
|
1 |
1 |
if @unknown
|
261
|
2 |
77 |
if (my $only_modes = $conf->{'only_modes'})
|
262
|
1 |
1 |
unless (" " . $only_modes . " ") =~ / $mode /
|
264
|
0 |
78 |
if (my $except_modes = $conf->{'except_modes'})
|
265
|
0 |
0 |
if (" " . $except_modes . " ") =~ / $mode /
|
278
|
0 |
9 |
unless $a->weight <=> $b->weight
|
291
|
55 |
24 |
$plugin_fname =~ /^\+/ ? :
|
297
|
0 |
78 |
unless &use_module($plugin_class)
|
315
|
1 |
68 |
if (my(@bad_params) = grep({not $self->can($_);} keys %$params))
|
319
|
1 |
0 |
@bad_params > 1 ? :
|
324
|
64 |
4 |
unless ($self->no_backups)
|
336
|
41 |
23 |
if (time > $last_purge_backups + $self->_backup_ttl_secs)
|
344
|
4 |
37 |
if $self->verbose
|
349
|
0 |
0 |
if -f $_ and /\.bak$/ and time > (stat $_)[9] + $self->_backup_ttl_secs
|
362
|
0 |
3 |
unless $conf_file->is_file
|
375
|
0 |
3 |
if (my $tidyall_class = delete $params{'tidyall_class'})
|
376
|
0 |
0 |
if $conf_params->{'inc'}
|
377
|
0 |
0 |
unless &use_module($tidyall_class)
|
381
|
0 |
3 |
if ($params{'verbose'})
|
398
|
0 |
3 |
unless ref $conf_hash eq "HASH"
|
415
|
0 |
0 |
unless ref $p
|
417
|
0 |
0 |
if (ref $p eq 'HASH') { }
|
|
0 |
0 |
elsif (ref $p eq 'ARRAY') { }
|
421
|
0 |
0 |
if (&blessed($v)) { }
|
|
0 |
0 |
elsif (ref $v =~ /^(?:HASH|ARRAY)$/) { }
|
422
|
0 |
0 |
if ($v->isa('Path::Tiny')) { }
|
441
|
0 |
0 |
if (&blessed($v)) { }
|
|
0 |
0 |
elsif (ref $v =~ /^(?:HASH|ARRAY)$/) { }
|
442
|
0 |
0 |
if ($v->isa('Path::Tiny')) { }
|
473
|
1 |
83 |
unless &try(sub {
|
477
|
5 |
58 |
if ($self->jobs > 1 and @paths > 1) { }
|
488
|
0 |
5 |
unless (eval {
|
501
|
0 |
6 |
if ($code) { }
|
511
|
10 |
4 |
if (my $pid = $pm->start)
|
527
|
2 |
66 |
if ($path->is_dir) { }
|
|
65 |
1 |
elsif ($path->is_file) { }
|
528
|
1 |
1 |
if ($self->recursive) { }
|
547
|
0 |
67 |
unless $full_path->is_file
|
551
|
0 |
66 |
if ($self->list_only)
|
552
|
0 |
0 |
if (my(@plugins) = $self->plugins_for_path($path))
|
559
|
0 |
66 |
if ($self->refresh_cache) { }
|
|
4 |
62 |
elsif ($cache_model->is_cached) { }
|
563
|
0 |
4 |
if $self->verbose
|
570
|
40 |
22 |
if ($result->state eq "tidied")
|
583
|
40 |
0 |
unless $self->output_suffix
|
586
|
53 |
9 |
if $result->ok
|
592
|
1 |
66 |
unless index($path, $self->root_dir) == 0
|
607
|
16 |
50 |
$self->no_cache ? :
|
617
|
32 |
8 |
unless ($self->no_backups)
|
635
|
0 |
83 |
unless defined $contents and defined $path
|
638
|
1 |
82 |
unless (@plugins)
|
639
|
0 |
0 |
$self->mode ? :
|
|
0 |
1 |
if $self->verbose
|
646
|
4 |
78 |
if ($self->verbose)
|
661
|
1 |
265 |
if ($diff)
|
670
|
0 |
13 |
if $plugin
|
674
|
4 |
78 |
if ($was_tidied and $self->check_only)
|
680
|
1 |
3 |
if @diffs
|
684
|
66 |
16 |
if (not $self->quiet or $error)
|
685
|
37 |
29 |
$was_tidied ? :
|
687
|
4 |
62 |
$self->verbose ? :
|
691
|
17 |
65 |
if ($error) { }
|
|
46 |
19 |
elsif ($was_tidied) { }
|
710
|
17 |
2 |
defined $orig_contents && length $orig_contents ? :
|
|
17 |
2 |
defined $new_contents && length $new_contents ? :
|
735
|
0 |
0 |
unless (defined $conf_file)
|
736
|
0 |
0 |
$path1 eq $path2 ? :
|
752
|
0 |
0 |
if $try_path->is_file
|
756
|
0 |
0 |
if $parent eq $search_dir
|
759
|
0 |
0 |
if ++$cnt > 100
|
793
|
0 |
29 |
unless $self->ignores
|
|
0 |
29 |
unless $plugin->ignores
|
795
|
63 |
3 |
if -f $_ and -s $_
|
797
|
28 |
1 |
unless my $shebang = $plugin->shebang
|
804
|
0 |
6 |
unless open $fh, "<", $_
|