Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
corrections in AvoidUsingPositionalParameters.md
  • Loading branch information
God-damnit-all authored May 23, 2023
commit f9f9ea6467cdb39afc995e0520f8c589043033e6
4 changes: 2 additions & 2 deletions docs/Rules/AvoidUsingPositionalParameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ supplied. A simple example where the risk of using positional parameters is negl

```powershell
Rules = @{
AvoidUsingPositionalParameters = @{
PSAvoidUsingPositionalParameters = @{
CommandAllowList = 'az', 'Join-Path'
Enable = $true
}
Expand All @@ -33,7 +33,7 @@ Rules = @{

### Parameters

#### AvoidUsingPositionalParameters: string[] (Default value is 'az')
#### CommandAllowList: string[] (Default value is 'az')

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.

Expand Down