app/models/taxon_name/otu_syncronization.rb
Method has too many lines. [26/25] Open
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
- Read upRead up
- Exclude checks
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
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