| line |
true |
false |
branch |
|
244
|
2 |
78 |
if (%selected) { }
|
|
|
78 |
0 |
elsif (my $mode = $self->mode) { }
|
|
246
|
1 |
1 |
if @unknown
|
|
261
|
2 |
98 |
if (my $only_modes = $conf->{'only_modes'})
|
|
262
|
1 |
1 |
unless (' ' . $only_modes . ' ') =~ / $mode /
|
|
264
|
0 |
99 |
if (my $except_modes = $conf->{'except_modes'})
|
|
265
|
0 |
0 |
if (' ' . $except_modes . ' ') =~ / $mode /
|
|
278
|
0 |
9 |
unless $a->weight <=> $b->weight
|
|
291
|
76 |
24 |
$plugin_fname =~ /^\+/ ? :
|
|
297
|
0 |
99 |
unless &use_module($plugin_class)
|
|
315
|
1 |
83 |
if (my(@bad_params) = grep({not $self->can($_);} keys %$params))
|
|
319
|
1 |
0 |
@bad_params > 1 ? :
|
|
324
|
71 |
12 |
unless ($self->no_backups)
|
|
336
|
48 |
23 |
if (time > $last_purge_backups + $self->_backup_ttl_secs)
|
|
344
|
6 |
42 |
if $self->verbose
|
|
349
|
0 |
0 |
if -f $_ and /\.bak$/ and time > (stat $_)[9] + $self->_backup_ttl_secs
|
|
362
|
0 |
9 |
unless $conf_file->is_file
|
|
375
|
0 |
9 |
if (my $tidyall_class = delete $params{'tidyall_class'})
|
|
376
|
0 |
0 |
if $conf_params->{'inc'}
|
|
377
|
0 |
0 |
unless &use_module($tidyall_class)
|
|
381
|
2 |
7 |
if ($params{'verbose'})
|
|
398
|
0 |
9 |
unless ref $conf_hash eq "HASH"
|
|
419
|
0 |
2 |
unless ref $p
|
|
421
|
2 |
0 |
if (ref $p eq 'HASH') { }
|
|
|
0 |
0 |
elsif (ref $p eq 'ARRAY') { }
|
|
425
|
2 |
8 |
if (builtin::blessed($v)) { }
|
|
|
0 |
8 |
elsif (ref $v =~ /^(?:HASH|ARRAY)$/) { }
|
|
426
|
2 |
0 |
if ($v->isa('Path::Tiny')) { }
|
|
445
|
0 |
0 |
if (builtin::blessed($v)) { }
|
|
|
0 |
0 |
elsif (ref $v =~ /^(?:HASH|ARRAY)$/) { }
|
|
446
|
0 |
0 |
if ($v->isa('Path::Tiny')) { }
|
|
477
|
1 |
118 |
unless &try(sub {
|
|
481
|
5 |
93 |
if ($self->jobs > 1 and @paths > 1) { }
|
|
492
|
0 |
5 |
unless (eval {
|
|
505
|
0 |
5 |
if ($code) { }
|
|
515
|
10 |
4 |
if (my $pid = $pm->start)
|
|
531
|
2 |
101 |
if ($path->is_dir) { }
|
|
|
100 |
1 |
elsif ($path->is_file) { }
|
|
532
|
1 |
1 |
if ($self->recursive) { }
|
|
551
|
0 |
102 |
unless $full_path->is_file
|
|
555
|
0 |
101 |
if ($self->list_only)
|
|
556
|
0 |
0 |
if (my(@plugins) = $self->plugins_for_path($path))
|
|
563
|
0 |
101 |
if ($self->refresh_cache) { }
|
|
|
8 |
93 |
elsif ($cache_model->is_cached) { }
|
|
567
|
0 |
8 |
if $self->verbose
|
|
574
|
58 |
35 |
if ($result->state eq "tidied")
|
|
587
|
58 |
0 |
unless $self->output_suffix
|
|
590
|
83 |
10 |
if $result->ok
|
|
596
|
1 |
105 |
unless index($path, $self->root_dir) == 0
|
|
611
|
32 |
69 |
$self->no_cache ? :
|
|
621
|
42 |
16 |
unless ($self->no_backups)
|
|
639
|
0 |
118 |
unless defined $contents and defined $path
|
|
642
|
1 |
117 |
unless (@plugins)
|
|
643
|
0 |
0 |
$self->mode ? :
|
|
|
0 |
1 |
if $self->verbose
|
|
650
|
6 |
111 |
if ($self->verbose)
|
|
665
|
2 |
381 |
if ($diff)
|
|
674
|
0 |
15 |
if $plugin
|
|
678
|
5 |
112 |
if ($was_tidied and $self->check_only)
|
|
682
|
1 |
4 |
if ($ENV{'GITHUB_ACTIONS'})
|
|
690
|
2 |
3 |
if @diffs
|
|
694
|
99 |
18 |
if (not $self->quiet or $error)
|
|
695
|
55 |
44 |
$was_tidied ? :
|
|
697
|
6 |
93 |
$self->verbose ? :
|
|
701
|
20 |
97 |
if ($error) { }
|
|
|
66 |
31 |
elsif ($was_tidied) { }
|
|
720
|
20 |
2 |
defined $orig_contents && length $orig_contents ? :
|
|
|
20 |
2 |
defined $new_contents && length $new_contents ? :
|
|
745
|
0 |
6 |
unless (defined $conf_file)
|
|
746
|
0 |
0 |
$path1 eq $path2 ? :
|
|
762
|
6 |
7 |
if $try_path->is_file
|
|
766
|
0 |
2 |
if $parent eq $search_dir
|
|
769
|
0 |
2 |
if ++$cnt > 100
|
|
803
|
0 |
30 |
unless $self->ignores
|
|
|
0 |
30 |
unless $plugin->ignores
|
|
805
|
64 |
3 |
if -f $_ and -s $_
|
|
807
|
29 |
1 |
unless my $shebang = $plugin->shebang
|
|
814
|
0 |
6 |
unless open $fh, "<", $_
|