PowerShell / PowerShell/PSScriptAnalyzer

Heads up: (compatibility) rule for dictionary keys IList interface

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

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

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

説明

Just a heads up:
In the (near?) future, dictionary keys are going to support the IList interface.
This would mean that e.g. @($Dictionary.Keys)[0] can be simplified to $Dictionary.Keys[0].
see: #15843 Ordered Dictionary keys are not numerically indexable and linked .Net issue: #56835 OrderedDictionaryKeyValueCollection implement IList
This might lead to (downwards) compatibility issues, therefore a (compatibility) rule for this (future) enhancement could make sense.

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

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

はじめの一歩

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

調査の方向性

まず、互換性 issue #805、PowerShell issue #15843、およびリンクされている .NET issue #56835 を読んで、提案されている IList の動作と互換性に関する懸念を理解してください。Dictionary キーのインデックス参照に対するルールの意図した警告と受け入れ基準を定義してください; 完了には、合意された設計と対応する analyzer のカバレッジが必要です。

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

評価

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

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

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