René's URL Explorer Experiment


Title: Add PSAvoidUsingNewObject Rule by DrSkillIssue · Pull Request #2109 · PowerShell/PSScriptAnalyzer · GitHub

Open Graph Title: Add PSAvoidUsingNewObject Rule by DrSkillIssue · Pull Request #2109 · PowerShell/PSScriptAnalyzer

X Title: Add PSAvoidUsingNewObject Rule by DrSkillIssue · Pull Request #2109 · PowerShell/PSScriptAnalyzer

Description: PR Summary #2046 Adds a new built-in rule PSAvoidUsingNewObject that flags usage of the New-Object cmdlet and recommends using type literals with ::new() syntax instead for better performance and m...

Open Graph Description: PR Summary #2046 Adds a new built-in rule PSAvoidUsingNewObject that flags usage of the New-Object cmdlet and recommends using type literals with ::new() syntax instead for better performance and m...

X Description: PR Summary #2046 Adds a new built-in rule PSAvoidUsingNewObject that flags usage of the New-Object cmdlet and recommends using type literals with ::new() syntax instead for better performance and m...

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

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:b2ad5227-a832-b617-b3d6-58a3dd786461
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE5CA:25AC7:2616972:347FD4D:6964DB25
html-safe-noncecdaba690acbc4b45e165d78ab54ad50219869dfb014be91fbcf24e8baad538ef
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNUNBOjI1QUM3OjI2MTY5NzI6MzQ3RkQ0RDo2OTY0REIyNSIsInZpc2l0b3JfaWQiOiI0NTgwNzE2NjUxNzAxNjU2MzU3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac75eef4b3fb108099f8aae3e7c180e68ddcfa199d5c79d551d291fb79eb825e02
hovercard-subject-tagpull_request:2593811703
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/PowerShell/PSScriptAnalyzer/2109/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/0cfac5a10dd3e44f52cf255ed41e80540fb8b3e00278a3a86852a357e9cf0da2/PowerShell/PSScriptAnalyzer/pull/2109
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0cfac5a10dd3e44f52cf255ed41e80540fb8b3e00278a3a86852a357e9cf0da2/PowerShell/PSScriptAnalyzer/pull/2109
og:image:altPR Summary #2046 Adds a new built-in rule PSAvoidUsingNewObject that flags usage of the New-Object cmdlet and recommends using type literals with ::new() syntax instead for better performance and m...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameDrSkillIssue
hostnamegithub.com
expected-hostnamegithub.com
None5838582163a1256e5ebd5086b7e1dc5cea93d82086c9c8b1395fb50f6ddab28d
turbo-cache-controlno-preview
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8f997e7f84bd1db9537ba403fa68be0da3423594
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/PowerShell/PSScriptAnalyzer/pull/2109#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPSScriptAnalyzer%2Fpull%2F2109
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPSScriptAnalyzer%2Fpull%2F2109
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
Reloadhttps://github.com/PowerShell/PSScriptAnalyzer/pull/2109
Reloadhttps://github.com/PowerShell/PSScriptAnalyzer/pull/2109
Reloadhttps://github.com/PowerShell/PSScriptAnalyzer/pull/2109
PowerShell https://github.com/PowerShell
PSScriptAnalyzerhttps://github.com/PowerShell/PSScriptAnalyzer
Notifications https://github.com/login?return_to=%2FPowerShell%2FPSScriptAnalyzer
Fork 407 https://github.com/login?return_to=%2FPowerShell%2FPSScriptAnalyzer
Star 2.1k https://github.com/login?return_to=%2FPowerShell%2FPSScriptAnalyzer
Code https://github.com/PowerShell/PSScriptAnalyzer
Issues 394 https://github.com/PowerShell/PSScriptAnalyzer/issues
Pull requests 16 https://github.com/PowerShell/PSScriptAnalyzer/pulls
Discussions https://github.com/PowerShell/PSScriptAnalyzer/discussions
Actions https://github.com/PowerShell/PSScriptAnalyzer/actions
Projects 0 https://github.com/PowerShell/PSScriptAnalyzer/projects
Wiki https://github.com/PowerShell/PSScriptAnalyzer/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/PowerShell/PSScriptAnalyzer/security
Please reload this pagehttps://github.com/PowerShell/PSScriptAnalyzer/pull/2109
Insights https://github.com/PowerShell/PSScriptAnalyzer/pulse
Code https://github.com/PowerShell/PSScriptAnalyzer
Issues https://github.com/PowerShell/PSScriptAnalyzer/issues
Pull requests 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 https://github.com/PowerShell/PSScriptAnalyzer/security
Insights https://github.com/PowerShell/PSScriptAnalyzer/pulse
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
Jump to bottomhttps://github.com/PowerShell/PSScriptAnalyzer/pull/2109#issue-comment-box
DrSkillIssuehttps://github.com/DrSkillIssue
PowerShell:mainhttps://github.com/PowerShell/PSScriptAnalyzer/tree/main
DrSkillIssue:avoid-new-objecthttps://github.com/DrSkillIssue/PSScriptAnalyzer/tree/avoid-new-object
Add PSAvoidUsingNewObject Rule https://github.com/PowerShell/PSScriptAnalyzer/pull/2109#top
DrSkillIssuehttps://github.com/DrSkillIssue
PowerShell:mainhttps://github.com/PowerShell/PSScriptAnalyzer/tree/main
DrSkillIssue:avoid-new-objecthttps://github.com/DrSkillIssue/PSScriptAnalyzer/tree/avoid-new-object
Conversation 2 https://github.com/PowerShell/PSScriptAnalyzer/pull/2109
Commits 5 https://github.com/PowerShell/PSScriptAnalyzer/pull/2109/commits
Checks 4 https://github.com/PowerShell/PSScriptAnalyzer/pull/2109/checks
Files changed https://github.com/PowerShell/PSScriptAnalyzer/pull/2109/files
Please reload this pagehttps://github.com/PowerShell/PSScriptAnalyzer/pull/2109
https://github.co/hiddenchars
https://github.com/PowerShell/PSScriptAnalyzer/pull/{{ revealButtonHref }}
https://github.com/DrSkillIssue
DrSkillIssuehttps://github.com/DrSkillIssue
Jun 15, 2025https://github.com/PowerShell/PSScriptAnalyzer/pull/2109#issue-3147791120
Please reload this pagehttps://github.com/PowerShell/PSScriptAnalyzer/pull/2109
#2046https://github.com/PowerShell/PSScriptAnalyzer/issues/2046
PR has a meaningful titlehttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission
Summarized changeshttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission
Change is not breakinghttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#making-breaking-changes
Make sure all .cs, .ps1 and .psm1 files have the correct copyright headerhttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission
Work in Progresshttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---work-in-progress
Please reload this pagehttps://github.com/PowerShell/PSScriptAnalyzer/pull/2109
https://github.com/DrSkillIssue
feat: PSAvoidUsingNewObjecthttps://github.com/PowerShell/PSScriptAnalyzer/pull/2109/commits/51ab7041788e4a96049846bb0bfc2e9b305e592b
51ab704https://github.com/PowerShell/PSScriptAnalyzer/pull/2109/commits/51ab7041788e4a96049846bb0bfc2e9b305e592b
https://github.com/DrSkillIssue
DrSkillIssuehttps://github.com/DrSkillIssue
andyleejordanhttps://github.com/andyleejordan
bergmeisterhttps://github.com/bergmeister
code ownershttps://github.com/PowerShell/PSScriptAnalyzer/blob/ea70855e9d6de8c214757b4dad7b6ed92e8348c8/.github/CODEOWNERS#L2
June 15, 2025 16:41https://github.com/PowerShell/PSScriptAnalyzer/pull/2109#event-18157764580
https://github.com/DrSkillIssue
DrSkillIssuehttps://github.com/DrSkillIssue
Jun 15, 2025https://github.com/PowerShell/PSScriptAnalyzer/pull/2109#issuecomment-2974230848
Please reload this pagehttps://github.com/PowerShell/PSScriptAnalyzer/pull/2109
https://github.com/DrSkillIssue
DrSkillIssuehttps://github.com/DrSkillIssue
Jun 15, 2025 https://github.com/PowerShell/PSScriptAnalyzer/pull/2109#ref-issue-2723254581
Rule request: AvoidNewObjectCmdlet #2046 https://github.com/PowerShell/PSScriptAnalyzer/issues/2046
https://github.com/DrSkillIssue
DrSkillIssuehttps://github.com/DrSkillIssue
Jun 15, 2025https://github.com/PowerShell/PSScriptAnalyzer/pull/2109#event-18159037759
https://github.com/DrSkillIssue
ref: Support variable resolution in hashtables and partial completionshttps://github.com/PowerShell/PSScriptAnalyzer/pull/2109/commits/4422b7e223a773ed3e902f80bd9f72acb9e84577
4422b7ehttps://github.com/PowerShell/PSScriptAnalyzer/pull/2109/commits/4422b7e223a773ed3e902f80bd9f72acb9e84577
https://github.com/DrSkillIssue
DrSkillIssuehttps://github.com/DrSkillIssue
Jun 15, 2025https://github.com/PowerShell/PSScriptAnalyzer/pull/2109#event-18159768655
https://github.com/DrSkillIssue
fix: Add missing Documentationhttps://github.com/PowerShell/PSScriptAnalyzer/pull/2109/commits/da95630832712acc088929363ffaa2d40660279f
da95630https://github.com/PowerShell/PSScriptAnalyzer/pull/2109/commits/da95630832712acc088929363ffaa2d40660279f
https://github.com/DrSkillIssue
DrSkillIssuehttps://github.com/DrSkillIssue
michaeltlombardihttps://github.com/michaeltlombardi
sdwheelerhttps://github.com/sdwheeler
code ownershttps://github.com/PowerShell/PSScriptAnalyzer/blob/ea70855e9d6de8c214757b4dad7b6ed92e8348c8/.github/CODEOWNERS#L6
June 16, 2025 18:23https://github.com/PowerShell/PSScriptAnalyzer/pull/2109#event-18175896505
https://github.com/DrSkillIssue
ref: final restructurehttps://github.com/PowerShell/PSScriptAnalyzer/pull/2109/commits/26c779cdf5c42da4ac5e5edc4a09e7954d8f85ad
26c779chttps://github.com/PowerShell/PSScriptAnalyzer/pull/2109/commits/26c779cdf5c42da4ac5e5edc4a09e7954d8f85ad
https://github.com/liamjpeters
liamjpetershttps://github.com/liamjpeters
Aug 17, 2025https://github.com/PowerShell/PSScriptAnalyzer/pull/2109#issuecomment-3194449240
Please reload this pagehttps://github.com/PowerShell/PSScriptAnalyzer/pull/2109
@DrSkillIssuehttps://github.com/DrSkillIssue
https://github.com/DrSkillIssue/PSScriptAnalyzer/blob/26c779cdf5c42da4ac5e5edc4a09e7954d8f85ad/Rules/AvoidUsingNewObject.cs#L423-L425https://github.com/DrSkillIssue/PSScriptAnalyzer/blob/26c779cdf5c42da4ac5e5edc4a09e7954d8f85ad/Rules/AvoidUsingNewObject.cs#L423-L425
https://github.com/DrSkillIssue/PSScriptAnalyzer/blob/26c779cdf5c42da4ac5e5edc4a09e7954d8f85ad/Rules/AvoidUsingNewObject.cs#L134-L138https://github.com/DrSkillIssue/PSScriptAnalyzer/blob/26c779cdf5c42da4ac5e5edc4a09e7954d8f85ad/Rules/AvoidUsingNewObject.cs#L134-L138
Jason Shirk's Show-ASThttps://github.com/lzybkr/ShowPSAst
https://private-user-images.githubusercontent.com/6566675/478782582-de5c9a40-b926-4edb-b382-71cda0008efa.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjgyMTc2ODEsIm5iZiI6MTc2ODIxNzM4MSwicGF0aCI6Ii82NTY2Njc1LzQ3ODc4MjU4Mi1kZTVjOWE0MC1iOTI2LTRlZGItYjM4Mi03MWNkYTAwMDhlZmEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDExMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjAxMTJUMTEyOTQxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NDZhZTZkZTc5NzI2NDQ2MGQ5YzNmYWMxOTg5ZGU5YWM2MTdhNzM4YjM2MjgxMWQ3NzhjMzFlNmJiNzQ2ZjM2ZCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.QE0jKmAkGpUbhNwpIC8wdLGQUvU4RFjEZZloUN-A4-M
PSScriptAnalyzer/Tests/Engine/GetScriptAnalyzerRule.tests.ps1https://github.com/PowerShell/PSScriptAnalyzer/blob/ea70855e9d6de8c214757b4dad7b6ed92e8348c8/Tests/Engine/GetScriptAnalyzerRule.tests.ps1#L64-L76
ea70855https://github.com/PowerShell/PSScriptAnalyzer/commit/ea70855e9d6de8c214757b4dad7b6ed92e8348c8
passinghttps://github.com/DrSkillIssue/PSScriptAnalyzer/blob/26c779cdf5c42da4ac5e5edc4a09e7954d8f85ad/Tests/Rules/AvoidUsingNewObject.ps1
failinghttps://github.com/DrSkillIssue/PSScriptAnalyzer/blob/26c779cdf5c42da4ac5e5edc4a09e7954d8f85ad/Tests/Rules/AvoidUsingNewObjectNoViolations.ps1
Please reload this pagehttps://github.com/PowerShell/PSScriptAnalyzer/pull/2109
https://github.com/bergmeister
Merge branch 'main' into avoid-new-objecthttps://github.com/PowerShell/PSScriptAnalyzer/pull/2109/commits/6973dfbbcab9861d396a1747a71bb8e6e7815e47
6973dfbhttps://github.com/PowerShell/PSScriptAnalyzer/pull/2109/commits/6973dfbbcab9861d396a1747a71bb8e6e7815e47
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPSScriptAnalyzer%2Fpull%2F2109
https://github.com/andyleejordan
andyleejordan https://github.com/andyleejordan
https://github.com/bergmeister
bergmeister https://github.com/bergmeister
https://github.com/sdwheeler
sdwheeler https://github.com/sdwheeler
https://github.com/michaeltlombardi
michaeltlombardi https://github.com/michaeltlombardi
Please reload this pagehttps://github.com/PowerShell/PSScriptAnalyzer/pull/2109
https://github.com/DrSkillIssue
https://github.com/liamjpeters
https://github.com/bergmeister
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.