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
i noticed having in my code:
some_variable = a_long_method_that_didnt_fit_previous_line do do_something end
EndAlignment suggests this is wrong. what would be the correct way to write it?
this? (i dont think it gets better this way):
edit: another one is when method chaining. This is unaccepted by rubocop:
some_variables.map do |foo| foo.do_something end.each do |bar| bar.do_something_else end
The text was updated successfully, but these errors were encountered:
@SirLenz0rlot, the second case:
passes for me, even when I ran it against the 0.9.0 branch.
We still don't handle the first case and return false offences, I'm working on fixing it.
Sorry, something went wrong.
Fix end alignment of blocks that spawn on two lines
18dca44
This fixes rubocop#327
Successfully merging a pull request may close this issue.
i noticed having in my code:
EndAlignment suggests this is wrong.
what would be the correct way to write it?
this? (i dont think it gets better this way):
edit: another one is when method chaining.
This is unaccepted by rubocop:
The text was updated successfully, but these errors were encountered: