Create RestrictReturnStatementTargetMigrationInspection

#KT-36262
This commit is contained in:
Dmitry Gridin
2020-01-27 23:39:57 +07:00
parent 2f3e3b9c9e
commit 2441ee80e4
3 changed files with 40 additions and 0 deletions
+10
View File
@@ -3139,6 +3139,16 @@
language="kotlin"
/>
<localInspection implementationClass="org.jetbrains.kotlin.idea.inspections.migration.RestrictReturnStatementTargetMigrationInspection"
displayName="Target label does not denote a function since 1.4"
groupPath="Kotlin"
groupName="Migration"
enabledByDefault="false"
cleanupTool="true"
level="ERROR"
language="kotlin"
/>
<localInspection implementationClass="org.jetbrains.kotlin.idea.inspections.migration.ObsoleteExperimentalCoroutinesInspection"
displayName="Experimental coroutines usages are deprecated since 1.3"
groupPath="Kotlin"
@@ -0,0 +1,5 @@
<html>
<body>
Since Kotlin 1.4, it's forbidden to declare a target label which does not denote a function.
</body>
</html>