genome/dgi-db

View on GitHub
app/presenters/gene_category_search_results_presenter.rb

Summary

Maintainability
A
3 hrs
Test Coverage

Class GeneCategorySearchResultsPresenter has 22 methods (exceeds 20 allowed). Consider refactoring.
Open

class GeneCategorySearchResultsPresenter
  include Genome::Extensions
  attr_reader :search_results

  def initialize(search_results, params, start_time, view_context)
Severity: Minor
Found in app/presenters/gene_category_search_results_presenter.rb - About 2 hrs to fix

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

      def ambiguous_matches
        unless @ambiguous_matches
          @ambiguous_matches = []
          results = ambiguous_result_presenters.uniq{|r| r.gene_categories}
          results.each do |result|
    Severity: Minor
    Found in app/presenters/gene_category_search_results_presenter.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status