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
Based on the rule description for Layout/BlockAlignment with start_of_line
Layout/BlockAlignment
start_of_line
the end shall be aligned with the start of the line where the expression started
I would expect this
def foo = bar(123, 456) do # ... end
to be allowed, but it isn't. It seems that "start of the line" actually means the start of the method body, and not the actual line.
No offense
woot.rb:4:1: C: [Correctable] Layout/BlockAlignment: end at 4, 0 is not aligned with bar(123, at 1, 10 or 456) do at 2, 14. end ^^^
EnforcedStyleAlignWith
either
1.62.1 (using Parser 3.3.0.5, rubocop-ast 1.31.2, running on ruby 3.2.2) [arm64-darwin21] - rubocop-rails 2.22.1
The text was updated successfully, but these errors were encountered:
ElseAlignment also has this issue, but not EndAlignment or BeginEndAlignment, interestingly.
ElseAlignment
EndAlignment
BeginEndAlignment
Sorry, something went wrong.
No branches or pull requests
Based on the rule description for
Layout/BlockAlignment
withstart_of_line
I would expect this
to be allowed, but it isn't. It seems that "start of the line" actually means the start of the method body, and not the actual line.
Expected behavior
No offense
Actual behavior
Steps to reproduce the problem
Layout/BlockAlignment
withEnforcedStyleAlignWith
set tostart_of_line
oreither
RuboCop version
The text was updated successfully, but these errors were encountered: