PSScriptAnalyzer
PSScriptAnalyzer copied to clipboard
PSUseDeclaredVarsMoreThanAssignments unaware of global/env variables
The PSUseDeclaredVarsMoreThanAssignments rule should not fire when setting '$global:DSCMachineStatus = 1' within a DSC resource to signal that the machine needs a reboot.
I think this is fixed by now but I would need to double check.