René's URL Explorer Experiment


Title: Add new AvoidDynamicallyCreatingVariableNames rule by iRon7 · Pull Request #2178 · PowerShell/PSScriptAnalyzer · GitHub

Open Graph Title: Add new AvoidDynamicallyCreatingVariableNames rule by iRon7 · Pull Request #2178 · PowerShell/PSScriptAnalyzer

X Title: Add new AvoidDynamicallyCreatingVariableNames rule by iRon7 · Pull Request #2178 · PowerShell/PSScriptAnalyzer

Description: 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 PR has a meaningful title Use the present tense and imperative mood when describing your changes Summarized changes Change is not breaking Make sure all .cs, .ps1 and .psm1 files have the correct copyright header Make sure you've added a new test if existing tests do not effectively test the code changed and/or updated documentation This PR is ready to merge and is not Work in Progress. If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready.

Open Graph Description: 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 ...

X Description: 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 ...

Opengraph URL: https://github.com/PowerShell/PSScriptAnalyzer/pull/2178

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,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-controllerpull_requests
route-actionfiles
fetch-noncev2:e8036086-e2dd-a866-06e4-d2c551405691
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC426:2EA255:268C5B:32F72B:6AFD0459
html-safe-nonce6b9491bf59bced88fc235626a4cd5bb7b3f86a9997dc6db763cbc77b6c9f5160
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDI2OjJFQTI1NToyNjhDNUI6MzJGNzJCOjZBRkQwNDU5IiwidmlzaXRvcl9pZCI6IjIzOTUyMDQzMTk2MTI1Njg2NjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacdb35d6f4e9b0a343b5b3e30b9d63a8bdca8d84b1e74b9a9e47b7e916f2b57a72
hovercard-subject-tagpull_request:3566629671
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/PowerShell/PSScriptAnalyzer/pull/2178/files
twitter:imagehttps://avatars.githubusercontent.com/u/8080834?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/8080834?s=400&v=4
og:image:altPR 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_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None8fd5a24ae29aa78df114eaaf1f9a839e8c3b7c0d27549e4f54678bb7cf3166d4
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/PowerShell/PSScriptAnalyzer git https://github.com/PowerShell/PSScriptAnalyzer.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id33149177
octolytics-dimension-repository_nwoPowerShell/PSScriptAnalyzer
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id33149177
octolytics-dimension-repository_network_root_nwoPowerShell/PSScriptAnalyzer
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasedd0990b833f227378ab84f1d9519db1a04660550
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/PowerShell/PSScriptAnalyzer/pull/2178/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPSScriptAnalyzer%2Fpull%2F2178%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPSScriptAnalyzer%2Fpull%2F2178%2Ffiles
Sign uphttps://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
Reloadhttps://github.com/PowerShell/PSScriptAnalyzer/pull/2178/files
Reloadhttps://github.com/PowerShell/PSScriptAnalyzer/pull/2178/files
Reloadhttps://github.com/PowerShell/PSScriptAnalyzer/pull/2178/files
PowerShellhttps://github.com/PowerShell
PSScriptAnalyzerhttps://github.com/PowerShell/PSScriptAnalyzer
Codehttps://github.com/PowerShell/PSScriptAnalyzer
Issues407 (407)https://github.com/PowerShell/PSScriptAnalyzer/issues
Pull requests34 (34)https://github.com/PowerShell/PSScriptAnalyzer/pulls
Discussionshttps://github.com/PowerShell/PSScriptAnalyzer/discussions
Actionshttps://github.com/PowerShell/PSScriptAnalyzer/actions
Projectshttps://github.com/PowerShell/PSScriptAnalyzer/projects
Wikihttps://github.com/PowerShell/PSScriptAnalyzer/wiki
Security and qualityhttps://github.com/PowerShell/PSScriptAnalyzer/security
Insightshttps://github.com/PowerShell/PSScriptAnalyzer/insights
Sign up for GitHub https://github.com/signup?return_to=%2FPowerShell%2FPSScriptAnalyzer%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FPowerShell%2FPSScriptAnalyzer%2Fissues%2Fnew%2Fchoose
Andy Jordan (andyleejordan)https://github.com/andyleejordan
PowerShell:mainhttps://github.com/PowerShell/PSScriptAnalyzer/tree/main
iRon7:#1706-AvoidDynamicVariableNames2https://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 pagehttps://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 pagehttps://github.com/PowerShell/PSScriptAnalyzer/pull/2178/files
Please reload this pagehttps://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.cshttps://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 pagehttps://github.com/PowerShell/PSScriptAnalyzer/pull/2178/files
https://github.com/PowerShell/PSScriptAnalyzer/blob/main/.github/CODEOWNERS#L2
Rules/Strings.resxhttps://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.ps1https://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.ps1https://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 pagehttps://github.com/PowerShell/PSScriptAnalyzer/pull/2178/files
Please reload this pagehttps://github.com/PowerShell/PSScriptAnalyzer/pull/2178/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.