Introduce DeferredIsResultInspection #KT-25620 Fixed

This commit is contained in:
Mikhail Glukhikh
2018-11-23 18:09:25 +03:00
parent f4aad70b36
commit ca87e53f04
20 changed files with 440 additions and 161 deletions
@@ -0,0 +1,8 @@
<html>
<body>
This inspection reports functions with <b>kotlinx.coroutines.Deferred</b> result.
Functions which use <b>Deferred</b> as return type should have a name with suffix <b>Async</b>.
Otherwise, it's recommended to turn a function into a suspend function and unwrap <b>Deferred</b>.
</body>
</html>