PowerShell / PowerShell/PSScriptAnalyzer
Format Rule Request: -not vs !
オープン
まだ誰も着手していません。
Area - Rules
Issue - Enhancement
Issue - New Rule
Up-for-Grabs
- 主要言語
- C#
- スター
- 2.2k
- フォーク
- 414
- 平均マージ
- 13時間 1分
- マージ済み PR(30日)
- 2
説明
Prerequisites
- I have written a descriptive issue title.
- I have searched all issues to ensure it has not already been reported.
Summary
I realize ! isn't exactly an alias of -not, but in order to have more consistently-formatted code across repositories and teams, there should be a setting to auto-format/enforce the use of one or the other.
(related question: is there an official list somewhere of all of the settings that are currently available?)
Proposed Design
proposed default setting:
"powershell.formatting.logicalNotAsExlclamation": false
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、既存のフォーマット設定と、この issue で提案されている logicalNotAsExlclamation 設定を確認します。強制適用で ! と -not をどのように扱うべきかを明確にし、利用可能な設定に関する問題を文書化します。選択した形式を一貫して設定でき、関連する formatter の動作でカバーされていれば、作業完了とみなします。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- powershell
- 領域
- tooling
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 42/100