Skip to content

PSUseDeclaredVarsMoreThanAssignments unaware of global/env variables #663

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mhendric opened this issue Nov 19, 2016 · 1 comment
Open

Comments

@mhendric
Copy link

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

@bergmeister
Copy link
Collaborator

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

@bergmeister bergmeister modified the milestones: 1612, Backlog May 11, 2018
@rjmholt rjmholt changed the title PSUseDeclaredVarsMoreThanAssignments Should Not Be Triggered by Setting DSCMachineStatus PSUseDeclaredVarsMoreThanAssignments unaware of global/env variables Feb 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants