Cane Results

back to menu

Total Violations: <%= @cane[:total_violations] %>

Cane reports code quality threshold violations.

<% graph_name = 'cane' %> <% if MetricFu.configuration.graph_engine == :gchart %> <% else %> <% end %> <% if @cane[:violations][:abc_complexity] && @cane[:violations][:abc_complexity].size > 0 %>

Methods exceeding allowed Abc complexity (<%= @cane[:violations][:abc_complexity].size %>)

<% count = 0 %> <% @cane[:violations][:abc_complexity].each do |violation| %> <% count += 1 %> <% end %>
File Method Complexity
<%=violation[:file]%> <%=violation[:method]%> <%=violation[:complexity]%>
<% end %> <% if @cane[:violations][:line_style] && @cane[:violations][:line_style].size > 0 %>

Lines violating style requirements (<%= @cane[:violations][:line_style].size %>)

<% count = 0 %> <% @cane[:violations][:line_style].each do |violation| %> <% count += 1 %> <% end %>
File Description
<%=violation[:line]%> <%=violation[:description]%>
<% end %> <% if @cane[:violations][:documentation] && @cane[:violations][:documentation].size > 0 %>

Missing documentation (<%= @cane[:violations][:documentation].size %>)

<% @cane[:violations][:documentation].each do |violation| %> <% end %>
Description
<%=violation[:description]%>
<% end %> <% if @cane[:violations][:comment] && @cane[:violations][:comment].size > 0 %>

Class definitions requiring comments (<%= @cane[:violations][:comment].size %>)

<% count = 0 %> <% @cane[:violations][:comment].each do |violation| %> <% count += 1 %> <% end %>
File Class
<%=violation[:line]%> <%=violation[:class_name]%>
<% end %> <% if @cane[:violations][:others] && @cane[:violations][:others].size > 0 %>

Others (<%= @cane[:violations][:others].size %>)

<% @cane[:violations][:others].each do |violation| %> <% end %>
Description
<%=violation[:description]%>
<% end %>

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