Sha256: 53226f2757c855437875f9dd428c12d6ef8c81179722551157d1801458b78cd2

Contents?: true

Size: 1.04 KB

Versions: 11

Compression:

Stored size: 1.04 KB

Contents

<h3>Flay Results</h3>

<p><a href='http://ruby.sadi.st/Flay.html'>Flay</a> analyzes ruby code for structural similarities.</p>

<% graph_name = 'flay' %>
<% 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 %>

<h4>Total Score (lower is better): <%= @flay[:total_score] %></h4>
<h5>Scores less than <%= MetricFu.flay[:minimum_score] %> are not shown or part of the total</h5>

<table>
  <tr>
    <th>Files</th>
    <th>Matches</th>		  
  </tr>
  <% count = 0 %>
  <% @flay[:matches].each do |match| %>
    <tr class='<%= cycle("light", "dark", count) %>'>
      <td>
        <% match[:matches].each do |file| %>
          <%= link_to_filename(file[:name], file[:line]) %><br/>
        <% end %>
      </td>
      <td><%= match[:reason] %></td>
    </tr>
    <% count += 1 %>
  <% end %>
</table>
<p>Generated on <%= Time.now.localtime %></p>	

Version data entries

11 entries across 11 versions & 6 rubygems

Version Path
goldstar-metric_fu-1.5.1.2 lib/templates/awesome/flay.html.erb
metric_fu-2.0.0 lib/templates/awesome/flay.html.erb
goldstar-metric_fu-1.5.1.1 lib/templates/awesome/flay.html.erb
metric_fu-1.5.1 lib/templates/awesome/flay.html.erb
metric_fu-1.5.0 lib/templates/awesome/flay.html.erb
metric_fu-1.4.0 lib/templates/awesome/flay.html.erb
cdd-metric_fu-1.3.1 lib/templates/awesome/flay.html.erb
devver-metric_fu-1.3.3 lib/templates/awesome/flay.html.erb
nielsm-metric_fu-1.3.1 lib/templates/awesome/flay.html.erb
metric_fu-1.3.0 lib/templates/awesome/flay.html.erb
edouard-metric_fu-1.2.1 lib/templates/awesome/flay.html.erb