Skip to content
New issue

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

An error occurred while Style/ArgumentsForwarding cop #11631

Closed
apotonick opened this issue Feb 26, 2023 · 1 comment · Fixed by #11632
Closed

An error occurred while Style/ArgumentsForwarding cop #11631

apotonick opened this issue Feb 26, 2023 · 1 comment · Fixed by #11632
Labels

Comments

@apotonick
Copy link

I knew I'm gonna break Rubocop with my messy code! 😆

The following snippet broke:

        Extension = Struct.new(:callable) do
          def call(*args, &block)
            callable.(*args, &block)
          end
        end

It seems that it doesn't like the def call within the Struct!

1 error occurred:
An error occurred while Style/ArgumentsForwarding cop was inspecting /home/nick/projects/trailblazer-activity-dsl-linear/lib/trailblazer/activity/dsl/linear/helper.rb:10:10.

RuboCop version

1.44.1 (using Parser 3.2.1.0, rubocop-ast 1.26.0, running on ruby 3.0.0) [x86_64-linux]
@koic koic added the bug label Feb 26, 2023
koic added a commit to koic/rubocop that referenced this issue Feb 26, 2023
…Forwarding`

Fixes rubocop#11631.

This PR fixes an incorrect autocorrect for `Style/ArgumentsForwarding`
when using arguments forwarding for `.()` call.
bbatsov pushed a commit that referenced this issue Feb 26, 2023
…ing`

Fixes #11631.

This PR fixes an incorrect autocorrect for `Style/ArgumentsForwarding`
when using arguments forwarding for `.()` call.
@bbatsov
Copy link
Collaborator

bbatsov commented Feb 26, 2023

@apotonick One fix for the gentlemen with the messy code coming right up. Cheers, buddy! 🍻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants