Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lint lenient mode support kotlin lambda/when/if expressions #466

Merged
merged 3 commits into from
May 7, 2022

Conversation

sanggggg
Copy link
Contributor

@sanggggg sanggggg commented Apr 6, 2022

Description:
if lint lenient mode enabled, unused disposable in kotlin lambda/when/if expressions should be checked.

So this PR change behavior of AutoDisposeDetector::isExpressionValueUnused to support checking reactive expressions in kotlin lambda/when/if expressions used or not.

Luckily, up-to-date origin reference of function isExpressionValueUnused function support these expressions, so i just update source code from origin and add some testcases

Related issue(s): #465

@CLAassistant
Copy link

CLAassistant commented Apr 7, 2022

CLA assistant check
All committers have signed the CLA.

@ZacSweers
Copy link
Collaborator

This is great, thanks! Apologies for the delay in looking, I missed this PR

@ZacSweers
Copy link
Collaborator

Looks like this just needs a ./gradlew spotlessApply

@sanggggg
Copy link
Contributor Author

Looks like this just needs a ./gradlew spotlessApply

1cd69cc
thank you 🙏

@sanggggg sanggggg requested a review from ZacSweers April 24, 2022 10:38
@ZacSweers ZacSweers merged commit 8d6a642 into uber:main May 7, 2022
@ZacSweers
Copy link
Collaborator

Thanks!

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.

3 participants