-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance UseDeclaredVarsMoreThanAssignments to detect also take into a…
…ccount the usage of Get-Variable with an array of variables and usage of named parameter -Name (#1310) * Parse Array syntax of Get-Variable * check named parameter better to be -Name or shortened versions and add more tests * Fix last edge cases and refactor into method * Apply PR suggestions: Use shorter pattern matching syntax and inline/simplify local method
- Loading branch information
1 parent
4f82d81
commit bba8fed
Showing
2 changed files
with
86 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters