line |
true |
false |
branch |
244
|
2 |
64 |
if (%selected) { }
|
|
64 |
0 |
elsif (my $mode = $self->mode) { }
|
246
|
1 |
1 |
if @unknown
|
261
|
2 |
78 |
if (my $only_modes = $conf->{'only_modes'})
|
262
|
1 |
1 |
unless (" " . $only_modes . " ") =~ / $mode /
|
264
|
0 |
79 |
if (my $except_modes = $conf->{'except_modes'})
|
265
|
0 |
0 |
if (" " . $except_modes . " ") =~ / $mode /
|
278
|
0 |
11 |
unless $a->weight <=> $b->weight
|
291
|
56 |
24 |
$plugin_fname =~ /^\+/ ? :
|
297
|
0 |
79 |
unless &use_module($plugin_class)
|
315
|
1 |
69 |
if (my(@bad_params) = grep({not $self->can($_);} keys %$params))
|
319
|
1 |
0 |
@bad_params > 1 ? :
|
324
|
65 |
4 |
unless ($self->no_backups)
|
336
|
42 |
23 |
if (time > $last_purge_backups + $self->_backup_ttl_secs)
|
344
|
4 |
38 |
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 |
84 |
unless &try(sub {
|
477
|
5 |
59 |
if ($self->jobs > 1 and @paths > 1) { }
|
488
|
0 |
5 |
unless (eval {
|
501
|
0 |
5 |
if ($code) { }
|
511
|
10 |
4 |
if (my $pid = $pm->start)
|
527
|
2 |
67 |
if ($path->is_dir) { }
|
|
66 |
1 |
elsif ($path->is_file) { }
|
528
|
1 |
1 |
if ($self->recursive) { }
|
547
|
0 |
68 |
unless $full_path->is_file
|
551
|
0 |
67 |
if ($self->list_only)
|
552
|
0 |
0 |
if (my(@plugins) = $self->plugins_for_path($path))
|
559
|
0 |
67 |
if ($self->refresh_cache) { }
|
|
4 |
63 |
elsif ($cache_model->is_cached) { }
|
563
|
0 |
4 |
if $self->verbose
|
570
|
40 |
23 |
if ($result->state eq "tidied")
|
583
|
40 |
0 |
unless $self->output_suffix
|
586
|
53 |
10 |
if $result->ok
|
592
|
1 |
67 |
unless index($path, $self->root_dir) == 0
|
607
|
16 |
51 |
$self->no_cache ? :
|
617
|
32 |
8 |
unless ($self->no_backups)
|
635
|
0 |
84 |
unless defined $contents and defined $path
|
638
|
1 |
83 |
unless (@plugins)
|
639
|
0 |
0 |
$self->mode ? :
|
|
0 |
1 |
if $self->verbose
|
646
|
4 |
79 |
if ($self->verbose)
|
661
|
2 |
267 |
if ($diff)
|
670
|
0 |
13 |
if $plugin
|
674
|
5 |
78 |
if ($was_tidied and $self->check_only)
|
678
|
1 |
4 |
if ($ENV{'GITHUB_ACTIONS'})
|
686
|
2 |
3 |
if @diffs
|
690
|
67 |
16 |
if (not $self->quiet or $error)
|
691
|
37 |
30 |
$was_tidied ? :
|
693
|
4 |
63 |
$self->verbose ? :
|
697
|
18 |
65 |
if ($error) { }
|
|
46 |
19 |
elsif ($was_tidied) { }
|
716
|
18 |
2 |
defined $orig_contents && length $orig_contents ? :
|
|
18 |
2 |
defined $new_contents && length $new_contents ? :
|
741
|
0 |
0 |
unless (defined $conf_file)
|
742
|
0 |
0 |
$path1 eq $path2 ? :
|
758
|
0 |
0 |
if $try_path->is_file
|
762
|
0 |
0 |
if $parent eq $search_dir
|
765
|
0 |
0 |
if ++$cnt > 100
|
799
|
0 |
30 |
unless $self->ignores
|
|
0 |
30 |
unless $plugin->ignores
|
801
|
64 |
3 |
if -f $_ and -s $_
|
803
|
29 |
1 |
unless my $shebang = $plugin->shebang
|
810
|
0 |
6 |
unless open $fh, "<", $_
|