unepwcmc/SAPI

View on GitHub
lib/modules/downloads_cache.rb

Summary

Maintainability
A
2 hrs
Test Coverage

Method update_species_downloads has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def self.update_species_downloads
    puts "Updating Species+ downloads"
    Designation.dict.each do |d|
      elapsed_time = Benchmark.realtime do
        Species::ListingsExportFactory.new(:designation => d).export
Severity: Minor
Found in lib/modules/downloads_cache.rb - About 1 hr to fix

    Method update_checklist_downloads has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      def self.update_checklist_downloads
        puts "Updating CITES Checklist downloads"
        modules = [
          Checklist::Pdf,
          Checklist::Csv,
    Severity: Minor
    Found in lib/modules/downloads_cache.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status