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