Skip to content

Allow either_consistent for HashSyntax#4949

Merged
sethboyles merged 1 commit intomainfrom
sethboyles-patch-1
Mar 20, 2026
Merged

Allow either_consistent for HashSyntax#4949
sethboyles merged 1 commit intomainfrom
sethboyles-patch-1

Conversation

@sethboyles
Copy link
Member

@sethboyles sethboyles commented Mar 20, 2026

Having HashSyntax as consistent autocorrects hashes or method calls like AppModel.where(space: space) to AppModel.where(space:).

IMO this is is not always the clearest way of instantiating a hash or calling a method and should be left to developer discretion to omit the variable. either_consistent allows either style, but still enforces the style within a single hash (e.g. you can't have {space: space, app: })

cc @tcdowney

Copy link
Member

@tcdowney tcdowney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgr8tm

@sethboyles sethboyles merged commit 6ca299b into main Mar 20, 2026
16 of 17 checks passed
@moleske moleske deleted the sethboyles-patch-1 branch March 20, 2026 19:02
ari-wg-gitbot added a commit to cloudfoundry/capi-release that referenced this pull request Mar 20, 2026
Changes in cloud_controller_ng:

- Allow either_consistent for HashSyntax
    PR: cloudfoundry/cloud_controller_ng#4949
    Author: Seth Boyles <seth.boyles@broadcom.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants