Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[formatter] Indentation for pipeline chaining with leading pipe operator

Đang mở
#2,219 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
powershell
Lĩnh vực
tooling

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
C#
Star
2.2k
Fork
415
Merge trung bình
13 giờ 1 phút
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của PowerShell/PSScriptAnalyzer

Tất cả issue của PowerShell/PSScriptAnalyzer

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.