-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PSReviewUnusedParameter marks script parameter as unused #1923
Comments
Yeah, I guess I have the same problem. PSScriptAnalyzer version 1.21.0, PowerShell version 7.3.6. My allegedly unused parameter is a |
Thanks @kristianshevando for opening this and providing repro steps... this is a known issue caused by how PSSA handles scoping for the Where-Object script block, unfortunately this is a very difficult bug to fix with the current architecture of PSSA-- going to mark this as a duplicate |
@SydneyhSmith Now both #1923 and #1924 are marked with |
This issue has been marked as duplicate and has not had any activity for 1 day. It will be closed for housekeeping purposes. |
Steps to reproduce
Expected behavior
Actual behavior
If an unexpected error was thrown then please report the full error details using e.g.
$error[0] | Select-Object *
Environment data
The text was updated successfully, but these errors were encountered: