File tree Expand file tree Collapse file tree
templates/ContentGenerator/Instructor/PGProblemEditor Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22%
33<div class="m-3 overflow-auto">
44 <h2><%= maketext('PG Critic Violations') %></h2>
5- % my @pgCriticViolations = grep { $_->policy =~ /^Perl::Critic::Policy::PG::/ } @$violations;
5+ % my @pgCriticViolations = grep { $_->policy =~ /^Perl::Critic::Policy::PG::/ } @$violations;
6+ % my @perlCriticViolations = grep { $_->policy !~ /^Perl::Critic::Policy::PG::/ } @$violations;
7+ % unless (@pgCriticViolations || @perlCriticViolations) {
8+ <p><%= maketext('Congratulations! No PG critic violations found.') %></p>
9+ % }
610 % if (@pgCriticViolations) {
711 <h3 class="mt-2"><%= maketext('The following PG issues should be fixed:') %></h3>
812 <ul class="list-group">
3539 </li>
3640 % }
3741 </ul>
38- %}
39- % my @perlCriticViolations = grep { $_->policy !~ /^Perl::Critic::Policy::PG::/ } @$violations;
42+ % }
4043 % if (@perlCriticViolations) {
4144 <h3 class="mt-2"><%= maketext('The following general Perl issues should be fixed:') %></h3>
4245 <ul class="list-group">
5255 </li>
5356 % }
5457 </ul>
55- %}
58+ % }
5659</div>
You can’t perform that action at this time.
0 commit comments