hammackj/risu

View on GitHub
lib/risu/models/plugin.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method top_by_count_graph has 26 lines of code (exceeds 25 allowed). Consider refactoring.
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
Severity: Minor
Found in lib/risu/models/plugin.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status