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
Style/EachWithObject autocorrect leaves an empty line which doesn't look good.
It should remove empty line.
It leaves an empty line.
$ cat test.rb
[1, 2, 3].inject({}) do |h, i| h[i] = i h end
$ rubocop -a --only Style/EachWithObject ./test.rb
[1, 2, 3].each_with_object({}) do |i, h| h[i] = i end
But I expect the code to be
$ rubocop -V 0.52.1 (using Parser 2.4.0.2, running on ruby 2.4.3 x86_64-darwin17)
The text was updated successfully, but these errors were encountered:
Style/EachWithObject
[Fix rubocop#5534] remove empty line after Style/EachWithObject aut…
e06f2ec
…ocorrect
6c655da
No branches or pull requests
Style/EachWithObject autocorrect leaves an empty line which doesn't look good.
Expected behavior
It should remove empty line.
Actual behavior
It leaves an empty line.
Steps to reproduce the problem
But I expect the code to be
RuboCop version
The text was updated successfully, but these errors were encountered: