fix: rename $args to $psArgs (PSAvoidAssignmentToAutomaticVariable) #7

Merged
skr merged 1 commit from fix/code-review into main 2026-05-08 12:49:03 +00:00
Owner

Renames the $args local variable used in elevation/PS7-relaunch helpers to $psArgs. $args is a PowerShell automatic variable; reusing it as a local trips PSScriptAnalyzer rule PSAvoidAssignmentToAutomaticVariable.

Renames the $args local variable used in elevation/PS7-relaunch helpers to $psArgs. $args is a PowerShell automatic variable; reusing it as a local trips PSScriptAnalyzer rule PSAvoidAssignmentToAutomaticVariable.
fix: rename $args to $psArgs (PSAvoidAssignmentToAutomaticVariable)
All checks were successful
CI / lint (push) Successful in 20s
CI / test (push) Successful in 8s
CI / release (push) Has been skipped
CI / lint (pull_request) Successful in 18s
CI / test (pull_request) Successful in 9s
CI / release (pull_request) Has been skipped
15439d80e8
$args is a PowerShell automatic variable that holds parameters not
bound by name. Reusing it as a local variable for Start-Process arguments
shadows the automatic and trips PSScriptAnalyzer's
PSAvoidAssignmentToAutomaticVariable rule. Renamed to $psArgs across
the elevation/PS7-relaunch helpers in CreateWin11VHDX.ps1, BCD-Cleanup.ps1
and Create-BCDEntry.ps1.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
skr merged commit 5af79deb46 into main 2026-05-08 12:49:03 +00:00
skr deleted branch fix/code-review 2026-05-08 12:49:03 +00:00
Sign in to join this conversation.
No description provided.