app/presenters/case_file_presenter.rb
Class CaseFilePresenter
has 33 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class CaseFilePresenter
include ActionView::Helpers::NumberHelper
include ActionView::Helpers::TextHelper
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
Open
def date_of_arrival
- Read upRead up
- Exclude checks
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