You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1d394ee
Browse filesBrowse the repository at this point in the historyBrowse files
PSReviewUnusedParameter false positive for ValueFromPipeline (#2072)
* Check for ValueFromPipeline
* Check whether each scriptblock being analysed has a process block that directly contains variable usage of $_ or $PSItem. Then when we encounted a parameter with ValueFromPipeline set, we consider whether we saw usage within a process block by automatic variable.
* Amend tests to consider process block
* Update Rules/ReviewUnusedParameter.cs
Co-authored-by: Andy Jordan <2226434+andyleejordan@users.noreply.github.com>
* Update Rules/ReviewUnusedParameter.cs
---------
Co-authored-by: Andy Jordan <2226434+andyleejordan@users.noreply.github.com>
0 commit comments