PowerShell / PowerShell/PSScriptAnalyzer
Check automatic variable availability
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ả
In comparing the Preference Variables documentation for PowerShell 6.x and newer:
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_preference_variables?view=powershell-6
to the Preference Variables documentation for PowerShell 5.1:
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_preference_variables?view=powershell-5.1
it seems that a number of Preference Variables were removed/deprecated from PowerShell. I just ran into this problem unexpectedly on a script when testing it on PowerShell 6.x.
To help with this problem, I would like the PSUseCompatibleCommands feature of PSScriptAnalyzer to flag the usage of deprecated Preference Variables and state that they are not compatible with PowerShell 6.0 and newer (on any platform including Windows).
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
Bắt đầu bằng cách so sánh tài liệu about_Preference_Variables được liên kết của PowerShell 6.x và 5.1, sau đó tìm tính năng PSUseCompatibleCommands trong PSScriptAnalyzer. Được xem là hoàn thành khi việc sử dụng các biến preference đã lỗi thời được cảnh báo kèm theo tuyên bố rằng chúng không tương thích với PowerShell 6.0 trở lên trên tất cả các nền tảng.
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ó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- 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
- 35/100