Open
Description
I have a script parameter that holds a path to the encrypted credential file named $CredentialFile
for which I get the warning:
Parameter '$CredentialFile' should use SecureString, otherwise this will expose sensitive information. See ConvertTo-SecureString for more information.
There is no reason for me use SecureString here and I cannot think of a better alternative to the parameter name, so it would be nice to suppress this message for this particular instance, but not to the whole file or project. Besides, the documentation for PSAvoidUsingPlainTextForPassword
needs to include Credential and whatever other strings it gets triggered of, since it only mentions one word: Password.