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 think I'm running into this issue as #10401
When the hash key is the same as the hash value, rubocop removes the value.
The hash value should not be removed if it is the same as the hash key.
Here are the examples:
render jsonapi_errors: error, status: status corrects to render jsonapi_errors: error, status:
render jsonapi_errors: error, status: status
render jsonapi_errors: error, status:
direct_upload: { url: url }.merge(params) corrects to direct_upload: { url: }.merge(params)
direct_upload: { url: url }.merge(params)
direct_upload: { url: }.merge(params)
I'm on rubocop 1.43.0 with vscode ruby-rubocop-revived v0.9.4.
% rubocop -v 1.43.0
The text was updated successfully, but these errors were encountered:
This is an expected behavior. You can set EnforcedShorthandSyntax: never or EnforcedShorthandSyntax: eigher if you don't want to omit hash values: https://docs.rubocop.org/rubocop/1.43/cops_style.html#stylehashsyntax
EnforcedShorthandSyntax: never
EnforcedShorthandSyntax: eigher
Sorry, something went wrong.
No branches or pull requests
I think I'm running into this issue as #10401
When the hash key is the same as the hash value, rubocop removes the value.
Expected behavior
The hash value should not be removed if it is the same as the hash key.
Actual behavior
When the hash key is the same as the hash value, rubocop removes the value.
Steps to reproduce the problem
Here are the examples:
render jsonapi_errors: error, status: status
corrects to
render jsonapi_errors: error, status:
direct_upload: { url: url }.merge(params)
corrects to
direct_upload: { url: }.merge(params)
RuboCop version
I'm on rubocop 1.43.0 with vscode ruby-rubocop-revived v0.9.4.
The text was updated successfully, but these errors were encountered: