Skip to content

refactor(linter/consistent-function-scoping): use Scoping::scope_is_descendant_of API#23275

Merged
graphite-app[bot] merged 1 commit into
mainfrom
codex/consistent-function-scoping-scope-descendant
Jun 11, 2026
Merged

refactor(linter/consistent-function-scoping): use Scoping::scope_is_descendant_of API#23275
graphite-app[bot] merged 1 commit into
mainfrom
codex/consistent-function-scoping-scope-descendant

Conversation

@camc314

@camc314 camc314 commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Make use of Scoping::scope_is_descendant_of introduced in #22313 for consistent-function-scoping parent-scope checks.

The rule previously built a set of parent scope IDs for each function scope. The shared scoping API now expresses the same proper-descendant relationship directly, so the temporary set allocation is no longer needed.

@github-actions github-actions Bot added the A-linter Area - Linter label Jun 11, 2026
@camc314 camc314 changed the title refactor(linter/consistent-function-scoping): use scope descendant API refactor(linter/consistent-function-scoping): use Scoping::scope_is_descendant_of API Jun 11, 2026
@camc314 camc314 self-assigned this Jun 11, 2026
@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label Jun 11, 2026
@camc314 camc314 marked this pull request as ready for review June 11, 2026 10:05
Copilot AI review requested due to automatic review settings June 11, 2026 10:05

camc314 commented Jun 11, 2026

Copy link
Copy Markdown
Contributor Author

Merge activity

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

graphite-app Bot pushed a commit that referenced this pull request Jun 11, 2026
…descendant_of` API (#23275)

Make use of `Scoping::scope_is_descendant_of` introduced in #22313 for `consistent-function-scoping` parent-scope checks.

The rule previously built a set of parent scope IDs for each function scope. The shared scoping API now expresses the same proper-descendant relationship directly, so the temporary set allocation is no longer needed.
@graphite-app graphite-app Bot force-pushed the codex/consistent-function-scoping-scope-descendant branch from 8183a02 to 598a752 Compare June 11, 2026 10:12
@codspeed-hq

codspeed-hq Bot commented Jun 11, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 5 untouched benchmarks
⏩ 66 skipped benchmarks1


Comparing codex/consistent-function-scoping-scope-descendant (8183a02) with main (58747a3)2

Open in CodSpeed

Footnotes

  1. 66 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

  2. No successful run was found on main (7f46013) during the generation of this report, so 58747a3 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

…descendant_of` API (#23275)

Make use of `Scoping::scope_is_descendant_of` introduced in #22313 for `consistent-function-scoping` parent-scope checks.

The rule previously built a set of parent scope IDs for each function scope. The shared scoping API now expresses the same proper-descendant relationship directly, so the temporary set allocation is no longer needed.
@graphite-app graphite-app Bot force-pushed the codex/consistent-function-scoping-scope-descendant branch from 598a752 to 5a052a2 Compare June 11, 2026 10:15
@graphite-app graphite-app Bot merged commit 5a052a2 into main Jun 11, 2026
29 checks passed
@graphite-app graphite-app Bot removed the 0-merge Merge with Graphite Merge Queue label Jun 11, 2026
@graphite-app graphite-app Bot deleted the codex/consistent-function-scoping-scope-descendant branch June 11, 2026 10:19
camc314 added a commit that referenced this pull request Jul 3, 2026
…descendant_of` API (#23275)

Make use of `Scoping::scope_is_descendant_of` introduced in #22313 for `consistent-function-scoping` parent-scope checks.

The rule previously built a set of parent scope IDs for each function scope. The shared scoping API now expresses the same proper-descendant relationship directly, so the temporary set allocation is no longer needed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-linter Area - Linter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants