Skip to content

Commit

Permalink
Update perltidy config
Browse files Browse the repository at this point in the history
  • Loading branch information
pjcj committed Dec 25, 2024
1 parent 2e832e5 commit e863d3a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .perltidyrc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
# --comma-arrow-breakpoints=3 # commas after => aren't special
# we only want this sometimes
--break-after-labels=2 # never break after labels
--valign-if-unless # vertically align if and unless
# --valign-if-unless # vertically align if and unless
# doesn't really help

--delete-repeated-commas # delete repeated commas
--want-trailing-commas="w(h W(m [m {m" # trailing commas for arrays and hashes
Expand Down
6 changes: 3 additions & 3 deletions lib/Devel/Cover/Collection.pm
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ sub generate_html ($self) {
my $n = 0;
for my $module (@modules) {
my $cover = "$d/$module/cover.json";
next unless -e $cover;
next unless -e $cover;
say "Adding $module" if $self->verbose;

my $io = Devel::Cover::DB::IO::JSON->new;
Expand Down Expand Up @@ -468,10 +468,10 @@ sub cover_modules ($self) {
if ($self->is_covered($dir)) {
$self->set_covered($dir);
say "$module already covered" if $self->verbose;
return unless $self->force;
return unless $self->force;
} elsif ($self->is_failed($dir)) {
say "$module already failed" if $self->verbose;
return unless $self->force;
return unless $self->force;
}

my $timeout = $self->get_timeout;
Expand Down

0 comments on commit e863d3a

Please sign in to comment.