Convert IfThenToElvisIntention to inspection & decrease severity to INFO

#KT-16067 Fixed
This commit is contained in:
Dmitry Gridin
2019-06-03 20:27:35 +07:00
parent d8f32b1a0c
commit f2accb7b9e
101 changed files with 498 additions and 487 deletions
+1 -1
View File
@@ -1738,7 +1738,7 @@
language="kotlin"
/>
<localInspection implementationClass="org.jetbrains.kotlin.idea.intentions.branchedTransformations.intentions.IfThenToElvisInspection"
<localInspection implementationClass="org.jetbrains.kotlin.idea.inspections.branchedTransformations.IfThenToElvisInspection"
displayName="If-Then foldable to '?:'"
groupPath="Kotlin"
groupName="Style issues"
@@ -1 +0,0 @@
val result = maybeSomething ?: somethingElse
@@ -1 +0,0 @@
val result = if (maybeSomething != null) maybeSomething else somethingElse
@@ -1,5 +0,0 @@
<html>
<body>
This intention converts an <b>if</b> expression to an expression using an elvis operator (if applicable).
</body>
</html>