diff options
author | aSemy <897017+aSemy@users.noreply.github.com> | 2023-04-25 22:27:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-25 22:27:35 +0200 |
commit | fcb2f4ae72bdc62df37e61360d2d206c36717612 (patch) | |
tree | fbcbfeae30e3d0ada54299b9f3d7db62a036ad75 /runners/gradle-plugin/src/test/kotlin/org/jetbrains | |
parent | 609c5469bbc0ba3516e760c6e61cf7df2b5c7ff7 (diff) | |
download | dokka-fcb2f4ae72bdc62df37e61360d2d206c36717612.tar.gz dokka-fcb2f4ae72bdc62df37e61360d2d206c36717612.tar.bz2 dokka-fcb2f4ae72bdc62df37e61360d2d206c36717612.zip |
Tidy/remove unnecessary imports and suppressions (#2975)
Diffstat (limited to 'runners/gradle-plugin/src/test/kotlin/org/jetbrains')
2 files changed, 2 insertions, 5 deletions
diff --git a/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/GradleDokkaSourceSetBuilder.kt b/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/GradleDokkaSourceSetBuilder.kt index c555985b..75d184a2 100644 --- a/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/GradleDokkaSourceSetBuilder.kt +++ b/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/GradleDokkaSourceSetBuilder.kt @@ -1,10 +1,9 @@ -@file:Suppress("TestFunctionName") - package org.jetbrains.dokka.gradle import org.gradle.api.Project import org.jetbrains.dokka.DokkaSourceSetID +@Suppress("TestFunctionName") fun GradleDokkaSourceSetBuilder(name: String, project: Project, sourceSetScopeId: String = "${project.path}:test"): GradleDokkaSourceSetBuilder { return GradleDokkaSourceSetBuilder(name, project) { DokkaSourceSetID(sourceSetScopeId, it) } diff --git a/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/GradleDokkaSourceSetBuilderTest.kt b/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/GradleDokkaSourceSetBuilderTest.kt index b202fa3d..d5f92afe 100644 --- a/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/GradleDokkaSourceSetBuilderTest.kt +++ b/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/GradleDokkaSourceSetBuilderTest.kt @@ -1,5 +1,3 @@ -@file:Suppress("TestFunctionName") - package org.jetbrains.dokka.gradle import com.android.build.gradle.internal.api.DefaultAndroidSourceSet @@ -13,7 +11,6 @@ import kotlin.test.* class GradleDokkaSourceSetBuilderTest { - private val project = ProjectBuilder.builder().withName("root").build() @Test @@ -488,5 +485,6 @@ class GradleDokkaSourceSetBuilderTest { } } +@Suppress("TestFunctionName") private fun GradleDokkaSourceSetBuilder(name: String, project: Project) = GradleDokkaSourceSetBuilder(name, project, project.path) |