We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Style/RedundantLineContinuation
Not to flag the Style/RedundantLineContinuation offense.
Offense is flagged and incorrectly autocorrected.
return unless params[:filter].present? && params[:show_inactive].present? \ && params[:show_inactive] == 'true'
app/controllers/api/v1/organizations_controller.rb:401:83: C: [Correctable] Style/RedundantLineContinuation: Redundant line continuation. return unless params[:filter].present? && params[:show_inactive].present? \ ...
return unless params[:filter].present? && params[:show_inactive].present? && params[:show_inactive] == 'true'
app/controllers/api/v1/organizations_controller.rb:402:11: F: Lint/Syntax: unexpected token tAMPER (Using Ruby 3.3 parser; configure using TargetRubyVersion parameter, under AllCops) && params[:show_inactive] == 'true' ^
$ [bundle exec] rubocop -V 1.62.0 (using Parser 3.3.0.5, rubocop-ast 1.31.1, running on ruby 3.3.0) [arm64-darwin23] - rubocop-rails 2.24.0
The text was updated successfully, but these errors were encountered:
[Fix rubocop#12758] Fix false positives for Layout/RedundantLineBreak
Layout/RedundantLineBreak
ca00a34
Fixes rubocop#12758. This PR fixes false positives for `Layout/RedundantLineBreak` when using `&&` or `||` after a backslash newline.
6ee9962
[Fix #12758] Fix false positives for Layout/RedundantLineBreak
890e225
Fixes #12758. This PR fixes false positives for `Layout/RedundantLineBreak` when using `&&` or `||` after a backslash newline.
Successfully merging a pull request may close this issue.
Expected behavior
Not to flag the
Style/RedundantLineContinuation
offense.Actual behavior
Offense is flagged and incorrectly autocorrected.
Steps to reproduce the problem
Input:
Is flagged as:
Autocorrects to:
Then produces:
RuboCop version
The text was updated successfully, but these errors were encountered: