Skip to content

PSAvoidUninitializedVariable does not recognize System.Management.Automation.SwitchParameter. #179

@imfrancisd

Description

@imfrancisd
function test-switchparameter
{
    Param(
        [switch]
        $a,

        [System.Management.Automation.SwitchParameter]
        $b
    )

    #PSAvoidUninitializedVariable on $b but not $a
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions