Skip to content

[formatter] Indentation for pipeline chaining with leading pipe operator #2219

Description

@sharpchen

Summary of the new feature

Add indentation for pipeline with leading pipe operator.

Proposed technical implementation details (optional)

# expected:
Get-ChildItem
  | Where-Object { $_ }
  | ForEach-Object name

# actual:
Get-ChildItem
| Where-Object { $_ }
| ForEach-Object name

What is the latest version of PSScriptAnalyzer at the point of writing

Bundled with Powershell-Editor-Servcies-4.7.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions