-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Allow TrailingCommaInLiteral to enforce Arrays but not Hashes #3394
Labels
Comments
Reviewing the cop, I do not believe a new config option is the way to go. There are already |
8 tasks
garettarrowood
added a commit
to garettarrowood/rubocop
that referenced
this issue
Dec 27, 2017
garettarrowood
added a commit
to garettarrowood/rubocop
that referenced
this issue
Dec 27, 2017
bbatsov
pushed a commit
that referenced
this issue
Dec 27, 2017
bbatsov
pushed a commit
that referenced
this issue
Dec 27, 2017
skalee
added a commit
to skalee/guides
that referenced
this issue
Mar 6, 2018
In Rubocop 0.53, Style/TrailingCommaInLiteral has been replaced with Style/TrailingCommaInArrayLiteral, and Style/TrailingCommaInHashLiteral. See: rubocop/rubocop#3394.
nickcharlton
pushed a commit
to thoughtbot/guides
that referenced
this issue
Mar 13, 2018
* Replace removed Rubocop cop In Rubocop 0.53, Style/TrailingCommaInLiteral has been replaced with Style/TrailingCommaInArrayLiteral, and Style/TrailingCommaInHashLiteral. See: rubocop/rubocop#3394. * Move Rubocop cop to proper namespace In Rubocop 0.53, Lint/ConditionPosition has been moved to Layout namespace. * Rename Rubocop cop In Rubocop 0.53, Lint/UnneededDisable has been renamed to Lint/UnneededCopDisableDirective.
hilliuse
added a commit
to hilliuse/simplecov-html
that referenced
this issue
May 18, 2018
nickcharlton
added a commit
to nickcharlton/dotfiles
that referenced
this issue
May 20, 2018
* Replace removed Rubocop cop In Rubocop 0.53, Style/TrailingCommaInLiteral has been replaced with Style/TrailingCommaInArrayLiteral, and Style/TrailingCommaInHashLiteral. See: rubocop/rubocop#3394. * Move Rubocop cop to proper namespace In Rubocop 0.53, Lint/ConditionPosition has been moved to Layout namespace. * Rename Rubocop cop In Rubocop 0.53, Lint/UnneededDisable has been renamed to Lint/UnneededCopDisableDirective. Original: thoughtbot/guides#510
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would like TrailingCommaInLiteral to be enforced for arrays, but not hashes. Could that be done with a configuration option?
The text was updated successfully, but these errors were encountered: