PowerShell / PowerShell/PSScriptAnalyzer
Download compatibility profiles lazily from a remote feed rather than shipping them
まだ誰も着手していません。
- 主要言語
- C#
- スター
- 2.2k
- フォーク
- 414
- 平均マージ
- 13時間 1分
- マージ済み PR(30日)
- 2
説明
Currently compatibility profiles for the UseCompatibleTypes and UseCompatibleCommands rules ship with PSSA and effectively double its size.
This represents large overhead for users who don't use these rules or who don't want all the profiles we ship by default.
Ideally the rules should have a way of identifying filesystem and remote assets, and when rules are run, download/install any remote assets not already on the machine. This will also require cataloguing remote assets in a systematic and dependable way.
Proposed implementation
One solution is to have rules as NuGet assets (taking care of both hosting and caching), and specifying profiles as URIs, so that file:// and https:// (for example) profiles can be easily distinguished.
This may create an unnecessary dependency on NuGet however.
Whatever the implementation it will need to:
- Enable runtime retrieval of profiles so they do not need to be shipped with the PSSA module
- Allow side-by-side specification of remote and local profiles in the configuration in a way where local assets cannot have colliding names
- Memoise profile downloads, so that once they are downloaded once, they remain available locally by specifying the remote instance (this may require versioning or cache invalidation in case remote profiles change)
- Allow profiles to be downloaded in batches rather than one-at-a-time, for maximum efficiency (in the vein of the Remote Façade pattern.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
UseCompatibleTypes と UseCompatibleCommands ルール、およびそれらのプロファイルが現在どのようにパッケージ化・構成されているかを確認します。アセットソース、キャッシュとバージョニング、ローカル名の衝突、バッチダウンロードの要件を設計に落とし込みます。完了とは、列挙されたランタイムでの取得および共存の動作が仕様化され、検証されていることを意味します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp, powershell
- 領域
- tooling
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 25/100