Convert ReplaceSingleLineLetIntention to inspection & decrease severity to INFORMATION

#KT-32010 Fixed
This commit is contained in:
Dmitry Gridin
2019-06-17 19:03:01 +07:00
parent ea76ea6fb8
commit 8e0bbe7d4a
107 changed files with 633 additions and 653 deletions
+2 -7
View File
@@ -1349,11 +1349,6 @@
<category>Kotlin</category>
</intentionAction>
<intentionAction>
<className>org.jetbrains.kotlin.idea.intentions.ReplaceSingleLineLetIntention</className>
<category>Kotlin</category>
</intentionAction>
<intentionAction>
<className>org.jetbrains.kotlin.idea.intentions.copyConcatenatedStringToClipboard.CopyConcatenatedStringToClipboardIntention</className>
<category>Kotlin</category>
@@ -2238,12 +2233,12 @@
language="kotlin"
/>
<localInspection implementationClass="org.jetbrains.kotlin.idea.intentions.ReplaceSingleLineLetInspection"
<localInspection implementationClass="org.jetbrains.kotlin.idea.inspections.ReplaceSingleLineLetInspection"
displayName="Replace single line .let"
groupPath="Kotlin"
groupName="Redundant constructs"
enabledByDefault="true"
level="WARNING"
level="INFORMATION"
language="kotlin"
/>
@@ -1 +0,0 @@
text?.<spot>length</spot>
@@ -1 +0,0 @@
text?.let <spot>{ it.length }</spot>
@@ -1,5 +0,0 @@
<html>
<body>
This intention removes a redundant <b>let</b> call when it includes only one call with a lambda parameter as a receiver.
</body>
</html>