Skip to content

Fix unexpected results in unit tests - #386

Open
Chanel (chanel-y) wants to merge 7 commits into
microsoft:mainfrom
chanel-y:fix-unexpected-results
Open

Fix unexpected results in unit tests#386
Chanel (chanel-y) wants to merge 7 commits into
microsoft:mainfrom
chanel-y:fix-unexpected-results

Conversation

@chanel-y

@chanel-y Chanel (chanel-y) commented Aug 3, 2026

Copy link
Copy Markdown

All test annotation fixes, except for powershell

Powershell's unexpected alert was a false positive, since it was flagging parameters from a powershell pipeline, which shouldn't be included in LocalSource.qll, so the change there was excluding PipelineByPropertyNameParameter and PipelineParameter from that classs

Chanel (chanel-y) and others added 7 commits July 31, 2026 08:51
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
sink b[0]
sink b[1] # $ hasValueFlow=11.1
sink b[2]
sink b[2] # $ hasValueFlow=11.2

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm confused by this one. Why do we need to add this one while the upstream version of this file doesn't have it? Are we running with an older version of Ruby's dataflow library?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants