scottwillson/racing_on_rails

View on GitHub
app/pdfs/card.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method to_pdf has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def to_pdf(people, index = 0)
    Array.wrap(people).each do |person|
      start_new_page if index.positive? && (index % 15).zero?

      card_top = bounds.top_left.last - ((index % 15) / 3) * 144
Severity: Minor
Found in app/pdfs/card.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status