Skip to content

Commit

Permalink
Set Style/HashSyntax option EnforcedShorthandSyntax: either, allowing…
Browse files Browse the repository at this point in the history
… both { foo: } and { foo: foo } (#48)
  • Loading branch information
kbarrette authored May 5, 2022
1 parent 983d1d2 commit b5dff76
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# salsify_rubocop

## 1.27.1
- Set `Style/HashSyntax` option `EnforcedShorthandSyntax: either`, allowing both `{ foo: }` and `{ foo: foo }`

## 1.27.0
- Note: Previous versions had drifted from the documented versioning scheme,
which states that versions should match the shipped version of `rubocop`.
Expand Down
4 changes: 4 additions & 0 deletions conf/rubocop_without_rspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,10 @@ Style/HashAsLastArrayItem:
Style/HashEachMethods:
Enabled: false

# Allow both { foo: } and { foo: foo }
Style/HashSyntax:
EnforcedShorthandSyntax: either

Style/OptionalBooleanParameter:
Enabled: false

Expand Down
2 changes: 1 addition & 1 deletion lib/salsify_rubocop/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module SalsifyRubocop
VERSION = '1.27.0'
VERSION = '1.27.1'
end

0 comments on commit b5dff76

Please sign in to comment.