You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<value>Checks that cmdlets that have a Credential parameter accept PSCredential. This comes from the PowerShell teams best practices.</value>
220
+
<value>Checks that cmdlets that have a Credential parameter accept PSCredential with CredentialAttribute. This comes from the PowerShell teams best practices.</value>
<value>Functions should only take in a credential parameter of type PSCredential instead of username and password parameters.</value>
514
+
<value>Functions should only take in a credential parameter of type PSCredential with CredentialAttribute instead of username and password parameters.</value>
<value>Function '{0}' has both username and password parameters. A credential parameter of type PSCredential should be used.</value>
517
+
<value>Function '{0}' has both username and password parameters. A credential parameter of type PSCredential with a CredentialAttribute should be used.</value>
Copy file name to clipboardExpand all lines: Tests/Rules/AvoidUserNameAndPasswordParams.tests.ps1
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
Import-Module PSScriptAnalyzer
2
2
3
-
$violationMessage="Function 'Verb-Noun' has both username and password parameters. A credential parameter of type PSCredential should be used."
3
+
$violationMessage="Function 'Verb-Noun' has both username and password parameters. A credential parameter of type PSCredential with a CredentialAttribute should be used."
0 commit comments