lib/risu/models/plugin.rb
Method top_by_count_graph
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def top_by_count_graph(limit=10)
g = Gruff::Bar.new(GRAPH_WIDTH)
g.title = sprintf "Top %d Critical Findings By Plugin", Item.risks_by_plugin(limit).to_a.count
g.sort = false
g.marker_count = 1