| 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 | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:e8036086-e2dd-a866-06e4-d2c551405691 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C426:2EA255:268C5B:32F72B:6AFD0459 |
| html-safe-nonce | 6b9491bf59bced88fc235626a4cd5bb7b3f86a9997dc6db763cbc77b6c9f5160 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDI2OjJFQTI1NToyNjhDNUI6MzJGNzJCOjZBRkQwNDU5IiwidmlzaXRvcl9pZCI6IjIzOTUyMDQzMTk2MTI1Njg2NjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | db35d6f4e9b0a343b5b3e30b9d63a8bdca8d84b1e74b9a9e47b7e916f2b57a72 |
| hovercard-subject-tag | pull_request:3566629671 |
| 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 | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/files |
| twitter:image | https://avatars.githubusercontent.com/u/8080834?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/8080834?s=400&v=4 |
| og:image:alt | PR Summary
New rule to push for the use of hash tables rather than dynamically creating vriables in the general variable pool.
See also: https://stackoverflow.com/a/68830451/1701026
PR Checklist
... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8fd5a24ae29aa78df114eaaf1f9a839e8c3b7c0d27549e4f54678bb7cf3166d4 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | dd0990b833f227378ab84f1d9519db1a04660550 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPSScriptAnalyzer%2Fpull%2F2178%2Ffiles |
| 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%2F2178%2Ffiles |
| 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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=PowerShell%2FPSScriptAnalyzer |
| Reload | https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/files |
| Reload | https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/files |
| Reload | https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/files |
| 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 |
| Sign up for GitHub
| https://github.com/signup?return_to=%2FPowerShell%2FPSScriptAnalyzer%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2FPowerShell%2FPSScriptAnalyzer%2Fissues%2Fnew%2Fchoose |
| Andy Jordan (andyleejordan) | https://github.com/andyleejordan |
| PowerShell:main | https://github.com/PowerShell/PSScriptAnalyzer/tree/main |
| iRon7:#1706-AvoidDynamicVariableNames2 | https://github.com/iRon7/PSScriptAnalyzer/tree/%231706-AvoidDynamicVariableNames2 |
|
Conversation
20
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2178 |
|
Commits
14
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/commits |
|
Checks
4
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/checks |
|
Files changed
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/files |
| Please reload this page | https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/files |
|
Add new AvoidDynamicallyCreatingVariableNames rule
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/files#top |
|
Show all changes
14 commits
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/files |
|
0e873c2
1st commit
iRon7 Apr 21, 2026
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/commits/0e873c28fe829b3ea4375a1cda17078ec3db0d02 |
|
b4aa1a7
Avoid dynamic variable names rule implementation and tests
iRon7 Apr 22, 2026
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/commits/b4aa1a7d2ccc6f06aedb4e059b5538120d5167dd |
|
065c07e
Removed `using System.Linq;` and added some tests
iRon7 Apr 22, 2026
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/commits/065c07e4aa9fd821dba65bba301cb68d939b6f43 |
|
ce37bb8
Covering Liam's feedback
iRon7 Apr 29, 2026
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/commits/ce37bb8b27109b13451d5fa21f7eccd3ebf574c7 |
|
8a7bbb0
Update docs/Rules/AvoidDynamicallyCreatingVariableNames.md
iRon7 Apr 29, 2026
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/commits/8a7bbb0fc5e09c8380d2d9c49603e5bcc514a082 |
|
ba0f9a1
Update docs/Rules/AvoidDynamicallyCreatingVariableNames.md
iRon7 Apr 29, 2026
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/commits/ba0f9a103999fa1f3c3d6fcd3e5dec2c98cffd26 |
|
680a3cc
Update Rules/Strings.resx
iRon7 Apr 29, 2026
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/commits/680a3cc8c712c3da083fda7e4236a5c1e5c3df97 |
|
b7b7f19
Corrected alphabetical order of rules in README.md
iRon7 Apr 29, 2026
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/commits/b7b7f1984d2dd6514e8a54b61e2d10e9f0d9af22 |
|
ae989fd
Corrected $ruleMessage in Test
iRon7 Apr 29, 2026
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/commits/ae989fde74e8bbe29c969d35f204e02337eef7e2 |
|
6fe86a9
Changed newVariableAst.Parent.Extent to newVariableAst.Extent
iRon7 Apr 29, 2026
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/commits/6fe86a94db66ffc25f7f441b397f904339600e7e |
|
a20bdf5
Merge branch 'main' into #1706-AvoidDynamicVariableNames2
iRon7 May 5, 2026
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/commits/a20bdf5b7b8c55cc79695ed20d30c06f9fd47398 |
|
3e546a4
Made rule configurable (disabled) and updated documentation and tests…
iRon7 May 13, 2026
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/commits/3e546a4844b2e869c44ca2de5e44a3f9383155c1 |
|
1a59705
Change rule name from PSAvoidExclaimOperator to PSAvoidDynamicallyCre…
iRon7 May 17, 2026
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/commits/1a597058b11e0cdc88ce479cfc241499626daecf |
|
578d02f
Merge branch 'main' into #1706-AvoidDynamicVariableNames2
iRon7 May 17, 2026
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/commits/578d02f0f727130619186b1e1a475c49460d23f6 |
|
Clear filters
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/files |
| Please reload this page | https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/files |
| Please reload this page | https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/files |
|
AvoidDynamicallyCreatingVariableNames.cs
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/files#diff-be64b54345393a21aa05cd1ec14873362d9360b2149deca138ed13764724c767 |
|
Strings.resx
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/files#diff-dcff94e6a5c5ee1dc9226dea0752aba08f8f1f53020b4a0e67f1ac944036b8c3 |
|
GetScriptAnalyzerRule.tests.ps1
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/files#diff-2999e95c336a14ae8a92b0c336e6709d25ccba6062c55462f0b9cc6d2f87ed68 |
|
AvoidDynamicallyCreatingVariableNames.tests.ps1
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/files#diff-879e45c8c9cda1fb9dea842431a5022a37b4f70dec873f09e096d7c7e9644607 |
|
AvoidDynamicallyCreatingVariableNames.md
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/files#diff-6776f7021c3cd6384a4a2c6c035fa7e55433cf188caebdd480e1f77a71df7a67 |
|
README.md
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/files#diff-aa3ee3522a3ec73c6f36f2fe020f02ee8517299d57cfe67d99ff0efd2038a0d5 |
|
| https://github.com/PowerShell/PSScriptAnalyzer/blob/main/.github/CODEOWNERS#L2 |
| Rules/AvoidDynamicallyCreatingVariableNames.cs | https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/files#diff-be64b54345393a21aa05cd1ec14873362d9360b2149deca138ed13764724c767 |
|
View file
| https://github.com/iRon7/PSScriptAnalyzer/blob/578d02f0f727130619186b1e1a475c49460d23f6/Rules/AvoidDynamicallyCreatingVariableNames.cs |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/{{ revealButtonHref }} |
| Please reload this page | https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/files |
|
| https://github.com/PowerShell/PSScriptAnalyzer/blob/main/.github/CODEOWNERS#L2 |
| Rules/Strings.resx | https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/files#diff-dcff94e6a5c5ee1dc9226dea0752aba08f8f1f53020b4a0e67f1ac944036b8c3 |
|
View file
| https://github.com/iRon7/PSScriptAnalyzer/blob/578d02f0f727130619186b1e1a475c49460d23f6/Rules/Strings.resx |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/{{ revealButtonHref }} |
|
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/files#diff-dcff94e6a5c5ee1dc9226dea0752aba08f8f1f53020b4a0e67f1ac944036b8c3 |
|
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/files#diff-dcff94e6a5c5ee1dc9226dea0752aba08f8f1f53020b4a0e67f1ac944036b8c3 |
|
| https://github.com/PowerShell/PSScriptAnalyzer/blob/main/.github/CODEOWNERS#L2 |
| Tests/Engine/GetScriptAnalyzerRule.tests.ps1 | https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/files#diff-2999e95c336a14ae8a92b0c336e6709d25ccba6062c55462f0b9cc6d2f87ed68 |
|
View file
| https://github.com/iRon7/PSScriptAnalyzer/blob/578d02f0f727130619186b1e1a475c49460d23f6/Tests/Engine/GetScriptAnalyzerRule.tests.ps1 |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/{{ revealButtonHref }} |
|
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/files#diff-2999e95c336a14ae8a92b0c336e6709d25ccba6062c55462f0b9cc6d2f87ed68 |
|
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/files#diff-2999e95c336a14ae8a92b0c336e6709d25ccba6062c55462f0b9cc6d2f87ed68 |
|
| https://github.com/PowerShell/PSScriptAnalyzer/blob/main/.github/CODEOWNERS#L2 |
| Tests/Rules/AvoidDynamicallyCreatingVariableNames.tests.ps1 | https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/files#diff-879e45c8c9cda1fb9dea842431a5022a37b4f70dec873f09e096d7c7e9644607 |
|
View file
| https://github.com/iRon7/PSScriptAnalyzer/blob/578d02f0f727130619186b1e1a475c49460d23f6/Tests/Rules/AvoidDynamicallyCreatingVariableNames.tests.ps1 |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/{{ revealButtonHref }} |
| Please reload this page | https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/files |
| Please reload this page | https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/files |
|
| 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 |