lib/rubycritic/report_generators/templates/code_index.html.erb in rubycritic-1.0.2 vs lib/rubycritic/report_generators/templates/code_index.html.erb in rubycritic-1.1.0
- old
+ new
@@ -8,19 +8,19 @@
<th class="numeric-cell">Smells</th>
<th class="centered-cell last-cell">Rating</th>
</tr>
</thead>
<tbody>
- <% @analysed_files.each do |analysed_file| %>
+ <% @analysed_modules.each do |analysed_module| %>
<tr>
<td class="first-cell">
- <a href="<%= file_path(analysed_file.pathname.sub_ext('.html')) %>"><%= analysed_file.name %></a>
+ <a href="<%= file_path(analysed_module.pathname.sub_ext('.html')) %>"><%= analysed_module.name %></a>
</td>
- <td class="numeric-cell"><%= analysed_file.churn %></td>
- <td class="numeric-cell"><%= analysed_file.complexity %></td>
- <td class="numeric-cell"><%= analysed_file.duplication %></td>
- <td class="numeric-cell"><%= analysed_file.smells.length %></td>
- <td class="centered-cell last-cell"><span class="rating-<%= analysed_file.rating.to_s.downcase %> circled-text circle"><%= analysed_file.rating %></span></td>
+ <td class="numeric-cell"><%= analysed_module.churn %></td>
+ <td class="numeric-cell"><%= analysed_module.complexity %></td>
+ <td class="numeric-cell"><%= analysed_module.duplication %></td>
+ <td class="numeric-cell"><%= analysed_module.smells.length %></td>
+ <td class="centered-cell last-cell"><span class="rating-<%= analysed_module.rating.to_s.downcase %> circled-text circle"><%= analysed_module.rating %></span></td>
</tr>
<% end %>
</tbody>
</table>