fix(linter/no-unused-private-class-members): correctly detect value context for private members in assignment expressions#15553
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
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. |
There was a problem hiding this comment.
Pull Request Overview
This PR fixes issue #15548 where private class members used within logical or update expressions on the right-hand side of assignments were incorrectly flagged as unused.
Key changes:
- Modified
is_value_contextto accept both parent and child nodes, enabling proper detection of whether an expression is on the RHS of an assignment - Added explicit handling for
AssignmentExpressioninis_value_contextto check if the child is within the RHS - Refactored variable names for improved clarity (e.g.,
parent_node→grandparent)
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Merge activity
|
CodSpeed Performance ReportMerging #15553 will not alter performanceComparing Summary
Footnotes
|
4e71e85 to
1b994d1
Compare

fixes #15548