Skip to content

Conversation

@camc314
Copy link
Contributor

@camc314 camc314 commented Nov 18, 2025

No description provided.

@camc314 camc314 marked this pull request as ready for review November 18, 2025 09:10
@github-actions github-actions bot added A-linter Area - Linter C-bug Category - Bug labels Nov 18, 2025
Copy link
Contributor Author

camc314 commented Nov 18, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@camc314 camc314 changed the base branch from c/11-17-feat_allocator_optimize_memory_usage_with_dual_allocator_pools_for_import_plugin to graphite-base/15832 November 18, 2025 09:10
@camc314 camc314 force-pushed the c/11-18-fix_linter_exhaustive-dependencies_prevent_is_callee_of_call_expr_flag_from_leaking_into_nested_expressions branch from 1005264 to f6347f0 Compare November 18, 2025 09:10
@camc314 camc314 force-pushed the graphite-base/15832 branch from 66f5d6b to 32f4fdd Compare November 18, 2025 09:10
@camc314 camc314 changed the base branch from graphite-base/15832 to main November 18, 2025 09:10
@codspeed-hq
Copy link

codspeed-hq bot commented Nov 18, 2025

CodSpeed Performance Report

Merging #15832 will not alter performance

Comparing c/11-18-fix_linter_exhaustive-dependencies_prevent_is_callee_of_call_expr_flag_from_leaking_into_nested_expressions (953e0c3) with main (2191ae9)

Summary

✅ 4 untouched
⏩ 41 skipped1

Footnotes

  1. 41 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.

Copilot AI review requested due to automatic review settings November 18, 2025 09:26
@camc314 camc314 force-pushed the c/11-18-fix_linter_exhaustive-dependencies_prevent_is_callee_of_call_expr_flag_from_leaking_into_nested_expressions branch from f6347f0 to 953e0c3 Compare November 18, 2025 09:26
@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label Nov 18, 2025
Copy link
Contributor Author

camc314 commented Nov 18, 2025

Merge activity

Copilot finished reviewing on behalf of camc314 November 18, 2025 09:29
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a bug in the exhaustive-dependencies linter where the is_callee_of_call_expr flag was leaking into nested expressions during AST traversal. The fix ensures that when recursively visiting member expression objects, the flag is properly reset to prevent incorrect dependency analysis.

Key Changes

  • Reset is_callee_of_call_expr flag to false before visiting nested objects in static member expressions
  • Restructured code from match to if let for better readability
  • Added comprehensive test cases for property access within expressions followed by method calls

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
crates/oxc_linter/src/rules/react/exhaustive_deps.rs Fixed flag leak by resetting is_callee_of_call_expr before recursive visits; added test cases for nested property access in expressions
crates/oxc_linter/src/snapshots/react_exhaustive_deps.snap Updated snapshot to reflect correct detection of multiple dependency levels in property chains

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@graphite-app graphite-app bot force-pushed the c/11-18-fix_linter_exhaustive-dependencies_prevent_is_callee_of_call_expr_flag_from_leaking_into_nested_expressions branch from 953e0c3 to 646d020 Compare November 18, 2025 09:31
@graphite-app graphite-app bot merged commit 646d020 into main Nov 18, 2025
20 checks passed
@graphite-app graphite-app bot deleted the c/11-18-fix_linter_exhaustive-dependencies_prevent_is_callee_of_call_expr_flag_from_leaking_into_nested_expressions branch November 18, 2025 09:36
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Nov 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-linter Area - Linter C-bug Category - Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants