Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
%
<div class="m-3 overflow-auto">
<h2><%= maketext('PG Critic Violations') %></h2>
% my @pgCriticViolations = grep { $_->policy =~ /^Perl::Critic::Policy::PG::/ } @$violations;
% my @pgCriticViolations = grep { $_->policy =~ /^Perl::Critic::Policy::PG::/ } @$violations;
% my @perlCriticViolations = grep { $_->policy !~ /^Perl::Critic::Policy::PG::/ } @$violations;
% unless (@pgCriticViolations || @perlCriticViolations) {
<p><%= maketext('Congratulations! No PG critic violations found.') %></p>
% }
% if (@pgCriticViolations) {
<h3 class="mt-2"><%= maketext('The following PG issues should be fixed:') %></h3>
<ul class="list-group">
Expand Down Expand Up @@ -35,8 +39,7 @@
</li>
% }
</ul>
%}
% my @perlCriticViolations = grep { $_->policy !~ /^Perl::Critic::Policy::PG::/ } @$violations;
% }
% if (@perlCriticViolations) {
<h3 class="mt-2"><%= maketext('The following general Perl issues should be fixed:') %></h3>
<ul class="list-group">
Expand All @@ -52,5 +55,5 @@
</li>
% }
</ul>
%}
% }
</div>