You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and LineLength set to 100, rubocop -a falls into infinite loop:
app/controllers/customer_dashboard_controller.rb:67:16: C: [Corrected] Style/IfUnlessModifier: Favor modifier if usage when having a single-line body. Another good alternative is the usage of control flow &&/||.
timespan = if params[:timespan] && POSSIBLE_TIMESPANS.include?(params[:timespan])
^^
app/controllers/customer_dashboard_controller.rb:67:17: C: [Corrected] Style/IfUnlessModifier: Favor modifier if usage when having a single-line body. Another good alternative is the usage of control flow &&/||.
timespan = (if params[:timespan] && POSSIBLE_TIMESPANS.include?(params[:timespan])
^^
app/controllers/customer_dashboard_controller.rb:67:42: C: [Corrected] Style/IfUnlessModifier: Modifier form of if makes the line too long.
timespan = (params[:timespan].to_sym if params[:timespan] && POSSIBLE_TIMESPANS.include?(params[:timespan]))
^^
Infinite loop detected in .../app/controllers/customer_dashboard_controller.rb.
(Yeah, I know code itself is horrible! Already rewritten it by hand, but still)
The text was updated successfully, but these errors were encountered:
On Rubocop 0.84, with this statement:
and LineLength set to 100,
rubocop -a
falls into infinite loop:(Yeah, I know code itself is horrible! Already rewritten it by hand, but still)
The text was updated successfully, but these errors were encountered: