-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change
Style/HashSyntax
configuration (#59)
This change allows for the use of either pre-Ruby 3.1 hash syntax or the newer shorthand value omission style, so long as the use is consistent. As such, the change to this configuration is likely non-breaking and shouldn't introduce a pile of errors in existing code. > ```ruby > # bad - `bar` value can be omitted > {foo:, bar: bar} > > # bad - mixed syntaxes > {foo:, bar: baz} > > # good - `foo` and `bar` values can be omitted, but they are > # consistent, so it's accepted > {foo: foo, bar: bar} > > # good > {foo:, bar:} > > # good - can't omit `baz` > {foo: foo, bar: baz} > ```
- Loading branch information
Showing
3 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters