AvoidUsingPositionalParameter: Check if command has parameters to avoid having az in default CommandAllowList by bergmeister · Pull Request #1850 · PowerShell/PSScriptAnalyzer
This was referenced
rjmholt added a commit to rjmholt/PSScriptAnalyzer that referenced this pull request
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters