app/controllers/legislation/proposals_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage

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

                    image_attributes: [:id, :title, :attachment, :cached_attachment, :user_id, :_destroy],

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

  has_orders %w{confidence_score created_at}, only: :index

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)

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

  has_orders %w{most_voted newest oldest}, 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. [132/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

      redirect_to legislation_process_proposal_path(params[:process_id], @proposal), notice: I18n.t('flash.actions.create.proposal')

There are no issues that match your filters.

Category
Status