PowerShell / PowerShell/PSScriptAnalyzer
Feature Request: Version property in DiagnosticRecord object
まだ誰も着手していません。
- 主要言語
- C#
- スター
- 2.2k
- フォーク
- 414
- 平均マージ
- 13時間 1分
- マージ済み PR(30日)
- 2
説明
Spec:
[System.Version] $Version
Stores the version of PSScriptAnalyzer that ran in the Invoke-ScriptAnalyzer test.
Scenario:
I need to know which version of PSScriptAnalyzer ran in my Invoke-ScriptAnalyzer test.
Different versions of PSScriptAnalyzer behave differently. They include different rules and the rules change (see PSPlaceOpenBrace 1.10.0 v. 1.11.0).
This is especially important because you cannot remove an assembly from a PS session. I don't know if this script passed because it's perfect or it passed because I accidentally ran an older version that is missing current rules.
Also, there's no log for script analyzer, so I might log the DiagnosticRecord objects. In that case, the version is critical.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
このリクエストは Invoke-ScriptAnalyzer が返す DiagnosticRecord オブジェクトに関するものです。まず、そのオブジェクトと、それを作成する呼び出し経路を特定します。実行中の PSScriptAnalyzer バージョンが記録された診断情報で公開され、結果のプロパティを呼び出し元から利用できることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp, powershell
- 領域
- devtools
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100