★ wanayoo — archive 1999 https://github.com/PowerShell/PSScriptAnalyzer/issues/1578Nouvelle recherche | Portail wanayoo
Skip to content
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

There's an alert of "the variable is assigned but never used" but it was assigned before. #1578

Closed
Cordobel opened this issue Aug 27, 2020 · 2 comments

Comments

@Cordobel
Copy link

@Cordobel Cordobel commented Aug 27, 2020

I receive the alert within a Foreach-Object structure for previously declared variables. Note lines 18, 22, 26, 30, 34 and 38. I also attached the Atualizar_39_para_40.zip file that contains all the script I wrote.

2020-08-27_152843

Atualizar_39_para_40.zip

The variable 'foo' is assigned but never used. PSScriptAnalyzer(PSUseDeclaredVarsMoreThanAssignments)

@rjmholt
Copy link
Member

@rjmholt rjmholt commented Aug 27, 2020

Duplicate of #1031

@rjmholt rjmholt marked this as a duplicate of #1031 Aug 27, 2020
@msftbot
Copy link

@msftbot msftbot bot commented Aug 28, 2020

This issue has been marked as duplicate and has not had any activity for 1 day. It will be closed for housekeeping purposes.

@msftbot msftbot bot closed this Aug 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.