Sha256: 182f2268845d1eb07215dee36c52b15ee21be237be11b290c302b486dba1d242

Contents?: true

Size: 1.33 KB

Versions: 12

Compression:

Stored size: 1.33 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>
	<table>
		<tr>
		  <th>File</th>
		  <th>Total score</th>
		  <th>Methods</th>
		  <th>Average score</th>
		  <th>Highest score</th>
		</tr>
		<% pages.sort {|x,y| y.highest_score <=> x.highest_score }.each_with_index do |page, count| %>
  		<tr class='<%= cycle("light", "dark", count) %>'>
  			<td><a href='<%= page.path %>'><%= page.path.sub('.html', '.rb') %></a></td>
  			<td class='score'><%= sprintf(SCORE_FORMAT, page.score) %></td>
  			<td class='score'><%=                       page.scanned_methods.length %></td>
  			<td class='score'><%= sprintf(SCORE_FORMAT, page.average_score) %></td>
  			<td class='score'><%= sprintf(SCORE_FORMAT, page.highest_score) %></td>
  		</tr>
		<% end %>
		<tr>
			<td><strong>Totals</strong></td>
			<td class='score'><strong><%= sprintf(SCORE_FORMAT, pages.inject(0){|sum, page| sum + page.score }) %></strong></td>
			<td class='score'><strong><%=                       pages.inject(0){|sum, page| sum + page.scanned_methods.length } %></strong></td>
			<td class='score'></td>
			<td class='score'></td>
		</tr>		
	</table>
	<p>Generated on <%= Time.now.localtime %></p>	
</body>
</html>

Version data entries

12 entries across 12 versions & 4 rubygems

Version Path
jscruggs-metric_fu-0.9.0 lib/templates/flog.html.erb
leh-metric_fu-0.9.2 lib/templates/flog.html.erb
nielsm-metric_fu-0.9.0 lib/templates/flog.html.erb
nielsm-metric_fu-0.9.1 lib/templates/flog.html.erb
p8-metric_fu-0.8.9.1 lib/templates/flog.html.erb
p8-metric_fu-0.9.0.2 lib/templates/flog.html.erb
p8-metric_fu-0.9.0.3 lib/templates/flog.html.erb
p8-metric_fu-0.9.0.4 lib/templates/flog.html.erb
p8-metric_fu-0.9.0.5 lib/templates/flog.html.erb
p8-metric_fu-0.9.0.6 lib/templates/flog.html.erb
p8-metric_fu-0.9.0.7 lib/templates/flog.html.erb
p8-metric_fu-0.9.0 lib/templates/flog.html.erb