We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have some code that is being flagged for the rule PSUseDeclaredVarsMoreThenAssignements.
SUseDeclaredVarsMoreThanAssignment Warning MSFT_xWebA 876 The variable 'newParts' is assigned but never used. s ppPool.psm 1
Context can be found here
Code in question:
$newParts = @() 1..($parts.Count -1) | ForEach-Object { $newParts += $parts[$_] } $newName = ($newParts -join '.')
As we can see the variable is used in a few places shortly after its creation. I am running version 1.9.0 downloaded from the gallery.
The text was updated successfully, but these errors were encountered:
This issue has been raised in #636. Solving this requires some major reworking of the rule. marking it as duplicate and closing it.
Sorry, something went wrong.
No branches or pull requests
I have some code that is being flagged for the rule PSUseDeclaredVarsMoreThenAssignements.
Context can be found here
Code in question:
As we can see the variable is used in a few places shortly after its creation. I am running version 1.9.0 downloaded from the gallery.
The text was updated successfully, but these errors were encountered: