app/services/dashboard_stats.rb
Method trade_stats_per_reporter_type
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
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(