René's URL Explorer Experiment


Title: Avoid Linq `Single` when `Count` is known by xtqqczze · Pull Request #15676 · PowerShell/PowerShell · GitHub

Open Graph Title: Avoid Linq `Single` when `Count` is known by xtqqczze · Pull Request #15676 · PowerShell/PowerShell

X Title: Avoid Linq `Single` when `Count` is known by xtqqczze · Pull Request #15676 · PowerShell/PowerShell

Description: PowerShell for every system! Contribute to PowerShell/PowerShell development by creating an account on GitHub.

Open Graph Description: Fix HLQ005: Avoid use of Single(), SingleOrDefault(), SingleAsync() and SingleOrDefaultAsync() operations

X Description: Fix HLQ005: Avoid use of Single(), SingleOrDefault(), SingleAsync() and SingleOrDefaultAsync() operations

Opengraph URL: https://github.com/PowerShell/PowerShell/pull/15676

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:31926295-9fe9-02b5-1b8f-7a870cafd329
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9634:3B932:26F36B:329E81:69920DB4
html-safe-nonce8eb94bd91bee99e82179d43901b8f98c31047e7b146f77db9af2a50f32825383
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjM0OjNCOTMyOjI2RjM2QjozMjlFODE6Njk5MjBEQjQiLCJ2aXNpdG9yX2lkIjoiNjYzNDEyOTE1NTczMzcyMDUwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacff6ff58e2380bb1769f3d6ca6346b4ec603de215c12d39a26973a87fa2dca922
hovercard-subject-tagpull_request:678020391
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/PowerShell/15676/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/7e13696502b9df8b585bce66f4c59911d2cb6a1b0fe156f255d58c7451f19204/PowerShell/PowerShell/pull/15676
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7e13696502b9df8b585bce66f4c59911d2cb6a1b0fe156f255d58c7451f19204/PowerShell/PowerShell/pull/15676
og:image:altFix HLQ005: Avoid use of Single(), SingleOrDefault(), SingleAsync() and SingleOrDefaultAsync() operations
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamextqqczze
hostnamegithub.com
expected-hostnamegithub.com
None42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b
turbo-cache-controlno-cache
go-importgithub.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id49609581
octolytics-dimension-repository_nwoPowerShell/PowerShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49609581
octolytics-dimension-repository_network_root_nwoPowerShell/PowerShell
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
release848bc6032dcc93a9a7301dcc3f379a72ba13b96e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/pull/15676#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F15676
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%2FPowerShell%2Fpull%2F15676
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%2FPowerShell
Reloadhttps://github.com/PowerShell/PowerShell/pull/15676
Reloadhttps://github.com/PowerShell/PowerShell/pull/15676
Reloadhttps://github.com/PowerShell/PowerShell/pull/15676
PowerShell https://github.com/PowerShell
PowerShellhttps://github.com/PowerShell/PowerShell
Notifications https://github.com/login?return_to=%2FPowerShell%2FPowerShell
Fork 8.2k https://github.com/login?return_to=%2FPowerShell%2FPowerShell
Star 51.4k https://github.com/login?return_to=%2FPowerShell%2FPowerShell
Code https://github.com/PowerShell/PowerShell
Issues 1.2k https://github.com/PowerShell/PowerShell/issues
Pull requests 215 https://github.com/PowerShell/PowerShell/pulls
Discussions https://github.com/PowerShell/PowerShell/discussions
Actions https://github.com/PowerShell/PowerShell/actions
Projects 7 https://github.com/PowerShell/PowerShell/projects
Security 3 https://github.com/PowerShell/PowerShell/security
Insights https://github.com/PowerShell/PowerShell/pulse
Code https://github.com/PowerShell/PowerShell
Issues https://github.com/PowerShell/PowerShell/issues
Pull requests https://github.com/PowerShell/PowerShell/pulls
Discussions https://github.com/PowerShell/PowerShell/discussions
Actions https://github.com/PowerShell/PowerShell/actions
Projects https://github.com/PowerShell/PowerShell/projects
Security https://github.com/PowerShell/PowerShell/security
Insights https://github.com/PowerShell/PowerShell/pulse
daxian-dbwhttps://github.com/daxian-dbw
PowerShell:masterhttps://github.com/PowerShell/PowerShell/tree/master
xtqqczze:avoid-Linq-Singlehttps://github.com/xtqqczze/PowerShell-PowerShell/tree/avoid-Linq-Single
Conversationhttps://github.com/PowerShell/PowerShell/pull/15676
Commits2 (2)https://github.com/PowerShell/PowerShell/pull/15676/commits
Checkshttps://github.com/PowerShell/PowerShell/pull/15676/checks
Files changedhttps://github.com/PowerShell/PowerShell/pull/15676/files
Avoid Linq Single when Count is knownhttps://github.com/PowerShell/PowerShell/pull/15676#top
daxian-dbwhttps://github.com/daxian-dbw
PowerShell:masterhttps://github.com/PowerShell/PowerShell/tree/master
xtqqczze:avoid-Linq-Singlehttps://github.com/xtqqczze/PowerShell-PowerShell/tree/avoid-Linq-Single
https://github.com/xtqqczze
xtqqczzehttps://github.com/xtqqczze
Jun 25, 2021https://github.com/PowerShell/PowerShell/pull/15676#issue-930302470
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/15676
HLQ005: Avoid use of Single(), SingleOrDefault(), SingleAsync() and SingleOrDefaultAsync() operationshttps://github.com/NetFabric/NetFabric.Hyperlinq.Analyzer/blob/master/docs/reference/HLQ005_AvoidSingle.md
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/15676
xtqqczzehttps://github.com/xtqqczze
June 25, 2021 16:19https://github.com/PowerShell/PowerShell/pull/15676#commits-pushed-1220599
https://github.com/xtqqczze
Replace Single() with First() when Count == 1https://github.com/PowerShell/PowerShell/pull/15676/commits/122059950c4cf78ebf44aa33472fb87564471b39
1220599https://github.com/PowerShell/PowerShell/pull/15676/commits/122059950c4cf78ebf44aa33472fb87564471b39
https://github.com/xtqqczze
Replace Single() with indexer when Count == 1https://github.com/PowerShell/PowerShell/pull/15676/commits/a39ba4106cfdac81b928e1810c1c9b4ed696fec3
a39ba41https://github.com/PowerShell/PowerShell/pull/15676/commits/a39ba4106cfdac81b928e1810c1c9b4ed696fec3
daxian-dbwhttps://github.com/daxian-dbw
Jun 25, 2021https://github.com/PowerShell/PowerShell/pull/15676#event-4940806394
https://github.com/xtqqczze
xtqqczzehttps://github.com/xtqqczze
June 25, 2021 16:14https://github.com/PowerShell/PowerShell/pull/15676#event-4940892525
https://github.com/xtqqczze
xtqqczzehttps://github.com/xtqqczze
adityapatwardhanhttps://github.com/adityapatwardhan
daxian-dbwhttps://github.com/daxian-dbw
code ownershttps://github.com/PowerShell/PowerShell/blob/756aef9a8670fad089507f35023301a90b01d32f/.github/CODEOWNERS#L30
June 25, 2021 16:14https://github.com/PowerShell/PowerShell/pull/15676#event-4940892557
https://github.com/iSazonov
iSazonovhttps://github.com/iSazonov
Jun 25, 2021 https://github.com/PowerShell/PowerShell/pull/15676#pullrequestreview-693071474
View reviewed changes https://github.com/PowerShell/PowerShell/pull/15676/files/a39ba4106cfdac81b928e1810c1c9b4ed696fec3
https://github.com/daxian-dbw
daxian-dbwhttps://github.com/daxian-dbw
Jun 26, 2021 https://github.com/PowerShell/PowerShell/pull/15676#pullrequestreview-693257384
View reviewed changes https://github.com/PowerShell/PowerShell/pull/15676/files/a39ba4106cfdac81b928e1810c1c9b4ed696fec3
https://github.com/daxian-dbw
daxian-dbwhttps://github.com/daxian-dbw
1e992c5https://github.com/PowerShell/PowerShell/commit/1e992c5e5345ae1f77a1896ba81c076084fb8759
Jun 26, 2021https://github.com/PowerShell/PowerShell/pull/15676#event-4942372188
https://github.com/xtqqczze
xtqqczzehttps://github.com/xtqqczze
June 26, 2021 15:12https://github.com/PowerShell/PowerShell/pull/15676#event-4943027875
https://github.com/iSazonov
iSazonovhttps://github.com/iSazonov
CL-CodeCleanup https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3ACL-CodeCleanup
Jun 26, 2021https://github.com/PowerShell/PowerShell/pull/15676#event-4943138237
https://github.com/iSazonov
iSazonovhttps://github.com/iSazonov
7.2.0-preview.8https://github.com/PowerShell/PowerShell/milestone/109
Jun 26, 2021https://github.com/PowerShell/PowerShell/pull/15676#event-4943138281
https://github.com/ghost
ghosthttps://github.com/ghost
Jul 22, 2021https://github.com/PowerShell/PowerShell/pull/15676#issuecomment-885253454
Release Noteshttps://github.com/PowerShell/PowerShell/releases/tag/v7.2.0-preview.8
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/15676
https://github.co/hiddenchars
https://github.com/PowerShell/PowerShell/pull/{{ revealButtonHref }}
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%2FPowerShell%2Fpull%2F15676
https://github.com/daxian-dbw
daxian-dbw https://github.com/daxian-dbw
https://github.com/PowerShell/PowerShell/pull/15676/files/a39ba4106cfdac81b928e1810c1c9b4ed696fec3
https://github.com/iSazonov
iSazonov https://github.com/iSazonov
https://github.com/PowerShell/PowerShell/pull/15676/files/a39ba4106cfdac81b928e1810c1c9b4ed696fec3
https://github.com/adityapatwardhan
adityapatwardhan https://github.com/adityapatwardhan
https://github.com/daxian-dbw
daxian-dbw https://github.com/daxian-dbw
CL-CodeCleanup https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3ACL-CodeCleanup
7.2.0-preview.8 https://github.com/PowerShell/PowerShell/milestone/109
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/15676
https://github.com/xtqqczze
https://github.com/daxian-dbw
https://github.com/iSazonov
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.