-
Notifications
You must be signed in to change notification settings - Fork 39
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
Improve autofix in AVOID_NULL_CHECKS rule #899
Comments
sanyavertolet
pushed a commit
that referenced
this issue
Jan 31, 2022
### What's done: * improved autofix: now we don't use `let` and `run` in some cases * added tests (#899)
2 tasks
sanyavertolet
pushed a commit
that referenced
this issue
Jan 31, 2022
### What's done: * improved autofix: now we don't use `let` and `run` in some cases * added tests (#899)
sanyavertolet
pushed a commit
that referenced
this issue
Jan 31, 2022
### What's done: * improved autofix: now we don't use `let` and `run` in some cases * added tests (#899)
sanyavertolet
pushed a commit
that referenced
this issue
Jan 31, 2022
### What's done: * improved autofix: now we don't use `let` and `run` in some cases * added tests (#899)
sanyavertolet
added a commit
that referenced
this issue
Mar 9, 2022
* Improve autofix in AVOID_NULL_CHECKS rule ### What's done: * improved autofix: now we don't use `let` and `run` in some cases * added tests (#899) * Improve autofix in AVOID_NULL_CHECKS rule ### What's done: * improved autofix: now we don't use `let` and `run` in some cases * added tests (#899) * Improve autofix in AVOID_NULL_CHECKS rule ### What's done: * improved autofix: now we don't use `let` and `run` in some cases * added tests (#899) * Improve autofix in AVOID_NULL_CHECKS rule ### What's done: * improved autofix: now we don't use `let` and `run` in some cases * added tests (#899) * Improve autofix in AVOID_NULL_CHECKS rule ### What's done: * improved autofix: now we don't use `let` and `run` in some cases * added tests (#1149) * Improve autofix in AVOID_NULL_CHECKS rule ### What's done: * improved autofix: now we don't use `let` and `run` in some cases * improved autofix: now we count statements, not lines * added tests (#1201) * Improve autofix in AVOID_NULL_CHECKS rule ### What's done: * improved autofix: now we don't use `let` and `run` in some cases * improved autofix: now we count statements, not lines * added tests (#1201) * Improve autofix in AVOID_NULL_CHECKS rule ### What's done: * improved autofix: now we don't use `let` and `run` in some cases * improved autofix: now we count statements, not lines * added tests (#1201) Co-authored-by: sanyavertolet <[email protected]> Co-authored-by: Andrey Kuleshov <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
val x = if (y != null) f(y) else g(y)
should be simplified toval x = y?.let { f(y) } ?: g(y)
without an additionalrun
val x = if (y != null) y else z
should be simplified toval x = y ?: z
, without anylet
orrun
Environment information
The text was updated successfully, but these errors were encountered: