Convert ReplaceSubstringIntention to ReplaceSubstringInspection

Relates to #KT-31502
This commit is contained in:
Dmitry Gridin
2019-05-27 19:49:59 +07:00
parent 2310826ec9
commit 8988b4b344
77 changed files with 463 additions and 476 deletions
@@ -0,0 +1 @@
org.jetbrains.kotlin.idea.inspections.substring.ReplaceSubstringWithDropLastInspection
@@ -1,5 +1,5 @@
// WITH_RUNTIME
// IS_APPLICABLE: false
// PROBLEM: none
class A() {
fun bar(): String = null!!
@@ -1,4 +1,4 @@
// IS_APPLICABLE: false
// PROBLEM: none
// WITH_RUNTIME
fun foo(s: String) {
@@ -0,0 +1 @@
org.jetbrains.kotlin.idea.inspections.substring.ReplaceSubstringWithIndexingOperationInspection
@@ -0,0 +1 @@
org.jetbrains.kotlin.idea.inspections.substring.ReplaceSubstringWithSubstringAfterInspection
@@ -1,5 +1,5 @@
// WITH_RUNTIME
// IS_APPLICABLE: false
// PROBLEM: none
class A() {
fun bar(): String = null!!
@@ -0,0 +1 @@
org.jetbrains.kotlin.idea.inspections.substring.ReplaceSubstringWithSubstringBeforeInspection
@@ -1,5 +1,5 @@
// WITH_RUNTIME
// IS_APPLICABLE: false
// PROBLEM: none
class A() {
fun bar(): String = null!!
@@ -1,4 +1,4 @@
// IS_APPLICABLE: false
// PROBLEM: none
// WITH_RUNTIME
fun foo(s: String) {
@@ -0,0 +1 @@
org.jetbrains.kotlin.idea.inspections.substring.ReplaceSubstringWithTakeInspection
@@ -1,4 +1,4 @@
// IS_APPLICABLE: false
// PROBLEM: none
// WITH_RUNTIME
const val x = 0
@@ -1,4 +1,4 @@
// IS_APPLICABLE: false
// PROBLEM: none
// WITH_RUNTIME
fun foo(s: String) {
@@ -1,4 +1,4 @@
// IS_APPLICABLE: false
// PROBLEM: none
// WITH_RUNTIME
fun foo(s: String) {
@@ -1 +0,0 @@
org.jetbrains.kotlin.idea.intentions.ReplaceSubstringWithDropLastIntention
@@ -1 +0,0 @@
org.jetbrains.kotlin.idea.intentions.ReplaceSubstringWithIndexingOperationIntention
@@ -1 +0,0 @@
org.jetbrains.kotlin.idea.intentions.ReplaceSubstringWithSubstringAfterIntention
@@ -1 +0,0 @@
org.jetbrains.kotlin.idea.intentions.ReplaceSubstringWithSubstringBeforeIntention
@@ -1 +0,0 @@
org.jetbrains.kotlin.idea.intentions.ReplaceSubstringWithTakeIntention