Hotspot Results

Meta analysis of your metrics to find hotspots in your code.


<% if !@hotspots || @hotspots.size == 0 %> No Hotspots were found. <% elsif @hotspots && @hotspots.size > 0 %> <% granularities = [:files, :classes, :methods] %> <% granularities.each do |granularity| %> <% end %> <% items = [] %> <% granularities.each_index do |index| %> <% granularity = granularities[index] %> <% items << @hotspots[granularity] %> <% end %> <% items_length = 0 %> <% columns = [0, 1, 2] %> <% while (items_length < items[0].length || items_length < items[1].length || items_length < items[2].length) do %> <% columns.each do |column| %> <% item = items[column].length >= items_length ? items[column][items_length] : nil %> <% if item %> <% else %> <% end %> <% end %> <% items_length += 1 %> <% end %>
<%= granularity.to_s.capitalize %>
<%= display_location(item[:location], nil) %>

<% item[:details].each do |metric, info| %> <%#= metric_link(@stat, metric, h(metric.to_s.capitalize)) + ": " + h(info)%>
<%= "#{metric.to_s.capitalize}: #{info}" %>
<% end %>
 
<% end %>

Generated on <%= Time.now.localtime %>