Flog Results
Flog measures code complexity.
<%= render_partial 'graph', {:graph_name => 'flog'} %>
Total Flog score for all methods: <%= round_to_tenths @flog[:total]%>
Average Flog score for all methods: <%= round_to_tenths @flog[:average]%>
File |
Total score |
Methods |
Average score |
Highest score |
<% @flog[:method_containers].each do |method_container| %>
<%= method_container[:path] %> |
<%= round_to_tenths method_container[:total_score] %> |
<%= method_container[:methods].size %> |
<%= round_to_tenths method_container[:average_score] %> |
<%= round_to_tenths method_container[:highest_score] %> |
<% end %>
<% @flog[:method_containers].each do |method_container| %>
<%= link_to_filename(method_container[:path]) %>
<% method_container[:methods].each do |full_method_name, method_info| %>
<% path, line = method_info[:path].split(":") if method_info[:path] %>
<%= link_to_filename(path, line, full_method_name) %>
Total Score: <%= round_to_tenths method_info[:score]%>
Score |
Operator |
<% method_info[:operators].each do |operator, score| %>
<%= round_to_tenths score %> |
<%= operator %> |
<% end %>
<% end %>
<% end %>
<%= render_partial 'report_footer' %>