TechLadies/home-web

View on GitHub
app/presenters/case_file_presenter.rb

Summary

Maintainability
B
4 hrs
Test Coverage

Class CaseFilePresenter has 33 methods (exceeds 20 allowed). Consider refactoring.
Open

class CaseFilePresenter

  include ActionView::Helpers::NumberHelper
  include ActionView::Helpers::TextHelper

Severity: Minor
Found in app/presenters/case_file_presenter.rb - About 4 hrs to fix

    Method CaseFilePresenter#date_of_arrival is defined at both app/presenters/case_file_presenter.rb:53 and app/presenters/case_file_presenter.rb:71.
    Open

      def date_of_arrival

    This cop checks for duplicated instance (or singleton) method definitions.

    Example:

    # bad
    
    def duplicated
      1
    end
    
    def duplicated
      2
    end

    Example:

    # bad
    
    def duplicated
      1
    end
    
    alias duplicated other_duplicated

    Example:

    # good
    
    def duplicated
      1
    end
    
    def other_duplicated
      2
    end

    There are no issues that match your filters.

    Category
    Status