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
The new Layout/LineContinuationSpacing cop incorrectly applies itself to text after __END__.
Layout/LineContinuationSpacing
__END__
The cop is not raised for non-Ruby code.
The cop is triggered.
# frozen_string_literal: true class ThisIsRubyCode def initialize puts "Hello" end end __END__ random text, such as a git diff \ which should not be checked
$ [bundle exec] rubocop -V 1.31.0 (using Parser 3.1.2.0, rubocop-ast 1.18.0, running on ruby 2.6.8 x86_64-darwin15) - rubocop-performance 1.14.2 - rubocop-rails 2.15.0
The text was updated successfully, but these errors were encountered:
brew style --fix
[Fix rubocop#10763] Fix a false positive for `Layout/LineContinuation…
562a9c1
…Spacing` Fixes rubocop#10763. This PR fixes a false positive for `Layout/LineContinuationSpacing` when using continuation keyword `\` after `__END__`.
[Fix #10763] Fix a false positive for Layout/LineContinuationSpacing
5024054
Fixes #10763. This PR fixes a false positive for `Layout/LineContinuationSpacing` when using continuation keyword `\` after `__END__`.
Successfully merging a pull request may close this issue.
The new
Layout/LineContinuationSpacing
cop incorrectly applies itself to text after__END__
.Expected behavior
The cop is not raised for non-Ruby code.
Actual behavior
The cop is triggered.
Steps to reproduce the problem
RuboCop version
The text was updated successfully, but these errors were encountered: