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
To reproduce this issue, use the above Rubocop configuration and Ruby code snippet saved as snippet.rb. You can then then run Rubocop as follows to reproduce the error:
Expected behavior
When using the following Rubocop configuration (note the enforced style):
I would not expect to have a violation for the following contrived code sample (note the use of the endless class method for
.call
):In the above scenario, the parenthesis can't be removed because the endless method would no longer be syntactically correct for Ruby 3.0.0.
Actual behavior
When using the above configuration, you'll end up with this error:
Steps to reproduce the problem
To reproduce this issue, use the above Rubocop configuration and Ruby code snippet saved as
snippet.rb
. You can then then run Rubocop as follows to reproduce the error:RuboCop version
The text was updated successfully, but these errors were encountered: