Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[formatter] Indentation for pipeline chaining with leading pipe operator

Open
#2,219 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
powershell
Domain
tooling

Research direction

Start at the formatter entry point for PowerShell pipeline expressions; the issue does not identify a file or test. Reproduce the shown leading-pipe example and add or update coverage so continuation pipes are indented as in the expected output.

Written by the indexing model from the issue text.

Description

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

Dominant language
C#
Stars
2.2k
Forks
416
Avg merge
13h 1m
Merged PRs (30d)
2

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from PowerShell/PSScriptAnalyzer

All issues in PowerShell/PSScriptAnalyzer

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.