Convert RemoveCurlyBracesFromTemplateIntention to inspection

Relates to #KT-31717
This commit is contained in:
Dmitry Gridin
2019-06-03 11:42:43 +07:00
parent 7f4d2891e8
commit 7bc2fcd657
31 changed files with 129 additions and 159 deletions
+1 -6
View File
@@ -998,11 +998,6 @@
<category>Kotlin</category>
</intentionAction>
<intentionAction>
<className>org.jetbrains.kotlin.idea.intentions.RemoveCurlyBracesFromTemplateIntention</className>
<category>Kotlin</category>
</intentionAction>
<intentionAction>
<className>org.jetbrains.kotlin.idea.intentions.InsertCurlyBracesToTemplateIntention</className>
<category>Kotlin</category>
@@ -1824,7 +1819,7 @@
language="kotlin"
/>
<localInspection implementationClass="org.jetbrains.kotlin.idea.intentions.RemoveCurlyBracesFromTemplateInspection"
<localInspection implementationClass="org.jetbrains.kotlin.idea.inspections.RemoveCurlyBracesFromTemplateInspection"
displayName="Redundant curly braces in string template"
groupPath="Kotlin"
groupName="Redundant constructs"
@@ -1,3 +0,0 @@
fun foo() {
val y = <spot>"$x"</spot>
}
@@ -1,3 +0,0 @@
fun foo() {
val y = <spot>"${x}"</spot>
}
@@ -1,5 +0,0 @@
<html>
<body>
This intention removes unnecessary curly braces around simple names in string templates.
</body>
</html>