Skip to content

Commit

Permalink
Update .rubocop_defaults.yml (#153)
Browse files Browse the repository at this point in the history
Fix error "Error: The `Style/TrailingCommaInLiteral` cop no longer exists. Please use `Style/TrailingCommaInArrayLiteral` and/or `Style/TrailingCommaInHashLiteral` instead."
  • Loading branch information
jonhue authored and weppos committed Jun 26, 2018
1 parent 8bbd236 commit 8841e49
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .rubocop_defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ Style/StringLiterals:

# It's nice to be consistent. The trailing comma also allows easy reordering,
# and doesn't cause a diff in Git when you add a line to the bottom.
Style/TrailingCommaInLiteral:
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: consistent_comma
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: consistent_comma

Style/TrivialAccessors:
Expand Down

0 comments on commit 8841e49

Please sign in to comment.