PowerShell / PowerShell/PSScriptAnalyzer
Suggestion: Parameter modification warning
オープン
まだ誰も着手していません。
Issue - New Rule
- 主要言語
- C#
- スター
- 2.2k
- フォーク
- 414
- 平均マージ
- 13時間 1分
- マージ済み PR(30日)
- 2
説明
Summary of the new feature
User has a function with a a parameter called, for this example, $PassedParam.
Inside the function, the $PassedParam is assigned with a new value.
This cause the type constrainment and the various Validate attributes checks to trigger again.
I propose a warning to suggest the user to treat parameters as read-only
What is the latest version of PSScriptAnalyzer at the point of writing
1.23.0
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず issue #2059 で提案されている動作を読み、PSScriptAnalyzer にある既存のパラメーター分析と代入分析の場所を確認します。検証済みパラメーターの再代入に関する警告の範囲を定義し、警告を報告すべき場合と報告すべきでない場合を示すカバレッジを追加します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp, powershell
- 領域
- tooling
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 42/100