Sha256: 2948ddabfb06f685041d9fc7cab9cb338ef0699f21ca34d5d99a577d34a34249

Contents?: true

Size: 1.61 KB

Versions: 8

Compression:

Stored size: 1.61 KB

Contents

<h3>Flog Results</h3>
<p><a href='http://ruby.sadi.st/Flog.html'>Flog</a> measures code complexity.</p>

<% graph_name = 'flog' %>
<% if MetricFu.configuration.graph_engine == :gchart %>
<img src="<%= graph_name %>.png?<%= Time.now.to_i %>" />
<% else %>
<canvas id="graph"></canvas>
<script language="javascript" src="<%= graph_name %>.js?<%= Time.now.to_i %>" type="text/javascript"></script>
<% end %>

<h2>Total Flog score for all methods: <%= @flog[:total]%></h2>
<h2>Average Flog score for all methods: <%= @flog[:average]%></h2>

<table>
  <tr>
    <th>File</th>
    <th>Total score</th>
    <th>Methods</th>
    <th>Average score</th>
    <th>Highest score</th>
  </tr>
    <% @flog[:pages].each do |page| %>
    <tr>
      <td><a href="#<%= page[:path].gsub(/[^a-z]+/, '_') %>"><%= page[:path] %></a></td>
      <td><%= page[:score].round %></td>
      <td><%= page[:scanned_methods].length %></td>
      <td><%= page[:average_score].round %></td>
      <td><%= page[:highest_score].round %></td>
    </tr>
  <% end %>
</table>

<% @flog[:pages].each do |page| %>
  <h2 id="<%= page[:path].gsub(/[^a-z]+/, '_') %>"><%= link_to_filename page[:path] %></h2>
    <% page[:scanned_methods].each do |sm| %>
      <p><%= sm[:name] %></p>
      <p>Total Score: <%=sm[:score]%></p>
      <table>
        <tr>
          <th>Score</th>
          <th>Operator</th>
        </tr>
        <% sm[:operators].each do |operator| %>
          <tr>
            <td><%= operator[:score] %></td>
            <td><%= operator[:operator] %></td>
          </tr>
        <% end %>
      </table>
    <% end %>
<% end %>
<p>Generated on <%= Time.now.localtime %></p>	

Version data entries

8 entries across 8 versions & 6 rubygems

Version Path
cayblood-metric_fu-1.1.6 lib/templates/awesome/flog.html.erb
devver-metric_fu-1.3.3 lib/templates/awesome/flog.html.erb
nielsm-metric_fu-1.3.1 lib/templates/awesome/flog.html.erb
metric_fu-1.3.0 lib/templates/awesome/flog.html.erb
edouard-metric_fu-1.2.1 lib/templates/awesome/flog.html.erb
edouard-metric_fu-1.2.0 lib/templates/awesome/flog.html.erb
metric_fu-1.2.0 lib/templates/awesome/flog.html.erb
flyerhzm-metric_fu-1.0.0 lib/templates/awesome/flog.html.erb