gitcoinco/code_fund_ads

View on GitHub
app/jobs/estimate_traffic_for_property_job.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method perform has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def perform(property_id)
    property = Property.find(property_id)
    data = TrafficEstimator.lookup(property.url)[:data]
    return if data.blank?
    estimate = PropertyTrafficEstimate.new
Severity: Minor
Found in app/jobs/estimate_traffic_for_property_job.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status