Skip to content

Commit fa0f8b9

Browse files
jbamptonnunosilva800
authored andcommitted
Fix HTML report when "--suppress-ratings" is used on the Code page.
1 parent 299ea73 commit fa0f8b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/rubycritic/generators/html/templates/code_index.html.erb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
<tbody>
2222
<% @analysed_modules.each do |analysed_module| %>
2323
<tr>
24-
<td>
25-
<% unless Config.suppress_ratings %>
24+
<% unless Config.suppress_ratings %>
25+
<td>
2626
<% if Config.build_mode? %>
2727
<% master_analysed_module = Config.base_branch_collection.find(analysed_module.pathname) %>
2828
<% if master_analysed_module.cost > analysed_module.cost %>
@@ -34,8 +34,8 @@
3434
<% end %>
3535
<% end %>
3636
<div class="rating <%= analysed_module.rating.to_s.downcase %>"><%= analysed_module.rating %></div>
37-
<% end %>
38-
</td>
37+
</td>
38+
<% end %>
3939
<td>
4040
<ul class="nav nav-pills">
4141
<li role="presentation" >

0 commit comments

Comments
 (0)