unepwcmc/SAPI

View on GitHub
app/serializers/species/show_taxon_concept_serializer_cms.rb

Summary

Maintainability
A
2 hrs
Test Coverage

Method cms_listing_changes has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def cms_listing_changes
    MCmsListingChange.from('cms_listing_changes_mview AS listing_changes_mview').
      where(
        'listing_changes_mview.taxon_concept_id' => object_and_children,
        'listing_changes_mview.show_in_history' => true
Severity: Major
Found in app/serializers/species/show_taxon_concept_serializer_cms.rb - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status