mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[kotlin] Make ReplaceWithStringBuilderAppendRangeInspection a cleanup action
^KTIJ-22712 GitOrigin-RevId: b9747128d71ea976b5d161bcb48f5dd693a197dc
This commit is contained in:
committed by
intellij-monorepo-bot
parent
c6f94c3cc5
commit
e50e90695f
+2
-1
@@ -1,6 +1,7 @@
|
||||
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package org.jetbrains.kotlin.idea.inspections
|
||||
|
||||
import com.intellij.codeInspection.CleanupLocalInspectionTool
|
||||
import com.intellij.codeInspection.LocalQuickFix
|
||||
import com.intellij.codeInspection.ProblemDescriptor
|
||||
import com.intellij.codeInspection.ProblemsHolder
|
||||
@@ -17,7 +18,7 @@ import org.jetbrains.kotlin.psi.*
|
||||
import org.jetbrains.kotlin.resolve.descriptorUtil.fqNameSafe
|
||||
import org.jetbrains.kotlin.types.typeUtil.isInt
|
||||
|
||||
class ReplaceWithStringBuilderAppendRangeInspection : AbstractKotlinInspection() {
|
||||
class ReplaceWithStringBuilderAppendRangeInspection : AbstractKotlinInspection(), CleanupLocalInspectionTool {
|
||||
companion object {
|
||||
private const val appendFunctionName = "append"
|
||||
private const val appendRangeFunctionName = "appendRange"
|
||||
|
||||
@@ -2911,6 +2911,7 @@
|
||||
groupPath="Kotlin"
|
||||
groupBundle="messages.KotlinBundle" groupKey="group.names.other.problems"
|
||||
enabledByDefault="true"
|
||||
cleanupTool="true"
|
||||
level="WARNING"
|
||||
language="kotlin"
|
||||
key="inspection.replace.with.string.builder.append.range.display.name" bundle="messages.KotlinBundle"/>
|
||||
|
||||
Reference in New Issue
Block a user