| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:7cce5e62-096f-8d1a-2770-dee39353db5c |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D3DA:2A130F:11E9436:194DDC2:6AFCD2E7 |
| html-safe-nonce | 6b59c855a5b9119a130feb58cc097ed13fc471f2e455e75644d2fd82fc2c87fc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEM0RBOjJBMTMwRjoxMUU5NDM2OjE5NEREQzI6NkFGQ0QyRTciLCJ2aXNpdG9yX2lkIjoiNDM4NDE4NTI2MTg2NTM1ODA1NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 23fbf026f48380a33ff5d6941275ba8eae4b0fd7e5aab3a8c4035b4303cb8949 |
| hovercard-subject-tag | pull_request:4922847605 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/PowerShell/PSScriptAnalyzer/2227/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/2daf67e37924be638482ec24f03f296ad2de0889f326d9b661c035105b765525/PowerShell/PSScriptAnalyzer/pull/2227 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2daf67e37924be638482ec24f03f296ad2de0889f326d9b661c035105b765525/PowerShell/PSScriptAnalyzer/pull/2227 |
| og:image:alt | PR Summary
PSUseDeclaredVarsMoreThanAssignments now flags unused variables in a multiple assignment such as $a, $b = $null. Before, it only flagged assignments whose left-hand side was a single var... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | 0x000NULL |
| hostname | github.com |
| expected-hostname | github.com |
| None | e3084aead77cbcb4f4904fba53851fa1a0546b0dec3619bd250815e72588dc6d |
| turbo-cache-control | no-cache |
| go-import | github.com/PowerShell/PSScriptAnalyzer git https://github.com/PowerShell/PSScriptAnalyzer.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 33149177 |
| octolytics-dimension-repository_nwo | PowerShell/PSScriptAnalyzer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 33149177 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PSScriptAnalyzer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5410e4bebd3e45b138c853ecef3992279d86d5af |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/PowerShell/PSScriptAnalyzer/pull/2227#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPSScriptAnalyzer%2Fpull%2F2227 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPSScriptAnalyzer%2Fpull%2F2227 |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=PowerShell%2FPSScriptAnalyzer |
| Reload | https://github.com/PowerShell/PSScriptAnalyzer/pull/2227 |
| Reload | https://github.com/PowerShell/PSScriptAnalyzer/pull/2227 |
| Reload | https://github.com/PowerShell/PSScriptAnalyzer/pull/2227 |
| PowerShell | https://github.com/PowerShell |
| PSScriptAnalyzer | https://github.com/PowerShell/PSScriptAnalyzer |
| Code | https://github.com/PowerShell/PSScriptAnalyzer |
| Issues407 (407) | https://github.com/PowerShell/PSScriptAnalyzer/issues |
| Pull requests34 (34) | https://github.com/PowerShell/PSScriptAnalyzer/pulls |
| Discussions | https://github.com/PowerShell/PSScriptAnalyzer/discussions |
| Actions | https://github.com/PowerShell/PSScriptAnalyzer/actions |
| Projects | https://github.com/PowerShell/PSScriptAnalyzer/projects |
| Wiki | https://github.com/PowerShell/PSScriptAnalyzer/wiki |
| Security and quality | https://github.com/PowerShell/PSScriptAnalyzer/security |
| Insights | https://github.com/PowerShell/PSScriptAnalyzer/insights |
| https://github.com/PowerShell/PSScriptAnalyzer |
| Ethan Aldrich (0x000NULL) | https://github.com/0x000NULL |
| PowerShell:main | https://github.com/PowerShell/PSScriptAnalyzer/tree/main |
| 0x000NULL:fix/2164-multi-assign | https://github.com/0x000NULL/PSScriptAnalyzer/tree/fix/2164-multi-assign |
| Conversation | https://github.com/PowerShell/PSScriptAnalyzer/pull/2227 |
| Commits2 (2) | https://github.com/PowerShell/PSScriptAnalyzer/pull/2227/commits |
| Checks | https://github.com/PowerShell/PSScriptAnalyzer/pull/2227/checks |
| Files changed | https://github.com/PowerShell/PSScriptAnalyzer/pull/2227/files |
| Flag unused variables in multiple assignments in UseDeclaredVarsMoreThanAssignments | https://github.com/PowerShell/PSScriptAnalyzer/pull/2227#top |
| Ethan Aldrich (0x000NULL) | https://github.com/0x000NULL |
| PowerShell:main | https://github.com/PowerShell/PSScriptAnalyzer/tree/main |
| 0x000NULL:fix/2164-multi-assign | https://github.com/0x000NULL/PSScriptAnalyzer/tree/fix/2164-multi-assign |
|
| https://github.com/0x000NULL |
| Ethan Aldrich (0x000NULL) | https://github.com/0x000NULL |
| Oct 19, 2026 | https://github.com/PowerShell/PSScriptAnalyzer/pull/2227#issue-5926118332 |
| #2164 | https://github.com/PowerShell/PSScriptAnalyzer/issues/2164 |
| #2182 | https://github.com/PowerShell/PSScriptAnalyzer/pull/2182 |
| Please reload this page | https://github.com/PowerShell/PSScriptAnalyzer/pull/2227 |
|
| https://github.com/0x000NULL |
| Flag unused variables in multiple assignments | https://github.com/PowerShell/PSScriptAnalyzer/pull/2227/commits/53cc1aad77c23785962ccf0c994e09e15b784b44 |
| 53cc1aa | https://github.com/PowerShell/PSScriptAnalyzer/pull/2227/commits/53cc1aad77c23785962ccf0c994e09e15b784b44 |
| PowerShell#2164 | https://github.com/PowerShell/PSScriptAnalyzer/issues/2164 |
|
| https://github.com/apps/copilot-pull-request-reviewer |
| Copilot | https://github.com/apps/copilot-pull-request-reviewer |
| October 19, 2026 14:49 | https://github.com/PowerShell/PSScriptAnalyzer/pull/2227#event-33655673767 |
| https://github.com/0x000NULL |
| Ethan Aldrich (0x000NULL) | https://github.com/0x000NULL |
| Christoph Bergmeister (bergmeister) | https://github.com/bergmeister |
| code owners | https://github.com/PowerShell/PSScriptAnalyzer/blob/e14c382a7c2ad0883e98aee611eee9b875d8bb30/.github/CODEOWNERS#L2 |
| October 19, 2026 14:49 | https://github.com/PowerShell/PSScriptAnalyzer/pull/2227#event-33655678928 |
| started reviewing | https://github.com/PowerShell/PSScriptAnalyzer/sessions/703725e5-b325-4513-bfee-f46eca83c6fa |
| Ethan Aldrich (0x000NULL) | https://github.com/0x000NULL |
| October 19, 2026 14:50 | https://github.com/PowerShell/PSScriptAnalyzer/pull/2227#event-33655734729 |
|
View session
| https://github.com/PowerShell/PSScriptAnalyzer/sessions/703725e5-b325-4513-bfee-f46eca83c6fa |
|
| https://github.com/apps/copilot-pull-request-reviewer |
| Copilot | https://github.com/apps/copilot-pull-request-reviewer |
|
Oct 19, 2026
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2227#pullrequestreview-5573425965 |
|
View reviewed changes
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2227/files/53cc1aad77c23785962ccf0c994e09e15b784b44 |
| Copilot | https://github.com/apps/copilot-pull-request-reviewer |
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2227#pullrequestreview-5573425965 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Repeated writes incorrectly counted as variable uses | https://github.com/PowerShell/PSScriptAnalyzer/pull/2227#discussion_r4315293388 |
| Index references incorrectly classified as assignment targets | https://github.com/PowerShell/PSScriptAnalyzer/pull/2227#discussion_r4315293489 |
| #2164 | https://github.com/PowerShell/PSScriptAnalyzer/issues/2164 |
| Please reload this page | https://github.com/PowerShell/PSScriptAnalyzer/pull/2227 |
| Rules/UseDeclaredVarsMoreThanAssignments.cs | https://github.com/PowerShell/PSScriptAnalyzer/pull/2227/files/53cc1aad77c23785962ccf0c994e09e15b784b44#diff-91092df8f2f2d9a383000d9f9b88ed7f23dbba1b89ada7bdd6210161c43d3fa9 |
| Please reload this page | https://github.com/PowerShell/PSScriptAnalyzer/pull/2227 |
| Rules/UseDeclaredVarsMoreThanAssignments.cs | https://github.com/PowerShell/PSScriptAnalyzer/pull/2227/files/53cc1aad77c23785962ccf0c994e09e15b784b44#diff-91092df8f2f2d9a383000d9f9b88ed7f23dbba1b89ada7bdd6210161c43d3fa9 |
| Please reload this page | https://github.com/PowerShell/PSScriptAnalyzer/pull/2227 |
| https://github.com/0x000NULL |
| Ethan Aldrich (0x000NULL) | https://github.com/0x000NULL |
| Oct 19, 2026 | https://github.com/PowerShell/PSScriptAnalyzer/pull/2227#issuecomment-6270352513 |
| Please reload this page | https://github.com/PowerShell/PSScriptAnalyzer/pull/2227 |
|
| https://github.com/0x000NULL |
| Only treat assigned variables of a multiple assignment as writes | https://github.com/PowerShell/PSScriptAnalyzer/pull/2227/commits/f875f8fe1ba907708e6a8f3b917442fec39a3ec9 |
| f875f8f | https://github.com/PowerShell/PSScriptAnalyzer/pull/2227/commits/f875f8fe1ba907708e6a8f3b917442fec39a3ec9 |
| https://github.com/bergmeister |
| Christoph Bergmeister (bergmeister) | https://github.com/bergmeister |
| Copilot | https://github.com/apps/copilot-pull-request-reviewer |
| October 22, 2026 21:41 | https://github.com/PowerShell/PSScriptAnalyzer/pull/2227#event-33996413303 |
| started reviewing | https://github.com/PowerShell/PSScriptAnalyzer/sessions/cb1e1d7f-ff05-4b64-86b4-de668f82ab08 |
| Christoph Bergmeister (bergmeister) | https://github.com/bergmeister |
| October 22, 2026 21:42 | https://github.com/PowerShell/PSScriptAnalyzer/pull/2227#event-33996457352 |
|
View session
| https://github.com/PowerShell/PSScriptAnalyzer/sessions/cb1e1d7f-ff05-4b64-86b4-de668f82ab08 |
|
| https://github.com/apps/copilot-pull-request-reviewer |
| Copilot | https://github.com/apps/copilot-pull-request-reviewer |
|
Oct 22, 2026
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2227#pullrequestreview-5621254677 |
|
View reviewed changes
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2227/files/f875f8fe1ba907708e6a8f3b917442fec39a3ec9 |
| Copilot | https://github.com/apps/copilot-pull-request-reviewer |
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2227#pullrequestreview-5621254677 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Handle typed assignment targets in variable reassignment matching | https://github.com/PowerShell/PSScriptAnalyzer/pull/2227#discussion_r4353861312 |
| Index references incorrectly classified as assignment targets | https://github.com/PowerShell/PSScriptAnalyzer/pull/2227#discussion_r4315293489 |
| Repeated writes incorrectly counted as variable uses | https://github.com/PowerShell/PSScriptAnalyzer/pull/2227#discussion_r4315293388 |
| Please reload this page | https://github.com/PowerShell/PSScriptAnalyzer/pull/2227 |
| Rules/UseDeclaredVarsMoreThanAssignments.cs | https://github.com/PowerShell/PSScriptAnalyzer/pull/2227/files/f875f8fe1ba907708e6a8f3b917442fec39a3ec9#diff-91092df8f2f2d9a383000d9f9b88ed7f23dbba1b89ada7bdd6210161c43d3fa9 |
| https://github.co/hiddenchars |
| https://github.com/PowerShell/PSScriptAnalyzer/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPSScriptAnalyzer%2Fpull%2F2227 |
|
Copilot code review
| https://github.com/apps/copilot-pull-request-reviewer |
|
Copilot
| https://github.com/apps/copilot-pull-request-reviewer |
| Learn more about Copilot code review. | https://gh.io/copilot-code-review-docs |
|
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2227/files/f875f8fe1ba907708e6a8f3b917442fec39a3ec9 |
|
| https://github.com/bergmeister |
|
Christoph Bergmeister (bergmeister)
| https://github.com/bergmeister |
| Please reload this page | https://github.com/PowerShell/PSScriptAnalyzer/pull/2227 |
|
PSUseDeclaredVarsMoreThanAssignments and assigning multiple variables
| https://github.com/PowerShell/PSScriptAnalyzer/issues/2164 |
| Please reload this page | https://github.com/PowerShell/PSScriptAnalyzer/pull/2227 |
|
| https://github.com/0x000NULL |
|
| https://github.com/apps/copilot-pull-request-reviewer |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |