Add inspection to detect functions with SuccessOrFailure return type

Partial implementation of KT-25621 (no quick-fixes yet)
This commit is contained in:
Mikhail Glukhikh
2018-08-21 20:56:45 +03:00
parent 48784fd95e
commit 87d750aa1c
13 changed files with 296 additions and 0 deletions
@@ -0,0 +1,8 @@
<html>
<body>
This inspection reports functions with <b>SuccessOrFailure</b> result.
<b>SuccessOrFailure</b> should never be used as return type.
Throw exception, or use nullable type, or use domain-specific result class to indicate failure.
</body>
</html>