From fcb2f4ae72bdc62df37e61360d2d206c36717612 Mon Sep 17 00:00:00 2001 From: aSemy <897017+aSemy@users.noreply.github.com> Date: Tue, 25 Apr 2023 22:27:35 +0200 Subject: Tidy/remove unnecessary imports and suppressions (#2975) --- .../kotlin/org/jetbrains/dokka/gradle/GradleDokkaSourceSetBuilder.kt | 3 +-- .../org/jetbrains/dokka/gradle/GradleDokkaSourceSetBuilderTest.kt | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'runners/gradle-plugin/src/test/kotlin') 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) -- cgit