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
Layout/EndAlignment
end
Autocorrect for Layout/EndAlignment does not fix alignment of end of singleton class definition.
class Foo class << self end end
should be corrected into
No offense, no correction.
# test.rb class Foo class << self end end
rubocop --autocorrect --only 'Layout/EndAlignment' test.rb
$ bundle exec rubocop -V 1.45.1 (using Parser 3.2.1.0, rubocop-ast 1.24.1, running on ruby 3.1.2) [arm64-darwin21] - rubocop-performance 1.16.0 - rubocop-rake 0.6.0 - rubocop-rspec 2.18.1
The text was updated successfully, but these errors were encountered:
[Fix rubocop#11567] Fix Layout/EndAlignment false negative
e09f89e
Merge pull request #11568 from j-miyake/fix_end_alignment
84ed5d9
[Fix #11567] Fix `Layout/EndAlignment` false negative
Successfully merging a pull request may close this issue.
Autocorrect for
Layout/EndAlignment
does not fix alignment ofend
of singleton class definition.Expected behavior
should be corrected into
Actual behavior
No offense, no correction.
Steps to reproduce the problem
RuboCop version
The text was updated successfully, but these errors were encountered: