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
I see a crash when running rubocop on some files in our app, which prevents us from updating to 1.13.0.
I distilled down the problem to theexample.rb file below.
#9690 in the latest release is related to the cop that is mentioned in the error so I assume this might be related.
Could you have a look?
Thanks in advance,
Andy
Expected behavior
Given a file:
class Example
def method
@really_long_instance_variable_name = params[:really_really_long_parameter_name]
variable = Class.find(@really_long_instance_variable_name) if params[:really_really_long_parameter_name]
end
end
Thanks for for your work on RuboCop!
I see a crash when running rubocop on some files in our app, which prevents us from updating to 1.13.0.
I distilled down the problem to the
example.rb
file below.#9690 in the latest release is related to the cop that is mentioned in the error so I assume this might be related.
Could you have a look?
Thanks in advance,
Andy
Expected behavior
Given a file:
called
example.rb
and the following .rubocop.yml:rubocop -d example.rb
runs without errors.Actual behavior
I get the following result when running
bundle exec rubocop -d example.rb
:Steps to reproduce the problem
Create an
example.rb
as given above and runrubocop -d example.rb
.RuboCop version
The text was updated successfully, but these errors were encountered: