Sha256: 395237e03d90de674a2dd27d957f785d0c10bce3efb07d2782078f867050033f
Contents?: true
Size: 1.06 KB
Versions: 4
Compression:
Stored size: 1.06 KB
Contents
<html> <head> <title>Flog Reporter</title> <style> <%= open(File.join(MetricFu::TEMPLATE_DIR, "#{template_name}.css")) { |f| f.read } %> </style> </head> <body> <h1>Flogged files</h1> <p>Generated on <%= Time.now.localtime %> with <a href='http://ruby.sadi.st/Flog.html'>flog</a></p> <table class='report'> <tr><th>File</th><th>Total score</th><th>Methods</th><th>Average score</th><th>Highest score</th></tr> <% count = 0 %> <% flog_hashes.sort {|x,y| y[:page].highest_score <=> x[:page].highest_score }.each do |flog_hash| %> <tr class='<%= Base.cycle("light", "dark", count) %>'> <td><a href='<%= flog_hash[:path]%>'><%= flog_hash[:path].sub('.html', '.rb') %></a></td> <td class='score'><%= sprintf(SCORE_FORMAT, flog_hash[:page].score) %></td> <td class='score'><%= flog_hash[:page].scanned_methods.length %></td> <td class='score'><%= sprintf(SCORE_FORMAT, flog_hash[:page].average_score) %></td> <td class='score'><%= sprintf(SCORE_FORMAT, flog_hash[:page].highest_score) %></td> </tr> <% count += 1 %> <% end %> </table> </body> </html>
Version data entries
4 entries across 4 versions & 2 rubygems