We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With the Ruby 3.1 config:
AllCops: NewCops: enable TargetRubyVersion: 3.1
The following code results in a runtime error:
def foo(**kwargs, &) bar(1, **kwargs, &) end
An error occurred while Style/ArgumentsForwarding cop was inspecting poc.rb:1:0. undefined method `+' for nil:NilClass arg_after_splat = arguments[splat_index + 1] ^ vendor/bundle/ruby/3.1.0/gems/rubocop-1.56.0/lib/rubocop/cop/style/arguments_forwarding.rb:336:in `no_post_splat_args?' [.. more backtrace ...]
This is a regression in 1.56.0, the same code does not result in crashes in 1.55.1
$ bundle exec rubocop -V 1.56.0 (using Parser 3.2.2.3, rubocop-ast 1.29.0, running on ruby 3.1.2) [x86_64-linux-gnu]
The text was updated successfully, but these errors were encountered:
Style/ArgumentsForwarding
[Fix: rubocop#12109] Fix an error for Style/ArgumentsForwarding cop…
1fbfb83
… when forwarding kwargs/block arg and an additional arg Fix: rubocop#12109
Merge pull request #12110 from ydah/fix/12109
ff8c5ff
[Fix: #12109] Fix an error for `Style/ArgumentsForwarding` cop when forwarding kwargs/block arg and an additional arg
Successfully merging a pull request may close this issue.
With the Ruby 3.1 config:
The following code results in a runtime error:
RuboCop version
This is a regression in 1.56.0, the same code does not result in crashes in 1.55.1
The text was updated successfully, but these errors were encountered: