Sha256: 275a319484155c87027cea660473a9f7f6f3de6f813228c8de18da6df2905ffa

Contents?: true

Size: 1.49 KB

Versions: 42

Compression:

Stored size: 1.49 KB

Contents

<html>
<head>
	<title>Flog Reporter</title>
	<style>
	<%= inline_css("default.css") %>	
	</style>
</head>
<body>
	<h1>Flog Results</h1>
  <a href="index.html">back to menu</a>
	<p><a href='http://ruby.sadi.st/Flog.html'>Flog</a> measures code complexity.</p>
	<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]+/, '_') %>"><%= page[:path] %></h2>
      <% page[:scanned_methods].each do |sm| %>
        <p><%= sm[:name] %></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>	
</body>
</html>

Version data entries

42 entries across 42 versions & 17 rubygems

Version Path
IPGlider-metric_fu-1.1.5.1.1 lib/templates/standard/flog.html.erb
IPGlider-metric_fu-1.1.5.1 lib/templates/standard/flog.html.erb
cayblood-metric_fu-1.1.6 lib/templates/standard/flog.html.erb
edouard-metric_fu-1.0.2 lib/templates/standard/flog.html.erb
edouard-metric_fu-1.1.1 lib/templates/standard/flog.html.erb
gforces-metric_fu-1.1.4 lib/templates/standard/flog.html.erb
iain-metric_fu-0.1.0 lib/templates/standard/flog.html.erb
iain-metric_fu-0.1.1 lib/templates/standard/flog.html.erb
iain-metric_fu-0.1.2 lib/templates/standard/flog.html.erb
jscruggs-metric_fu-1.1.0 lib/templates/standard/flog.html.erb
jscruggs-metric_fu-1.1.1 lib/templates/standard/flog.html.erb
jscruggs-metric_fu-1.1.2 lib/templates/standard/flog.html.erb
jscruggs-metric_fu-1.1.3 lib/templates/standard/flog.html.erb
jscruggs-metric_fu-1.1.4 lib/templates/standard/flog.html.erb
jscruggs-metric_fu-1.1.5 lib/templates/standard/flog.html.erb
kjeldahl-metric_fu-1.1.5.1 lib/templates/standard/flog.html.erb
kjeldahl-metric_fu-1.1.5.2 lib/templates/standard/flog.html.erb
kjeldahl-metric_fu-1.1.5.3 lib/templates/standard/flog.html.erb
kjeldahl-metric_fu-1.1.5.4 lib/templates/standard/flog.html.erb
kjeldahl-metric_fu-1.1.5 lib/templates/standard/flog.html.erb