Skip to content

Commit 52c8315

Browse files
committed
Update AvoidUsingUsernameAndPasswordParams.md
1 parent 9971d80 commit 52c8315

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

RuleDocumentation/AvoidUsingUsernameAndPasswordParams.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,18 @@ To fix a violation of this rule, please pass username and password as a PSCreden
1313
##Example
1414

1515
Wrong:
16-
17-
[int]
16+
```
17+
[Int]
1818
$Param2,
19-
[securestring]
19+
[SecureString]
2020
$Password,
21-
[string]
22-
$username
21+
[String]
22+
$Username
23+
```
2324

2425
Correct:
25-
26-
function MyFunction3 ([PSCredential]$username, $passwords)
27-
{
28-
}
26+
```
27+
function MyFunction3 ([PSCredential]$Username, $Passwords)
28+
{
29+
}
30+
```

0 commit comments

Comments
 (0)