FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

false positive 'PSUseDeclaredVarsMoreThanAssignments' · Issue #711 · PowerShell/PSScriptAnalyzer · GitHub

false positive 'PSUseDeclaredVarsMoreThanAssignments' #711

Description

I get the message 'The variable 'param' is assigned but never used.'
My script looks like this:

$param = $MyInvocation.BoundParameters

a couple of lines further down in the same script:

. "$PSScriptRoot\wrap.script.ps1 @param"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL