%# TODO: Clean up the messy markup and style definitions. %>
RuboCop Inspection Report
<%= pluralize(files.count, 'file') %> inspected, <%= pluralize(summary.offense_count, 'offense', no_for_zero: true) %> detected
<% files.each do |file| %> <% if file.offenses.any? %>
<%= relative_path(file.path) %> - <%= pluralize(file.offenses.count, 'offense') %>
<% file.offenses.each do |offense| %>
Line #<%= offense.location.line %>
–
<%= offense.severity %>:
<%= decorated_message(offense) %>
<% unless offense.location.source_line.strip.empty? %>
<%= highlighted_source_line(offense) %>
<% end %>
<% end %>
<% end %> <% end %>