unepwcmc/SAPI

View on GitHub
app/services/dashboard_stats.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method trade_stats_per_reporter_type has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def trade_stats_per_reporter_type(reporter_type)
    source = Source.find_by_code('W')
    term = Term.find_by_code('LIV')
    purpose = Purpose.find_by_code('T')
    shipments_for_country = Trade::Shipment.where(
Severity: Minor
Found in app/services/dashboard_stats.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status