Skip to content

Commit 4b976a2

Browse files
corrections in AvoidUsingPositionalParameters.md (#1917)
1 parent da2c4fa commit 4b976a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/Rules/AvoidUsingPositionalParameters.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ supplied. A simple example where the risk of using positional parameters is negl
2424

2525
```powershell
2626
Rules = @{
27-
AvoidUsingPositionalParameters = @{
27+
PSAvoidUsingPositionalParameters = @{
2828
CommandAllowList = 'az', 'Join-Path'
2929
Enable = $true
3030
}
@@ -33,7 +33,7 @@ Rules = @{
3333

3434
### Parameters
3535

36-
#### AvoidUsingPositionalParameters: string[] (Default value is 'az')
36+
#### CommandAllowList: string[] (Default value is 'az')
3737

3838
Commands to be excluded from this rule. `az` is excluded by default because starting with version 2.40.0 the entrypoint of the AZ CLI became an `az.ps1` script but this script does not have any named parameters and just passes them on using `$args` as is to the Python process that it starts, therefore it is still a CLI and not a PowerShell command.
3939

0 commit comments

Comments
 (0)