BathHacked/energy-sparks

View on GitHub
app/models/energy_tariff_charge.rb

Summary

Maintainability
A
3 hrs
Test Coverage

Method charge_types has 88 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def self.charge_types
    {
      standing_charge: {
        units: [:day, :month, :quarter],
        name: I18n.t('user_tariff_charge.standing_charge')
Severity: Major
Found in app/models/energy_tariff_charge.rb - About 3 hrs to fix

    There are no issues that match your filters.

    Category
    Status