New issue
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
New Layout/AlignHash has a runtime error on mixed Hash style #7066
Comments
I just ran into this as well, here was our specific use-case: {
'Content-Type' => 'application/json',
Authorization: "Bearer #{@access_token}",
}
# Allow for either `key` or `table` alignment for hashes
Layout/AlignHash:
EnforcedHashRocketStyle:
- key
- table
EnforcedColonStyle:
- key
- table
EnforcedLastArgumentHashStyle: ignore_implicit
|
8 tasks
PR ready for review here: #7068 |
rmm5t
added a commit
to rmm5t/rubocop
that referenced
this issue
May 22, 2019
bbatsov
pushed a commit
that referenced
this issue
May 23, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior
Rubocop should run the Layout/AlignHash cop without an error occuring.
Actual behavior
There occurs an error with the message "nil can't be coerced into Integer"
Steps to reproduce the problem
Minimal example:
RuboCop version
The text was updated successfully, but these errors were encountered: