Closed
Description
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