Skip to content

AvoidUserNameAndPasswordParams should match exactly for "Username" and "Password" parameters #571

@JustinGrote

Description

@JustinGrote

In my usage it seems to match any parameter that has the word "Password" or "Username" contained therein without considering that parameter's usage.

For example, it will trigger saying this is not correct and requires securestring or credential:
Get-SensitiveInfo -HidePassword:$true -HideUsername:$true

I would send a pull request but I don't know C#, wasn't sure how to address the string matching :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions