Add intention+inspection to remove empty parentheses from method call with single lambda parameter

Fixes #KT-13519
This commit is contained in:
Kirill Rakhman
2016-08-19 22:24:04 +02:00
parent a683c2b68d
commit 1bc2af6436
10 changed files with 96 additions and 0 deletions
+13
View File
@@ -1322,6 +1322,11 @@
<category>Kotlin</category>
</intentionAction>
<intentionAction>
<className>org.jetbrains.kotlin.idea.intentions.RemoveEmptyParenthesesFromLambdaCallIntention</className>
<category>Kotlin</category>
</intentionAction>
<localInspection implementationClass="org.jetbrains.kotlin.idea.intentions.ObjectLiteralToLambdaInspection"
displayName="Object literal can be converted to lambda"
groupName="Kotlin"
@@ -1731,6 +1736,14 @@
language="kotlin"
/>
<localInspection implementationClass="org.jetbrains.kotlin.idea.intentions.RemoveEmptyParenthesesFromLambdaCallInspection"
displayName="Remove unnecessary parentheses from function call with lambda"
groupName="Kotlin"
enabledByDefault="true"
level="INFO"
language="kotlin"
/>
<referenceImporter implementation="org.jetbrains.kotlin.idea.quickfix.KotlinReferenceImporter"/>
<fileType.fileViewProviderFactory filetype="KJSM" implementationClass="com.intellij.psi.ClassFileViewProviderFactory"/>