Skip to content

New Rule Suggestion: ParameterSetName mismatch. #396

@Jaykul

Description

@Jaykul

When there is a DefaultParameterSetName, we need a rule to detect if there is not a case-sensitive exact match between that value and a ParameterSetName.

People aren't used to PowerShell being case-sensitive, but it is, in this case.

If there is a match with the wrong case, this is an Error, if there's no match at all, then this is probably just informational (it's relatively common to have the default be an un-named parameter set, right?).

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