unepwcmc/SAPI

View on GitHub
app/services/nomenclature_change/cascading_notes_processor.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method descendents_for_note_cascading has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def descendents_for_note_cascading(taxon_concept)
    unless [Rank::GENUS, Rank::SPECIES].include? taxon_concept.rank.try(:name)
      return []
    end
    # if it is a genus or a species, we want taxon-level nomenclature notes,
Severity: Minor
Found in app/services/nomenclature_change/cascading_notes_processor.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status