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/_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:02b74b0b-7c1a-2b6f-fa70-b5e81460167c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD5CC:1E3D51:61443:85DE9:6AFCFCF0
html-safe-nonce1d8851fbef424d6316bc3fcb35f41597ab62da083974711e0516f05fcc2d2531
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENUNDOjFFM0Q1MTo2MTQ0Mzo4NURFOTo2QUZDRkNGMCIsInZpc2l0b3JfaWQiOiI3OTU0MjEwOTYzNjE4MzMxODg5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmace81e9524cf7c3e3383d22ff7d2a3ed5f33b350e6e28970538b06353e08325d39
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///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/935/pull_request_layout
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
Nonecfabad6ee26d2b84c7afef4ae0cc71b8b692fb9d66f9f15997652ef991bfd3f4
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
release35f85b78676038389558a41adf8d76e474592ede
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/PowerShell/PSScriptAnalyzer/pull/935#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPSScriptAnalyzer%2Fpull%2F935
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
Sign uphttps://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/935
Reloadhttps://github.com/PowerShell/PSScriptAnalyzer/pull/935
Reloadhttps://github.com/PowerShell/PSScriptAnalyzer/pull/935
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#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
https://github.com/bergmeister
Christoph Bergmeister (bergmeister)https://github.com/bergmeister
Mar 14, 2018https://github.com/PowerShell/PSScriptAnalyzer/pull/935#issue-305367139
Please reload this pagehttps://github.com/PowerShell/PSScriptAnalyzer/pull/935
#699https://github.com/PowerShell/PSScriptAnalyzer/issues/699
#827https://github.com/PowerShell/PSScriptAnalyzer/issues/827
#903https://github.com/PowerShell/PSScriptAnalyzer/issues/903
PowerShell/vscode-powershell#776https://github.com/PowerShell/vscode-powershell/issues/776
Please reload this pagehttps://github.com/PowerShell/PSScriptAnalyzer/pull/935
Christoph Bergmeister (bergmeister)https://github.com/bergmeister
March 14, 2018 22:41https://github.com/PowerShell/PSScriptAnalyzer/pull/935#commits-pushed-c9f97de
https://github.com/bergmeister
fix false positives such as '$a=@(); $b | foreach-object { $a+=$c}' b…https://github.com/PowerShell/PSScriptAnalyzer/pull/935/commits/c9f97de464f07f1e69ea4fd70f6019339d7c6b55
c9f97dehttps://github.com/PowerShell/PSScriptAnalyzer/pull/935/commits/c9f97de464f07f1e69ea4fd70f6019339d7c6b55
https://github.com/bergmeister
add test (it turns out a regression happened for 'flags strongly type…https://github.com/PowerShell/PSScriptAnalyzer/pull/935/commits/7daf5a4fdb9f639e8b4eb37e4d3f676c59ab9603
7daf5a4https://github.com/PowerShell/PSScriptAnalyzer/pull/935/commits/7daf5a4fdb9f639e8b4eb37e4d3f676c59ab9603
https://github.com/bergmeister
fix regression for strongly typed variables by being more selective a…https://github.com/PowerShell/PSScriptAnalyzer/pull/935/commits/bc1c0079cd2dd3cc0c0c7dc35fc8c363cd325ce9
bc1c007https://github.com/PowerShell/PSScriptAnalyzer/pull/935/commits/bc1c0079cd2dd3cc0c0c7dc35fc8c363cd325ce9
https://github.com/bergmeister
Christoph Bergmeister (bergmeister)https://github.com/bergmeister
Issue - Bug https://github.com/PowerShell/PSScriptAnalyzer/issues?q=state%3Aopen%20label%3A%22Issue%20-%20Bug%22
Area - Rules https://github.com/PowerShell/PSScriptAnalyzer/issues?q=state%3Aopen%20label%3A%22Area%20-%20Rules%22
Mar 14, 2018https://github.com/PowerShell/PSScriptAnalyzer/pull/935#event-1522195379
https://github.com/bergmeister
Christoph Bergmeister (bergmeister)https://github.com/bergmeister
1.17https://github.com/PowerShell/PSScriptAnalyzer/milestone/20
Mar 14, 2018https://github.com/PowerShell/PSScriptAnalyzer/pull/935#event-1522195381
https://github.com/bergmeister
Christoph Bergmeister (bergmeister)https://github.com/bergmeister
Mar 14, 2018https://github.com/PowerShell/PSScriptAnalyzer/pull/935#event-1522195382
https://github.com/bergmeister
Christoph Bergmeister (bergmeister)https://github.com/bergmeister
James Truher (JamesWTruher)https://github.com/JamesWTruher
March 14, 2018 23:42https://github.com/PowerShell/PSScriptAnalyzer/pull/935#event-1522195389
https://github.com/bergmeister
Christoph Bergmeister (bergmeister)https://github.com/bergmeister
in progress https://github.com/PowerShell/PSScriptAnalyzer/issues?q=state%3Aopen%20label%3A%22in%20progress%22
Area - PSUseDeclaredVarsMoreThanAssignments https://github.com/PowerShell/PSScriptAnalyzer/issues?q=state%3Aopen%20label%3A%22Area%20-%20PSUseDeclaredVarsMoreThanAssignments%22
in progress https://github.com/PowerShell/PSScriptAnalyzer/issues?q=state%3Aopen%20label%3A%22in%20progress%22
Mar 14, 2018https://github.com/PowerShell/PSScriptAnalyzer/pull/935#event-1522195477
https://github.com/JamesWTruher
James Truher (JamesWTruher)https://github.com/JamesWTruher
Mar 16, 2018 https://github.com/PowerShell/PSScriptAnalyzer/pull/935#pullrequestreview-104689551
View reviewed changes https://github.com/PowerShell/PSScriptAnalyzer/pull/935/files/bc1c0079cd2dd3cc0c0c7dc35fc8c363cd325ce9
Tests/Rules/UseDeclaredVarsMoreThanAssignments.tests.ps1https://github.com/PowerShell/PSScriptAnalyzer/pull/935/files/bc1c0079cd2dd3cc0c0c7dc35fc8c363cd325ce9#diff-c3a9e2c8611b9a5f523851b5c888234fdb67c35368374fb4d7a03e46231f047e
James Truher (JamesWTruher)https://github.com/JamesWTruher
Mar 16, 2018https://github.com/PowerShell/PSScriptAnalyzer/pull/935#discussion_r175191231
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/PowerShell/PSScriptAnalyzer/pull/935
Christoph Bergmeister (bergmeister)https://github.com/bergmeister
Mar 16, 2018https://github.com/PowerShell/PSScriptAnalyzer/pull/935#discussion_r175230653
Please reload this pagehttps://github.com/PowerShell/PSScriptAnalyzer/pull/935
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/PowerShell/PSScriptAnalyzer/pull/935
https://github.com/JamesWTruher
James Truher (JamesWTruher)https://github.com/JamesWTruher
Mar 16, 2018 https://github.com/PowerShell/PSScriptAnalyzer/pull/935#pullrequestreview-104689695
View reviewed changes https://github.com/PowerShell/PSScriptAnalyzer/pull/935/files/bc1c0079cd2dd3cc0c0c7dc35fc8c363cd325ce9
James Truher (JamesWTruher)https://github.com/JamesWTruher
https://github.com/PowerShell/PSScriptAnalyzer/pull/935#pullrequestreview-104689695
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/PowerShell/PSScriptAnalyzer/pull/935
Christoph Bergmeister (bergmeister)https://github.com/bergmeister
March 16, 2018 22:55https://github.com/PowerShell/PSScriptAnalyzer/pull/935#commits-pushed-077d035
https://github.com/bergmeister
add additional test case for unassigned variablehttps://github.com/PowerShell/PSScriptAnalyzer/pull/935/commits/077d0353bda9417a696d052ea7e17c3a4cd23fb0
077d035https://github.com/PowerShell/PSScriptAnalyzer/pull/935/commits/077d0353bda9417a696d052ea7e17c3a4cd23fb0
https://github.com/bergmeister
Merge branch 'development' ofhttps://github.com/PowerShell/PSScriptAnalyzer/pull/935/commits/647efe7d9017ff6b03b459e2fb642913890f6119
https://github.com/PowerShell/PSScriptA…https://github.com/PowerShell/PSScriptAnalyzer
647efe7https://github.com/PowerShell/PSScriptAnalyzer/pull/935/commits/647efe7d9017ff6b03b459e2fb642913890f6119
…nalyzerhttps://github.com/PowerShell/PSScriptAnalyzer
https://github.com/JamesWTruher
James Truher (JamesWTruher)https://github.com/JamesWTruher
Mar 30, 2018 https://github.com/PowerShell/PSScriptAnalyzer/pull/935#pullrequestreview-108399073
View reviewed changes https://github.com/PowerShell/PSScriptAnalyzer/pull/935/files/647efe7d9017ff6b03b459e2fb642913890f6119
https://github.com/JamesWTruher
James Truher (JamesWTruher)https://github.com/JamesWTruher
6a8e828https://github.com/PowerShell/PSScriptAnalyzer/commit/6a8e8289e8f94622bad33d654657cdb5288309a5
Mar 30, 2018https://github.com/PowerShell/PSScriptAnalyzer/pull/935#event-1550178023
https://github.co/hiddenchars
https://github.com/PowerShell/PSScriptAnalyzer/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%2FPSScriptAnalyzer%2Fpull%2F935
https://github.com/JamesWTruher
James Truher (JamesWTruher) https://github.com/JamesWTruher
https://github.com/PowerShell/PSScriptAnalyzer/pull/935/files/647efe7d9017ff6b03b459e2fb642913890f6119
Please reload this pagehttps://github.com/PowerShell/PSScriptAnalyzer/pull/935
https://github.com/bergmeister
Christoph Bergmeister (bergmeister) https://github.com/bergmeister
Area - PSUseDeclaredVarsMoreThanAssignments https://github.com/PowerShell/PSScriptAnalyzer/issues?q=state%3Aopen%20label%3A%22Area%20-%20PSUseDeclaredVarsMoreThanAssignments%22
Area - Rules https://github.com/PowerShell/PSScriptAnalyzer/issues?q=state%3Aopen%20label%3A%22Area%20-%20Rules%22
Issue - Bug https://github.com/PowerShell/PSScriptAnalyzer/issues?q=state%3Aopen%20label%3A%22Issue%20-%20Bug%22
1.17 https://github.com/PowerShell/PSScriptAnalyzer/milestone/20
PSUseDeclaredVarsMoreThanAssignments is thrown incorrectly https://github.com/PowerShell/PSScriptAnalyzer/issues/903
Warning about unused variable in VSCode https://github.com/PowerShell/PSScriptAnalyzer/issues/827
Unassigned variable rule does not consider += operator to be an assignment https://github.com/PowerShell/vscode-powershell/issues/776
PSUseDeclaredVarsMoreThanAssignment not correctly handling array adds https://github.com/PowerShell/PSScriptAnalyzer/issues/699
Please reload this pagehttps://github.com/PowerShell/PSScriptAnalyzer/pull/935
https://github.com/bergmeister
https://github.com/JamesWTruher
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.