Single-expression string template is inspection for strings and intention otherwise #KT-13113 Fixed
(cherry picked from commit 266f9d0)
This commit is contained in:
committed by
Mikhail Glukhikh
parent
9b8c55d823
commit
d868410093
+10
@@ -0,0 +1,10 @@
|
||||
<problems>
|
||||
<problem>
|
||||
<file>test.kt</file>
|
||||
<line>4</line>
|
||||
<module>light_idea_test_case</module>
|
||||
<entry_point TYPE="file" FQNAME="temp:///src/test.kt" />
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Remove redundant string template</problem_class>
|
||||
<description>Redundant string template</description>
|
||||
</problem>
|
||||
</problems>
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
// INSPECTION_CLASS: org.jetbrains.kotlin.idea.intentions.RemoveSingleExpressionStringTemplateInspection
|
||||
@@ -0,0 +1,6 @@
|
||||
// NO
|
||||
val x = "Hello"
|
||||
// YES
|
||||
val y = "$x"
|
||||
// NO
|
||||
val z = "${y.hashCode()}"
|
||||
Reference in New Issue
Block a user