app/controllers/budgets/investments_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage

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

      redirect_to user_path(current_user, filter: 'budget_investments'), notice: t('flash.actions.destroy.budget_investment')

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

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

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

    before_action -> { flash.now[:notice] = flash[:notice].html_safe if flash[:html_safe] && flash[:notice] }

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

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

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

    has_filters %w{not_unfeasible feasible unfeasible unselected selected}, only: [:index, :show, :suggest]

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

      @resource_relation    = resource_model.where(budget: @budget).apply_filters_and_search(@budget, params, @current_filter)

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

      @related_contents = Kaminari.paginate_array(@investment.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_filters %w{not_unfeasible feasible unfeasible unselected selected}, only: [:index, :show, :suggest]

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)

There are no issues that match your filters.

Category
Status