Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request Shopify#365 from Shopify/rm-disable-EnforcedShorth…
Browse files Browse the repository at this point in the history
…andSyntax

Disable EnforcedShorthandSyntax in Style/HashSyntax
  • Loading branch information
rafaelfranca committed Mar 2, 2022
2 parents a4efe2c + c1c0530 commit febf531
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,9 @@ Style/HashExcept:
Style/HashLikeCase:
Enabled: false

Style/HashSyntax:
EnforcedShorthandSyntax: either

Style/HashTransformKeys:
Enabled: false

Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/full_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2718,7 +2718,7 @@ Style/HashSyntax:
- hash_rockets
- no_mixed_keys
- ruby19_no_mixed_keys
EnforcedShorthandSyntax: always
EnforcedShorthandSyntax: either
SupportedShorthandSyntax:
- always
- never
Expand Down

0 comments on commit febf531

Please sign in to comment.