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 #7962] Fix a false positive for Lint/ParenthesesAsGroupedExpression #7963

Commits on May 13, 2020

  1. [Fix rubocop#7962] Fix a false positive for `Lint/ParenthesesAsGroupe…

    …dExpression`
    
    Fixes rubocop#7962.
    
    This PR fixes the following false positive for `Lint/ParenthesesAsGroupedExpression`
    when heredoc has a space between the same string as the method name and `(`.
    
    ```ruby
    foo(
      <<~EOS
        foo (
        )
      EOS
    )
    ```
    
    This PR adds a reproduction test and reverts a required logic removed by rubocop#7909.
    koic committed May 13, 2020
    Configuration menu
    Copy the full SHA
    56fe59e View commit details
    Browse the repository at this point in the history