app/controllers/management/proposals_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage

Line is too long. [108/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

      params.require(:proposal).permit(:title, :question, :summary, :description, :external_url, :video_url,

%w-literals should be delimited by [ and ]. (https://github.com/bbatsov/ruby-style-guide#percent-literal-braces)
Open

  has_orders %w{most_voted newest}, only: :show

This cop enforces the consistent usage of %-literal delimiters.

Specify the 'default' key to set all preferred delimiters at once. You can continue to specify individual preferred delimiters to override the default.

Example:

# Style/PercentLiteralDelimiters:
#   PreferredDelimiters:
#     default: '[]'
#     '%i':    '()'

# good
%w[alpha beta] + %i(gamma delta)

# bad
%W(alpha #{beta})

# bad
%I(alpha beta)

Line is too long. [134/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

    redirect_to management_proposal_path(@proposal), status: :moved_permanently if request.path != management_proposal_path(@proposal)

Line is too long. [105/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

    @related_contents = Kaminari.paginate_array(@proposal.relationed_contents).page(params[:page]).per(5)

%w-literals should be delimited by [ and ]. (https://github.com/bbatsov/ruby-style-guide#percent-literal-braces)
Open

  has_orders %w{confidence_score hot_score created_at most_commented random}, only: [:index, :print]

This cop enforces the consistent usage of %-literal delimiters.

Specify the 'default' key to set all preferred delimiters at once. You can continue to specify individual preferred delimiters to override the default.

Example:

# Style/PercentLiteralDelimiters:
#   PreferredDelimiters:
#     default: '[]'
#     '%i':    '()'

# good
%w[alpha beta] + %i(gamma delta)

# bad
%W(alpha #{beta})

# bad
%I(alpha beta)

There are no issues that match your filters.

Category
Status