René's URL Explorer Experiment


Title: Fix PSUseDeclaredVarsMoreThanAssignments to not give false positives when using += operator by bergmeister · Pull Request #935 · PowerShell/PSScriptAnalyzer · GitHub

Open Graph Title: Fix PSUseDeclaredVarsMoreThanAssignments to not give false positives when using += operator by bergmeister · Pull Request #935 · PowerShell/PSScriptAnalyzer

X Title: Fix PSUseDeclaredVarsMoreThanAssignments to not give false positives when using += operator by bergmeister · Pull Request #935 · PowerShell/PSScriptAnalyzer

Description: Download ScriptAnalyzer from PowerShellGallery. Contribute to PowerShell/PSScriptAnalyzer development by creating an account on GitHub.

Open Graph Description: PR Summary Hooray, this is the fix for the most common false positive of PSSA. The main issue was that it was treating += as assignment. There are more special cases that need to be looked at like ...

X Description: PR Summary Hooray, this is the fix for the most common false positive of PSSA. The main issue was that it was treating += as assignment. There are more special cases that need to be looked at like ...

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

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/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:98296957-b6e3-926f-0af8-c5258bea2fad
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8B34:126CB9:227C3C6:30020E6:6AFD33A8
html-safe-nonce6ab1f8f53b516c153c07262767e45998b7a8f9f34c5bd9495bac16c5f5cabb14
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjM0OjEyNkNCOToyMjdDM0M2OjMwMDIwRTY6NkFGRDMzQTgiLCJ2aXNpdG9yX2lkIjoiNTUyMzk4NDA5MDg5OTc1NTk0NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac30293dfaaf23ffdbbb7483e2bcca2e6ba44368ed3c29a549fb215a108cec7011
hovercard-subject-tagpull_request:175114163
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/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/PowerShell/PSScriptAnalyzer/pull/935/commits
twitter:imagehttps://opengraph.githubassets.com/111471e6574b0bbd9cbdeff9fe746003bce54e79dbacaa7c77b7bd306be96a61/PowerShell/PSScriptAnalyzer/pull/935
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/111471e6574b0bbd9cbdeff9fe746003bce54e79dbacaa7c77b7bd306be96a61/PowerShell/PSScriptAnalyzer/pull/935
og:image:altPR Summary Hooray, this is the fix for the most common false positive of PSSA. The main issue was that it was treating += as assignment. There are more special cases that need to be looked at like ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebergmeister
hostnamegithub.com
expected-hostnamegithub.com
None065128366c233a9d57ff68ab6c96e25b99dd1b0ab70d23b70873d3dd6b5e4f19
turbo-cache-controlno-cache
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
release941021edf0c2ec58298f4a2c8f27ae507d129c92
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/PowerShell/PSScriptAnalyzer/pull/935/commits#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPSScriptAnalyzer%2Fpull%2F935%2Fcommits
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%2F935%2Fcommits
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%2Fcommits&source=header-repo&source_repo=PowerShell%2FPSScriptAnalyzer
Reloadhttps://github.com/PowerShell/PSScriptAnalyzer/pull/935/commits
Reloadhttps://github.com/PowerShell/PSScriptAnalyzer/pull/935/commits
Reloadhttps://github.com/PowerShell/PSScriptAnalyzer/pull/935/commits
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
https://github.com/PowerShell/PSScriptAnalyzer
James Truher (JamesWTruher)https://github.com/JamesWTruher
PowerShell:developmenthttps://github.com/PowerShell/PSScriptAnalyzer/tree/development
bergmeister:UseDeclaredVarsMoreThanAssignments_FixFalsePositiveshttps://github.com/bergmeister/PSScriptAnalyzer/tree/UseDeclaredVarsMoreThanAssignments_FixFalsePositives
Conversationhttps://github.com/PowerShell/PSScriptAnalyzer/pull/935
Commits5 (5)https://github.com/PowerShell/PSScriptAnalyzer/pull/935/commits
Checkshttps://github.com/PowerShell/PSScriptAnalyzer/pull/935/checks
Files changedhttps://github.com/PowerShell/PSScriptAnalyzer/pull/935/files
Fix PSUseDeclaredVarsMoreThanAssignments to not give false positives when using += operatorhttps://github.com/PowerShell/PSScriptAnalyzer/pull/935/commits#top
James Truher (JamesWTruher)https://github.com/JamesWTruher
PowerShell:developmenthttps://github.com/PowerShell/PSScriptAnalyzer/tree/development
bergmeister:UseDeclaredVarsMoreThanAssignments_FixFalsePositiveshttps://github.com/bergmeister/PSScriptAnalyzer/tree/UseDeclaredVarsMoreThanAssignments_FixFalsePositives
fix false positives such as '$a=@(); $b | foreach-object { $a+=$c}' because the rule misunderstood += as assignmenthttps://github.com/PowerShell/PSScriptAnalyzer/pull/935/commits/c9f97de464f07f1e69ea4fd70f6019339d7c6b55
https://github.com/bergmeister
Christoph Bergmeister (bergmeister)https://github.com/PowerShell/PSScriptAnalyzer/commits?author=bergmeister
c9f97dehttps://github.com/PowerShell/PSScriptAnalyzer/pull/935/commits/c9f97de464f07f1e69ea4fd70f6019339d7c6b55
https://github.com/PowerShell/PSScriptAnalyzer/tree/c9f97de464f07f1e69ea4fd70f6019339d7c6b55
add test (it turns out a regression happened for 'flags strongly typed variables'https://github.com/PowerShell/PSScriptAnalyzer/pull/935/commits/7daf5a4fdb9f639e8b4eb37e4d3f676c59ab9603
https://github.com/bergmeister
Christoph Bergmeister (bergmeister)https://github.com/PowerShell/PSScriptAnalyzer/commits?author=bergmeister
7daf5a4https://github.com/PowerShell/PSScriptAnalyzer/pull/935/commits/7daf5a4fdb9f639e8b4eb37e4d3f676c59ab9603
https://github.com/PowerShell/PSScriptAnalyzer/tree/7daf5a4fdb9f639e8b4eb37e4d3f676c59ab9603
fix regression for strongly typed variables by being more selective about the if/else decisionhttps://github.com/PowerShell/PSScriptAnalyzer/pull/935/commits/bc1c0079cd2dd3cc0c0c7dc35fc8c363cd325ce9
https://github.com/bergmeister
Christoph Bergmeister (bergmeister)https://github.com/PowerShell/PSScriptAnalyzer/commits?author=bergmeister
bc1c007https://github.com/PowerShell/PSScriptAnalyzer/pull/935/commits/bc1c0079cd2dd3cc0c0c7dc35fc8c363cd325ce9
https://github.com/PowerShell/PSScriptAnalyzer/tree/bc1c0079cd2dd3cc0c0c7dc35fc8c363cd325ce9
add additional test case for unassigned variablehttps://github.com/PowerShell/PSScriptAnalyzer/pull/935/commits/077d0353bda9417a696d052ea7e17c3a4cd23fb0
https://github.com/bergmeister
Christoph Bergmeister (bergmeister)https://github.com/PowerShell/PSScriptAnalyzer/commits?author=bergmeister
077d035https://github.com/PowerShell/PSScriptAnalyzer/pull/935/commits/077d0353bda9417a696d052ea7e17c3a4cd23fb0
https://github.com/PowerShell/PSScriptAnalyzer/tree/077d0353bda9417a696d052ea7e17c3a4cd23fb0
Merge branch 'development' of https://github.com/PowerShell/PSScriptAnalyzer into UseDeclaredVarsMoreThanAssignments_FixFalsePositiveshttps://github.com/PowerShell/PSScriptAnalyzer/pull/935/commits/647efe7d9017ff6b03b459e2fb642913890f6119
https://github.com/bergmeister
Christoph Bergmeister (bergmeister)https://github.com/PowerShell/PSScriptAnalyzer/commits?author=bergmeister
647efe7https://github.com/PowerShell/PSScriptAnalyzer/pull/935/commits/647efe7d9017ff6b03b459e2fb642913890f6119
https://github.com/PowerShell/PSScriptAnalyzer/tree/647efe7d9017ff6b03b459e2fb642913890f6119
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.