BathHacked/energy-sparks

View on GitHub
app/services/schools/funder_allocation_report_service.rb

Summary

Maintainability
A
3 hrs
Test Coverage

Method csv has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def csv
      CSV.generate(headers: true) do |csv|
        csv << self.class.csv_headers

        school_ids = School.active.pluck(:id) + School.archived.pluck(:id)
Severity: Major
Found in app/services/schools/funder_allocation_report_service.rb - About 2 hrs to fix

    Method csv_headers has 37 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

          def csv_headers
            [
              'School group',
              'School name',
              'School type',
    Severity: Minor
    Found in app/services/schools/funder_allocation_report_service.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status