Skip to content

Ruby: Document missing BeginExpr flow. - #22397

Merged
aschackmull merged 1 commit into
github:mainfrom
aschackmull:ruby/qltest-beginexpr
Aug 20, 2026
Merged

Ruby: Document missing BeginExpr flow.#22397
aschackmull merged 1 commit into
github:mainfrom
aschackmull:ruby/qltest-beginexpr

Conversation

@aschackmull

Copy link
Copy Markdown
Contributor

The Ruby BeginExpr ast node is currently not included in the CFG, so related flow breaks. This extends the local flow qltest to document this.

@aschackmull aschackmull added the no-change-note-required This PR does not need a change note label Aug 20, 2026
@github-actions github-actions Bot added the Ruby label Aug 20, 2026
@aschackmull
aschackmull marked this pull request as ready for review August 20, 2026 11:47
@aschackmull
aschackmull requested a review from a team as a code owner August 20, 2026 11:47
Copilot AI balanced review requested due to automatic review settings August 20, 2026 11:47

@hvitved hvitved left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice catch!

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds regression coverage documenting missing local value flow through Ruby BeginExpr assignments with rescue, else, and ensure clauses.

Changes:

  • Adds two BeginExpr assignment scenarios with expected missing flows.
  • Updates generated data-flow, taint-step, and node snapshots.
Show a summary per file
File Description
local_dataflow.rb Adds BeginExpr flow cases.
DataflowStep.expected Updates data-flow snapshot.
TaintStep.expected Updates taint-step snapshot.
Nodes.expected Updates node snapshot.

Review details

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 4/4 changed files
  • Comments generated: 0
  • Review effort level: Balanced

@aschackmull
aschackmull merged commit d9428f4 into github:main Aug 20, 2026
10 checks passed
@aschackmull
aschackmull deleted the ruby/qltest-beginexpr branch August 20, 2026 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-change-note-required This PR does not need a change note Ruby

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants