Refactoring: GradleDependencyInspection -> DeprecatedGradleDependencyInspection
This commit is contained in:
+1
-1
@@ -37,7 +37,7 @@ import org.jetbrains.plugins.groovy.lang.psi.api.statements.expressions.path.GrC
|
||||
|
||||
private val LibInfo.gradleMarker get() = "$groupId:$name:"
|
||||
|
||||
class GradleDependencyInspection : GradleBaseInspection() {
|
||||
class DeprecatedGradleDependencyInspection : GradleBaseInspection() {
|
||||
override fun buildVisitor(): BaseInspectionVisitor = DependencyFinder()
|
||||
|
||||
private open class DependencyFinder : KotlinGradleInspectionVisitor() {
|
||||
+3
-3
@@ -22,7 +22,7 @@ import com.intellij.openapi.util.Ref
|
||||
import com.intellij.openapi.vfs.VirtualFile
|
||||
import org.jetbrains.kotlin.idea.inspections.gradle.DifferentKotlinGradleVersionInspection
|
||||
import org.jetbrains.kotlin.idea.inspections.gradle.DifferentStdlibGradleVersionInspection
|
||||
import org.jetbrains.kotlin.idea.inspections.gradle.GradleDependencyInspection
|
||||
import org.jetbrains.kotlin.idea.inspections.gradle.DeprecatedGradleDependencyInspection
|
||||
import org.jetbrains.kotlin.idea.inspections.runInspection
|
||||
import org.junit.Assert
|
||||
import org.junit.Test
|
||||
@@ -215,7 +215,7 @@ class GradleInspectionTest : GradleImportingTestCase() {
|
||||
""")
|
||||
importProject()
|
||||
|
||||
val tool = GradleDependencyInspection()
|
||||
val tool = DeprecatedGradleDependencyInspection()
|
||||
val problems = getInspectionResult(tool, localFile)
|
||||
|
||||
Assert.assertTrue(problems.isEmpty())
|
||||
@@ -245,7 +245,7 @@ class GradleInspectionTest : GradleImportingTestCase() {
|
||||
""")
|
||||
importProject()
|
||||
|
||||
val tool = GradleDependencyInspection()
|
||||
val tool = DeprecatedGradleDependencyInspection()
|
||||
val problems = getInspectionResult(tool, localFile)
|
||||
|
||||
Assert.assertTrue(problems.size == 1)
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
level="WARNING"/>
|
||||
|
||||
<localInspection
|
||||
implementationClass="org.jetbrains.kotlin.idea.inspections.gradle.GradleDependencyInspection"
|
||||
implementationClass="org.jetbrains.kotlin.idea.inspections.gradle.DeprecatedGradleDependencyInspection"
|
||||
displayName="Deprecated library is used in Gradle"
|
||||
groupName="Kotlin"
|
||||
enabledByDefault="true"
|
||||
|
||||
Reference in New Issue
Block a user