Sha256: 2fdd610549924ed9e8f4b93f16b0cf7e87c8864a6daec3b07e48740af5660a67

Contents?: true

Size: 1.35 KB

Versions: 18

Compression:

Stored size: 1.35 KB

Contents

<html>
<head>
	<title>Flog Reporter</title>
	<style>
	<%= inline_css("default.css") %>	
	</style>
</head>
<body>
	<h1>Flog Results</h1>
	<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><%= page[:path] %></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><%= 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

18 entries across 18 versions & 4 rubygems

Version Path
alexrothenberg-metric_fu-1.0.2 lib/templates/standard/flog.html.erb
edouard-metric_fu-1.0.3.3 lib/templates/standard/flog.html.erb
edouard-metric_fu-1.0.3.4 lib/templates/standard/flog.html.erb
edouard-metric_fu-1.0.3.5 lib/templates/standard/flog.html.erb
edouard-metric_fu-1.0.3.6 lib/templates/standard/flog.html.erb
edouard-metric_fu-1.0.3.7 lib/templates/standard/flog.html.erb
edouard-metric_fu-1.0.3.8 lib/templates/standard/flog.html.erb
edouard-metric_fu-1.0.4.1 lib/templates/standard/flog.html.erb
edouard-metric_fu-1.0.4.2 lib/templates/standard/flog.html.erb
edouard-metric_fu-1.0.4.3 lib/templates/standard/flog.html.erb
edouard-metric_fu-1.0.4.4 lib/templates/standard/flog.html.erb
edouard-metric_fu-1.0.4.5 lib/templates/standard/flog.html.erb
edouard-metric_fu-1.0.4 lib/templates/standard/flog.html.erb
jscruggs-metric_fu-1.0.0 lib/templates/standard/flog.html.erb
jscruggs-metric_fu-1.0.1 lib/templates/standard/flog.html.erb
jscruggs-metric_fu-1.0.2 lib/templates/standard/flog.html.erb
khall-metric_fu-1.0.2.1 lib/templates/standard/flog.html.erb
khall-metric_fu-1.0.2.2 lib/templates/standard/flog.html.erb