-
Notifications
You must be signed in to change notification settings - Fork 60
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 RuboCop: Style/RedundantLineContinuation: Redundant line continuation. #163
Comments
I'm seeing this too and I think I narrowed down the source to something introduced in RuboCop v1.58. When I manually set the rubocop gem to v1.57.2, the warning doesn't appear. Here's the full diff of all changes between v1.57.2 and 1.58.0. This change sticks out: rubocop/rubocop#12403 Maybe that change introduced a bug for those who use slim-lint? |
With
Removing the trailing
I've tried several different tweaks, but to no satisfactory avail. |
What's also interesting is that the trailing |
In my case, Rubocop (1.62.1) reports both places:
We are going to switch this cop off in our configuration. |
I converted the file _links.html.erb from Devise gem. As the line is to long, I came with: - if devise_mapping.lockable? && \
resource_class.unlock_strategy_enabled?(:email) && \
controller_name != 'unlocks' and corfirm the bug: app/views/devise/shared/_links.html.slim:12 [W] RuboCop: Style/RedundantLineContinuation: Redundant line continuation. I'll just wait for the fix with: # .rubocop.yml
Style/RedundantLineContinuation:
Enabled: false
|
Opened just a month before this issue: |
I am faced with a strange problem, not sure that this is related to this gem, but I'd like to describe it.
Near 2 weeks ago the command
slim-lint .
started to return false positive results:RuboCop: Style/RedundantLineContinuation: Redundant line continuation.
examples:
The text was updated successfully, but these errors were encountered: