PowerShell / PowerShell/PSScriptAnalyzer
whitespaceBeforeOpenParen does not add a space between param and paren
まだ誰も着手していません。
- 主要言語
- C#
- スター
- 2.2k
- フォーク
- 414
- 平均マージ
- 13時間 1分
- マージ済み PR(30日)
- 2
説明
System Details Output
- Operating system name and version
Windows 10 build 1903
### VSCode extensions:
ms-vscode.powershell@2019.5.0
ms-vscode.vs-keybindings@0.2.0
### PSES version:
### PowerShell version:
Name Value
---- -----
PSVersion 5.1.18362.145
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.18362.145
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Issue Description
I am experiencing a problem with the "powershell.codeFormatting.whitespaceBeforeOpenParen" setting.
Expected Behaviour
When formatting a PowerShell document, a space should separate the "param" keyboard and the following open paren "(".
Actual Behaviour
When I format a PowerShell document (press Ctrl + K; Ctrl + D), a space is not inserted bewteen the "param" keyboard and the open paren "(".
Attached Logs
Attached logs.zip
Proof of Concept/Example Code
Attached Test-WhitespaceBeforeOpenParen.zip
logs.zip
Test-WhitespaceBeforeOpenParen.zip
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
設定 powershell.codeFormatting.whitespaceBeforeOpenParen から始め、添付された Test-WhitespaceBeforeOpenParen.zip の例を使い、Ctrl + K; Ctrl + D でフォーマットして問題を再現します。期待される出力と実際の出力を比較し、必要に応じて添付ファイル logs.zip を使用します。フォーマットによって param キーワードと開き括弧の間にスペースが挿入されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp, powershell
- 領域
- tooling
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 32/100