PowerShell / PowerShell/PSScriptAnalyzer

Format Rule Request: -not vs !

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

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

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

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

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

はじめの一歩

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

調査の方向性

まず、既存のフォーマット設定と、この issue で提案されている logicalNotAsExlclamation 設定を確認します。強制適用で !-not をどのように扱うべきかを明確にし、利用可能な設定に関する問題を文書化します。選択した形式を一貫して設定でき、関連する formatter の動作でカバーされていれば、作業完了とみなします。

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

評価

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

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

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