PowerShell / PowerShell/PSScriptAnalyzer
Download compatibility profiles lazily from a remote feed rather than shipping them
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- C#
- Star
- 2.2k
- Fork
- 414
- Merge trung bình
- 13 giờ 1 phút
- Pull request đã merge (30 ngày)
- 2
Mô tả
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.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Xem xét các quy tắc UseCompatibleTypes và UseCompatibleCommands cũng như cách các profile của chúng hiện được đóng gói và cấu hình. Chuyển các yêu cầu về nguồn asset, caching và versioning, xung đột tên cục bộ và tải xuống theo lô thành một thiết kế. Hoàn tất có nghĩa là các hành vi truy xuất và cùng tồn tại lúc runtime được liệt kê đã được đặc tả và xác thực.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- csharp, powershell
- Lĩnh vực
- tooling
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 25/100