PSScriptAnalyzer icon indicating copy to clipboard operation
PSScriptAnalyzer copied to clipboard

PSUseDeclaredVarsMoreThanAssignments unaware of global/env variables

Open mhendric opened this issue 9 years ago • 1 comments

The PSUseDeclaredVarsMoreThanAssignments rule should not fire when setting '$global:DSCMachineStatus = 1' within a DSC resource to signal that the machine needs a reboot.

mhendric avatar Nov 19 '16 23:11 mhendric

I think this is fixed by now but I would need to double check.

bergmeister avatar Mar 15 '18 22:03 bergmeister