app/controllers/budgets/investments_controller.rb
Line is too long. [125/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
redirect_to user_path(current_user, filter: 'budget_investments'), notice: t('flash.actions.destroy.budget_investment')
- Exclude checks
Line is too long. [108/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
image_attributes: [:id, :title, :attachment, :cached_attachment, :user_id, :_destroy],
- Exclude checks
Line is too long. [109/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
before_action -> { flash.now[:notice] = flash[:notice].html_safe if flash[:html_safe] && flash[:notice] }
- Exclude checks
Line is too long. [112/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
documents_attributes: [:id, :title, :attachment, :cached_attachment, :user_id, :_destroy],
- Exclude checks
Line is too long. [107/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
has_filters %w{not_unfeasible feasible unfeasible unselected selected}, only: [:index, :show, :suggest]
- Exclude checks
Line is too long. [126/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
@resource_relation = resource_model.where(budget: @budget).apply_filters_and_search(@budget, params, @current_filter)
- Exclude checks
Line is too long. [109/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
@related_contents = Kaminari.paginate_array(@investment.relationed_contents).page(params[:page]).per(5)
- Exclude checks
%w
-literals should be delimited by [
and ]
. (https://github.com/bbatsov/ruby-style-guide#percent-literal-braces) Open
Open
has_filters %w{not_unfeasible feasible unfeasible unselected selected}, only: [:index, :show, :suggest]
- Read upRead up
- Exclude checks
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
Open
has_orders %w{most_voted newest oldest}, only: :show
- Read upRead up
- Exclude checks
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)