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
@@ -0,0 +1,18 @@
<problems>
<problem>
<file>simple.kt</file>
<line>3</line>
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/simple.kt" />
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused return value of a function with lambda expression body</problem_class>
<description>Unused return value of a function with lambda expression body</description>
</problem>
<problem>
<file>simple.kt</file>
<line>6</line>
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/simple.kt" />
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Unused return value of a function with lambda expression body</problem_class>
<description>Unused return value of a function with lambda expression body</description>
</problem>
</problems>