PowerShell / PowerShell/PSScriptAnalyzer

Align groups of assignments (=)

オープン
#1,029 コメント 14 件 リアクション 13 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

Area - Formatter Up-for-Grabs
主要言語
C#
スター
2.2k
フォーク
414
平均マージ
13時間 1分
マージ済み PR(30日)
2

説明

I made the below feature request in the vscode-powershell extension git and was enlightened that this functionality originate from the PSScriptAnalyzer module. https://github.com/PowerShell/vscode-powershell/issues/1385

I would love to see an option to allow alignment of assignmentgroups. Its easiest to show what I mean with an example. (Github wouldn't allow me to format the code manually and trimmed the whitespaces automatically so I had to attach a printscreen).

bild

So that '=' are aligned in columns within a group of assignments. A group could be interpreted as delimitered with a blank line.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

リンクされた vscode-powershell のリクエストと添付された Assignment の例から始めて、意図されたグループ化および配置動作を確認します。説明にはファイルやテストが記載されていないため、関連する PSScriptAnalyzer の formatter または analyzer のエントリポイントを特定し、空行で区切られた各グループ内で代入演算子が整列されることを完了条件として定義します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
powershell
領域
tooling
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
30/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。