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
For multiline hash parameter autocorrect
it expects to keep the original indent for last line
it removes original indent for last line
$ cat test_spec.rb
require 'spec_helper' RSpec.describe Test do it 'is a test' do expect(Test.result).to eq({ foo: 'bar', bar: 'foo' }) end end
$ rubocop -a --only Style/BracesAroundHashParameters ./test_spec.rb
require 'spec_helper' RSpec.describe Test do it 'is a test' do expect(Test.result).to eq( foo: 'bar', bar: 'foo' ) end end
But I expect the code to be
$ rubocop -V 0.52.0 (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:
[Fix rubocop#5291] fix multiline indent for Style/BracesAroundHashPar…
c7664f7
…ameters autocorrect
5ca76fd
cc8c762
No branches or pull requests
For multiline hash parameter autocorrect
Expected behavior
it expects to keep the original indent for last line
Actual behavior
it removes original indent for last 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: