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
Original:
expect(subject[:corrected_address]).to eq({ street1: "1 Market", street2: "#200", city: "Some Town", state: "CA", postal_code: "99999-1111" })
Autocorrected:
expect(subject[:corrected_address]).to eq(street1: '1 Market', street2: '#200', city: 'Some Town', state: 'CA', postal_code: '99,999-1111 ')
Expected:
expect(subject[:corrected_address]).to eq(street1: '1 Market', street2: '#200', city: 'Some Town', state: 'CA', postal_code: '99999-1111',)
rubocop -V 0.26.0 (using Parser 2.2.0.pre.4, running on ruby 1.9.3 x86_64-darwin13.3.0)
The text was updated successfully, but these errors were encountered:
This is caused by combination of auto-correction of two cops: Styles/BracesAroundHashParameters and Styles/IndentHash.
Styles/BracesAroundHashParameters
Styles/IndentHash
expect(subject[:corrected_address]).to eq({ street1: '1 Market', street2: '#200', city: 'Some Town', state: 'CA', postal_code: '99999-1111' })
will be the code below after one Cop::Team#autocorrect call:
Cop::Team#autocorrect
expect(subject[:corrected_address]).to eq( street1: '1 Market', street2: '#200', city: 'Some Town', state: 'CA', postal_code: '99999-1111 ')
Sorry, something went wrong.
Thanks for the information, both of you. I'll try to sort it out.
ca5bc8d
Merge pull request #1364 from jonas054/1349_fix_autocorrect
fbd9aed
[Fix #1349] Don't change whitespace in BracesAroundHashParameters
jonas054
No branches or pull requests
Original:
Autocorrected:
Expected:
The text was updated successfully, but these errors were encountered: