Convert IfThenToElvisIntention to inspection & decrease severity to INFO
#KT-16067 Fixed
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user