Skip to content

Commit e267c33

Browse files
authored
Merge pull request #1676 from codidact/0valt/1653/hash-style
Enabling enforcing of the Style/HashSyntax Rubocop cop
2 parents 35fced2 + c0722fc commit e267c33

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.rubocop.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ Style/HashEachMethods:
8080
Style/HashExcept:
8181
Enabled: false # reenable when we can be sure no one uses Ruby <3.0
8282
Style/HashSyntax:
83-
EnforcedShorthandSyntax: either # 3.1 prefers key: when for same-name key-value pairs, but it'd be a huge change
83+
EnforcedStyle: ruby19_no_mixed_keys
84+
EnforcedShorthandSyntax: never
8485
Style/HashTransformKeys:
8586
Enabled: true
8687
Style/HashTransformValues:

0 commit comments

Comments
 (0)