gitlabhq/gitlabhq

View on GitHub
app/helpers/sorting_helper.rb

Summary

Maintainability
C
1 day
Test Coverage

File sorting_helper.rb has 468 lines of code (exceeds 250 allowed). Consider refactoring.
Open

module SortingHelper
  prepend_if_ee('::EE::SortingHelper') # rubocop: disable Cop/InjectEnterpriseEditionModule

  def sort_options_hash
    {
Severity: Minor
Found in app/helpers/sorting_helper.rb - About 7 hrs to fix

    Method sort_options_hash has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      def sort_options_hash
        {
          sort_value_created_date      => sort_title_created_date,
          sort_value_downvotes         => sort_title_downvotes,
          sort_value_due_date          => sort_title_due_date,
    Severity: Minor
    Found in app/helpers/sorting_helper.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status