Sha256: 759d7a920f4e658f3f63251de45dc3fd682d5efc001066f6b7753b195f3bf2dd

Contents?: true

Size: 1.36 KB

Versions: 20

Compression:

Stored size: 1.36 KB

Contents

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

<img src="flog.png?<%= Time.now %>">

<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

20 entries across 20 versions & 10 rubygems

Version Path
IPGlider-metric_fu-1.1.5.1.1 lib/templates/awesome/flog.html.erb
IPGlider-metric_fu-1.1.5.1 lib/templates/awesome/flog.html.erb
gforces-metric_fu-1.1.4 lib/templates/awesome/flog.html.erb
jscruggs-metric_fu-1.1.2 lib/templates/awesome/flog.html.erb
jscruggs-metric_fu-1.1.3 lib/templates/awesome/flog.html.erb
jscruggs-metric_fu-1.1.4 lib/templates/awesome/flog.html.erb
jscruggs-metric_fu-1.1.5 lib/templates/awesome/flog.html.erb
kjeldahl-metric_fu-1.1.5.1 lib/templates/awesome/flog.html.erb
kjeldahl-metric_fu-1.1.5 lib/templates/awesome/flog.html.erb
mattvanhorn-metric_fu-1.1.5.1 lib/templates/awesome/flog.html.erb
mattvanhorn-metric_fu-1.1.5.2 lib/templates/awesome/flog.html.erb
mtdewboy-metric_fu-1.1.5.1 lib/templates/awesome/flog.html.erb
mwilden-metric_fu-1.1.3 lib/templates/awesome/flog.html.erb
mwilden-metric_fu-1.1.5 lib/templates/awesome/flog.html.erb
pjstadig-metric_fu-1.1.4.2 lib/templates/awesome/flog.html.erb
revo-metric_fu-1.1.5 lib/templates/awesome/flog.html.erb
metric_fu-1.1.6 lib/templates/awesome/flog.html.erb
metric_fu-1.1.5 lib/templates/awesome/flog.html.erb
pjstadig-metric_fu-1.1.5.1 lib/templates/awesome/flog.html.erb
mwilden-metric_fu-1.1.5.1 lib/templates/awesome/flog.html.erb