-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
False positive of Style/RedundantLineContinuation #12793
Labels
Comments
koic
added a commit
to koic/rubocop
that referenced
this issue
Mar 22, 2024
Part of rubocop#12793. This PR fixes false positives for `Style/RedundantLineContinuation` when using line continuation with modifier.
koic
added a commit
to koic/rubocop
that referenced
this issue
Mar 22, 2024
Part of rubocop#12793. This PR fixes false positives for `Style/RedundantLineContinuation` when using line continuation with modifier.
8 tasks
koic
added a commit
to koic/rubocop
that referenced
this issue
Mar 25, 2024
…nuation` Fixes rubocop#12793. This PR fixes false positives for `Style/RedundantLineContinuation` when multi-line continuations with operators. In rubocop#12678, the use of `RuboCop::Cop::Base#parse` method was avoided due to errors in Prism. Now, the error in Prism have been fixed: rubocop#12677 (comment) And given redundant line continuation patterns is too varied, this PR have reverted to a simpler implementation using the `parse` method.
8 tasks
bbatsov
pushed a commit
that referenced
this issue
Mar 25, 2024
Fixes #12793. This PR fixes false positives for `Style/RedundantLineContinuation` when multi-line continuations with operators. In #12678, the use of `RuboCop::Cop::Base#parse` method was avoided due to errors in Prism. Now, the error in Prism have been fixed: #12677 (comment) And given redundant line continuation patterns is too varied, this PR have reverted to a simpler implementation using the `parse` method.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior
The following code is correct:
Actual behavior
This is corrected to invalid code:
Steps to reproduce the problem
Run Rubocop on the examples above.
RuboCop version
The issue was first observed in version 1.61.0. A possible fix was merged but the new version is still offending:
Style/RedundantLineContinuation
#12726The text was updated successfully, but these errors were encountered: