◐ Shell
clean mode source ↗

AvoidUsingPositionalParameter: Check if command has parameters to avoid having az in default CommandAllowList by bergmeister · Pull Request #1850 · PowerShell/PSScriptAnalyzer

@bergmeister

@bergmeister

JamesWTruher

@bergmeister

JamesWTruher

This was referenced

Mar 16, 2024

rjmholt added a commit to rjmholt/PSScriptAnalyzer that referenced this pull request

Feb 23, 2026
UseDeclaredVarsMoreThanAssignments (PowerShell#2013): skip scope-qualified
variable references ($global:, $script:, drive-qualified) when
checking for uses of local variables, preventing false negatives.

AvoidPositionalParameters (PowerShell#1850): skip commands that have no
parameters in the database (e.g. native CLI tools like az).

Co-authored-by: Cursor <cursoragent@cursor.com>