Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix #7962] Fix a false positive for `Lint/ParenthesesAsGroupedExpres…
…sion` Fixes #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 #7909.
- Loading branch information
Showing
3 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters