matkoniecz/CartoCSSHelper

View on GitHub
lib/cartocss_helper/overpass_downloader.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method run_overpass_query has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def self.run_overpass_query(query, description, invalidate_cache: false)
      url = OverpassDownloader.format_query_into_url(query)
      timeout = OverpassDownloader.get_allowed_timeout_in_seconds
      downloader = GenericCachedDownloader.new(timeout: timeout, stop_on_timeout: false)
      return downloader.get_specified_resource(url, cache_filename(query), description: description, invalidate_cache: invalidate_cache)
Severity: Minor
Found in lib/cartocss_helper/overpass_downloader.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status