Convert RemoveCurlyBracesFromTemplateIntention to inspection
Relates to #KT-31717
This commit is contained in:
@@ -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"
|
||||
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
fun foo() {
|
||||
val y = <spot>"$x"</spot>
|
||||
}
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
fun foo() {
|
||||
val y = <spot>"${x}"</spot>
|
||||
}
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention removes unnecessary curly braces around simple names in string templates.
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user