From 8c218ff4dd5f970233c43845c19299fc74256389 Mon Sep 17 00:00:00 2001 From: Ignat Beresnev Date: Fri, 29 Apr 2022 15:03:08 +0300 Subject: Enable warnings as errors and fix all warnings (#2451) * Enable warnings as errors and fix all warnings * Enable skip-metadata-version-check compiler setting --- .../test/kotlin/org/jetbrains/dokka/gradle/DokkaMultiModuleTaskTest.kt | 2 ++ .../org/jetbrains/dokka/gradle/GradleDokkaSourceSetBuilderTest.kt | 1 + 2 files changed, 3 insertions(+) (limited to 'runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka') diff --git a/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/DokkaMultiModuleTaskTest.kt b/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/DokkaMultiModuleTaskTest.kt index 5ad33c57..6e851326 100644 --- a/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/DokkaMultiModuleTaskTest.kt +++ b/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/DokkaMultiModuleTaskTest.kt @@ -201,6 +201,8 @@ class DokkaMultiModuleTaskTest { val childTask = child.tasks.create("child") parentTask.addChildTask(childTask) + + @Suppress("NAME_SHADOWING") // ¯\_(ツ)_/¯ parentTask.fileLayout by DokkaMultiModuleFileLayout { parent, child -> parent.project.buildDir.resolve(child.name) } 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 59b35917..770d1af3 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 @@ -148,6 +148,7 @@ class GradleDokkaSourceSetBuilderTest { } @Test + @Suppress("DEPRECATION") fun includeNonPublic() { val sourceSet = GradleDokkaSourceSetBuilder("", project) assertEquals( -- cgit