PowerShell / PowerShell/PSScriptAnalyzer
WithSpaceAroundPipe and WhitespaceInsideBrace enabled together with Pipelineindentation.NoIndentation do not always correct
オープン
まだ誰も着手していません。
Area - Formatter
Issue - Bug
- 主要言語
- C#
- スター
- 2.2k
- フォーク
- 414
- 平均マージ
- 13時間 1分
- マージ済み PR(30日)
- 2
説明
Transferred from https://github.com/PowerShell/vscode-powershell/pull/1867
Steps to reproduce
format the following with the default vscode settings and Pipelineindentation set to NoIndentation
gmo|
? {$_.IsDuck}|
git
Expected behavior
gmo |
? { $_.IsDuck } |
git
Actual behavior
No change in formatting.
If an unexpected error was thrown then please report the full error details using e.g. $error[0] | Select-Object *
Environment data
PSSA 1.18.0 on Windows with PS 6.2.0
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
ソースファイルもテストも指定されていません。提供された PowerShell スニペットとデフォルト設定を使い、PipelineIndentation を NoIndentation に設定した状態でフォーマットのケースを再現し、その後 WithSpaceAroundPipe と WhitespaceInsideBrace に対する formatter の動作を追跡してください。出力が期待されるフォーマットと一致し、パイプラインのインデント動作が維持されていれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp, powershell
- 領域
- tooling
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100