SpeciesFileGroup/taxonworks

View on GitHub
app/models/taxon_name/otu_syncronization.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method has too many lines. [26/25]
Open

    def syncronize_otus(taxon_name_id: nil, user_id: nil, mode: :all_valid)
      return false if mode.nil? || taxon_name_id.nil? || user_id.nil?
      t = TaxonName.find(taxon_name_id)
      i = 0 
      names = case mode

This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

Method syncronize_otus has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def syncronize_otus(taxon_name_id: nil, user_id: nil, mode: :all_valid)
      return false if mode.nil? || taxon_name_id.nil? || user_id.nil?
      t = TaxonName.find(taxon_name_id)
      i = 0 
      names = case mode
Severity: Minor
Found in app/models/taxon_name/otu_syncronization.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status