Convert ReplaceSubstringIntention to ReplaceSubstringInspection
Relates to #KT-31502
This commit is contained in:
-1
@@ -1 +0,0 @@
|
||||
s.<spot>dropLast(5)</spot>
|
||||
-1
@@ -1 +0,0 @@
|
||||
s.<spot>substring(0, s.length - 5)</spot>
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention replaces calls like <b>s.substring(0, s.length - x)</b> with <b>s.dropLast(x)</b>.
|
||||
</body>
|
||||
</html>
|
||||
-1
@@ -1 +0,0 @@
|
||||
<spot>"abc"[0]</spot>
|
||||
-1
@@ -1 +0,0 @@
|
||||
<spot>"abc".substring(0, 1)</spot>
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention replaces calls like <b>"abc".substring(0, 1)</b> with <b>"abc"[0]</b>.
|
||||
</body>
|
||||
</html>
|
||||
-1
@@ -1 +0,0 @@
|
||||
s.<spot>substringAfter('x')</spot>
|
||||
-1
@@ -1 +0,0 @@
|
||||
s.<spot>substring(s.indexOf('x'))</spot>
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention replaces calls like <b>s.substring(s.indexOf(x))</b> with <b>s.substringAfter(x)</b>.
|
||||
</body>
|
||||
</html>
|
||||
-1
@@ -1 +0,0 @@
|
||||
s.<spot>substringBefore('x')</spot>
|
||||
-1
@@ -1 +0,0 @@
|
||||
s.<spot>substring(0, s.indexOf('x'))</spot>
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention replaces calls like <b>s.substring(0, s.indexOf(x))</b> with <b>s.substringBefore(x)</b>.
|
||||
</body>
|
||||
</html>
|
||||
-1
@@ -1 +0,0 @@
|
||||
s.<spot>take(10)</spot>
|
||||
-1
@@ -1 +0,0 @@
|
||||
s.<spot>substring(0, 10)</spot>
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention replaces calls like <b>s.substring(0, x)</b> with <b>s.take(x)</b>.
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user