Skip to content
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

Separate Trailing Comma Array and Hash Literal #17

Merged
merged 1 commit into from
Mar 5, 2018

Conversation

kevin-j-m
Copy link
Contributor

@kevin-j-m kevin-j-m commented Mar 5, 2018

Rubocop 0.53.0 created two new cops for controlling trailing comma style
preferences for arrays and hashes which may be found here:
rubocop/rubocop#5307.

This removes the Style/TrailingCommaInLiteral cop in favor of these
more granular cops.

As a result of this change, gnar-style needs to be updated to use the
new cops and remove the use of the old one. This updates to use the new
cops and updates the gemspec to reflect that this now requires 0.53 of
rubocop in this version to adhere to the available cops.

Rubocop 0.53.0 created two new cops for controlling trailing comma style
preferences for arrays and hashes which may be found here:
rubocop/rubocop#5307.

This removes the `Style/TrailingCommaInLiteral` cop in favor of these
more granular cops.

As a result of this change, gnar-style needs to be updated to use the
new cops and remove the use of the old one. This updates to use the new
cops and updates the gemspec to reflect that this now requires 0.53 of
rubocop in this version to adhere to the available cops.
@kevin-j-m kevin-j-m merged commit 9e5f502 into master Mar 5, 2018
@kevin-j-m kevin-j-m deleted the trailing-comma-cop branch March 5, 2018 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants