Sha256: b67b75b3f7123f4bbbeb5eba782dd524924df36bda1d0d048326ff86b5a758d1
Contents?: true
Size: 1.3 KB
Versions: 2
Compression:
Stored size: 1.3 KB
Contents
<h3>Flog Results</h3> <p><a href='http://ruby.sadi.st/Flog.html'>Flog</a> measures code complexity.</p> <img src="flog.png?<%= Time.now %>"> <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>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
edouard-metric_fu-1.0.2 | lib/templates/awesome/flog.html.erb |
edouard-metric_fu-1.0.4.5 | lib/templates/awesome/flog.html.erb |