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
1 error occurred:
An error occurred while Rails/RedundantReceiverInWithOptions cop was inspecting .../err.rb:11:0.
Errors are usually caused by RuboCop bugs.
Please, report your problems to RuboCop's issue tracker.
https://github.com/rubocop/rubocop/issues
Mention the following information in the issue report:
1.36.0 (using Parser 3.1.2.1, rubocop-ast 1.21.0, running on ruby 3.1.2) [x86_64-linux]
undefined method `children' for nil:NilClass
recv_node && recv_node.children[0] == arg_node.children[0]
^^^^^^^^^
rubocop-rails-2.16.1/lib/rubocop/cop/rails/redundant_receiver_in_with_options.rb:131:in `same_value?'
rubocop-rails-2.16.1/lib/rubocop/cop/rails/redundant_receiver_in_with_options.rb:102:in `block in redundant_receiver?'
rubocop-rails-2.16.1/lib/rubocop/cop/rails/redundant_receiver_in_with_options.rb:75:in `block in all_send_nodes_in'
The text was updated successfully, but these errors were encountered:
…ons`
Fixesrubocop#794.
This PR fixes an error for `Rails/RedundantReceiverInWithOptions`
when calling a method with a receiver in `with_options` without block arguments
Rubocop shows parsing error with such code:
The text was updated successfully, but these errors were encountered: