BathHacked/energy-sparks

View on GitHub
app/models/meter_attribute.rb

Summary

Maintainability
A
1 hr
Test Coverage
A
100%

Method metered_solar has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def self.metered_solar
    query = <<-SQL.squish
      SELECT ma.id, m.id, s.id, s.name, solar.*
      FROM meter_attributes ma
      JOIN meters m ON ma.meter_id = m.id
Severity: Minor
Found in app/models/meter_attribute.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status