codetriage/codetriage

View on GitHub
app/controllers/badges_controller.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method make_shield has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def make_shield(name:, count:, color_a: "555", color_b: "4c1", logo_width: 0, logo_padding: 0)
    name_width  = (width_of(name) + 10).to_f
    count_width = (width_of(count) + 10).to_f
    total_width = name_width + count_width
    svg = <<~EOS
Severity: Minor
Found in app/controllers/badges_controller.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status