Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

UseConsistentIndentation behavior for doubled brackets #1905

God-damnit-all started this conversation in General
Discussion options

While I really like what this rule does for the most part, one of its behaviors does annoy me. I tend to use &{process{ or .{process{ instead of ForEach-Object { because it's a lot faster, and the call operator & can give it it's own scope if I want.

However, in analyzing the following code...

$foo | &{process{
 bar $_
}}

PSUseConsistentIndentation wants to change it to:

$foo | &{process{
 bar $_
 }}

Is there any way I can modify this behavior? If I submitted a feature request to create a setting to suppress this behavior (not that I even know what the setting would be called) would it even be accepted?

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /