PowerShell / PowerShell/PSScriptAnalyzer
Invoke-ScriptAnalyzer required Path parameter
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ả
The required -Path parameter is a usability concern. It should default to . removing the need for the required parameter.
Is there a reason or design choice of why this parameter is required without a default value?
Steps to reproduces
Invoke-ScriptAnalyzer
Expected behavior
# just runs
Invoke-ScriptAnalyzer
Actual behavior
Invoke-ScriptAnalyzer
cmdlet Invoke-ScriptAnalyzer at command pipeline position 1
Supply values for the following parameters:
Path:
If an unexpected error was thrown then please report the full error details using e.g. $error[0] | Select-Object *
Environment data
> $psversiontable
Name Value
---- -----
PSVersion 7.3.2
PSEdition Core
GitCommitId 7.3.2
OS Microsoft Windows 10.0.19044
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
> (Get-Module -ListAvailable PSScriptAnalyzer).Version | ForEach-Object { $_.ToString() }
1.21.0
1.20.0
1.19.1
1.18.3
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 xác định phần triển khai của lệnh Invoke-ScriptAnalyzer và định nghĩa tham số Path của lệnh. Kiểm tra cách lệnh hoạt động khi Path bị bỏ qua, sau đó xác minh rằng việc gọi Invoke-ScriptAnalyzer không có đối số sẽ chạy trên thư mục hiện tại và không nhắc nhập Path.
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
- cli, 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