PowerShell / PowerShell/PSScriptAnalyzer
Add rules for Named/Positional Parameter use on object creation
オープン
まだ誰も着手していません。
Issue - New Rule
Issue-Enhancement
- 主要言語
- C#
- スター
- 2.2k
- フォーク
- 414
- 平均マージ
- 13時間 1分
- マージ済み PR(30日)
- 2
説明
*Summary of the new feature
This PR in PowerShell - Add support for named argument with .NET Methods will add additional functionality which would be useful to add some rules around it's use to aid in coding styles, not only to aid in coding style but to reduce errors in use
Examples & levels that I think would be useful include
- Avoid mixing named & positional parameters on object creation (Information)
- Use only named parameters for object creation (Information)
- Use only positional parameters for object creation (Warning) (for backcompat checks
What is the latest version of PSScriptAnalyzer at the point of writing
1.22.0
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、名前付き引数の動作に関するリンク先の PowerShell PR を確認し、PSScriptAnalyzer がオブジェクトの作成とその他の呼び出しをどのように区別すべきかを明確にします。混在、名前付きのみ、位置指定のみのパラメーターについて、ルールの対象範囲と重大度を定義し、その後、各ケースで意図した診断が生成されることを示す analyzer のカバレッジを追加します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp, powershell
- 領域
- tooling
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 32/100