Skip to content

Credential Parameter Rules #363

Closed
Closed
@mattmcnabb

Description

@mattmcnabb

There are two rules, UsePSCredentialType and AvoidUserNameAndPasswordParams that need to be reworked. While it is good practice to use the "PSCredential" type for parameters that take a credential, a better practice is to use the provided parameter attribute "CredentialAttribute." Both rules previously mentioned flag parameters that use this attribute.

Example:

[System.Management.Automation.CredentialAttribute()]
$Credential

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions