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

Fix an error for Style/LambdaCall #12102

Merged
merged 1 commit into from
Aug 8, 2023

Commits on Aug 8, 2023

  1. Fix an error for Style/LambdaCall

    This PR fixes an error for `Style/LambdaCall`
    when using nested lambda call `x.().()`:
    
    ```console
    $ cat example.rb
    x.(a, b).(c)
    
    $ buncle exec rubocop example.rb --only Style/LambdaCall -a -d
    (snip)
    
    An error occurred while Style/LambdaCall cop was inspecting /Users/koic/src/github.com/koic/rubocop-issues/lambda_call/example.rb:1:0.
    Parser::Source::TreeRewriter detected clobbering
    /Users/koic/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/parser-3.2.2.3/lib/parser/source/tree_rewriter.rb:427:in `trigger_policy'
    ```
    koic committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    57dd392 View commit details
    Browse the repository at this point in the history