-
-
Notifications
You must be signed in to change notification settings - Fork 755
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
Don't null check a mutable property #3353
Comments
I believe the root of this rule should be "don't null check a mutable property". The multiple |
This issue is stale because it has been open 90 days with no activity. Please comment or this will be closed in 7 days. |
Hi, @BraisGabin I think this issue got fixed by the above PR. right? |
Nice spot! Closing :) |
Expected Behavior of the rule
non compliant:
compliant:
Context
#3352 is the example that make me think about this rule. This is a pattern that I see often in the my project. Usually this errors happens when you translates code from Java to Kotlin.
Maybe we could check this kind of things too:
non compliant:
compliant:
This pattern is kind of usual in Android because the framework give us this kind of APIs. But I don't think that this as an Android specific rule.
The text was updated successfully, but these errors were encountered: