app/controllers/badges_controller.rb
Method make_shield
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
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