8000
Skip to content

Ensure uses of rxObservable/rxFlowable call send/trySend#375

Merged
kierse merged 21 commits intomainfrom
ke/call-send-for-rx-interop
May 13, 2025
Merged

Ensure uses of rxObservable/rxFlowable call send/trySend#375
kierse merged 21 commits intomainfrom
ke/call-send-for-rx-interop

Conversation

@kierse
Copy link
Copy Markdown
Contributor
@kierse kierse commented May 9, 2025

Uses of rxObservable/rxFlowable that don't call send/trySend are of limited use and a (potential) source of bugs. This lint flags uses that don't call either method

@kierse kierse marked this pull request as ready for review May 9, 2025 19:00
@kierse kierse requested a review from ZacSweers May 9, 2025 19:00
@kierse kierse force-pushed the ke/call-send-for-rx-interop branch from cebd687 to 6c799f0 Compare May 12, 2025 19:34
@kierse kierse requested a review from ZacSweers May 12, 2025 19:35
// If we find a nested factory method, return immediately and stop traversing this
// code path.
// Note: this factory will be validated by the UElementHandler above
if (node.methodName in functionToIssue) return true
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.

Would be good to add a test with an import alias just to ensure this isn't defeated by that

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good idea

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@kierse kierse requested a review from ZacSweers May 13, 2025 18:56
@kierse kierse added this pull request to the merge queue May 13, 2025
Merged via the queue into main with commit a0321d4 May 13, 2025
3 checks passed
@kierse kierse deleted the ke/call-send-for-rx-interop branch May 13, 2025 19:14
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

0