Add inspection for calls of function with lambda expression body

Added "Unused return value of a function with lambda expression body" inspection with quickfix "Remove '=' token from function declaration"

#KT-10393 Fixed
This commit is contained in:
Vyacheslav Gerasimov
2017-03-13 19:56:59 +03:00
parent 087551ad61
commit b8ebc087e2
11 changed files with 173 additions and 0 deletions
+8
View File
@@ -2071,6 +2071,14 @@
language="kotlin"
/>
<localInspection implementationClass="org.jetbrains.kotlin.idea.inspections.UnusedLambdaExpressionBodyInspection"
displayName="Unused return value of a function with lambda expression body"
groupName="Kotlin"
enabledByDefault="true"
level="WARNING"
language="kotlin"
/>
<referenceImporter implementation="org.jetbrains.kotlin.idea.quickfix.KotlinReferenceImporter"/>