You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…dExpression`
Fixesrubocop#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.
…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.
Expected behavior
The following input should not produce an offense.
Actual behavior
The above input produced the following offense.
Steps to reproduce the problem
Place the above input in a file and run rubocop 0.83.0 on it.
Confirm regression by running the same experiment in 0.82 and not producing an offense.
RuboCop version
Include the output of
rubocop -V
orbundle exec rubocop -V
if using Bundler. Here's an example:The text was updated successfully, but these errors were encountered: