From 5afe512c669e68aea3712ac37b67d005657cf60a Mon Sep 17 00:00:00 2001 From: Marcin Aman Date: Tue, 6 Apr 2021 18:06:42 +0200 Subject: Suppress inherited members (#1814) --- .../main/kotlin/testApi/testRunner/TestDokkaConfigurationBuilder.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'core/test-api/src/main/kotlin') diff --git a/core/test-api/src/main/kotlin/testApi/testRunner/TestDokkaConfigurationBuilder.kt b/core/test-api/src/main/kotlin/testApi/testRunner/TestDokkaConfigurationBuilder.kt index c0c449fb..fc26ff98 100644 --- a/core/test-api/src/main/kotlin/testApi/testRunner/TestDokkaConfigurationBuilder.kt +++ b/core/test-api/src/main/kotlin/testApi/testRunner/TestDokkaConfigurationBuilder.kt @@ -36,6 +36,7 @@ class TestDokkaConfigurationBuilder { var modules: List = emptyList() var suppressObviousFunctions: Boolean = DokkaDefaults.suppressObviousFunctions var includes: List = emptyList() + var suppressInheritedMembers: Boolean = DokkaDefaults.suppressInheritedMembers private val lazySourceSets = mutableListOf>() fun build() = DokkaConfigurationImpl( @@ -51,6 +52,7 @@ class TestDokkaConfigurationBuilder { failOnWarning = failOnWarning, suppressObviousFunctions = suppressObviousFunctions, includes = includes.toSet(), + suppressInheritedMembers = suppressInheritedMembers, ) fun sourceSets(block: SourceSetsBuilder.() -> Unit) { @@ -194,6 +196,8 @@ fun dPackage( ) fun documentationNode(vararg texts: String): DocumentationNode { - return DocumentationNode(texts.toList().map { Description(CustomDocTag(listOf(Text(it)), name = MarkdownElementTypes.MARKDOWN_FILE.name)) }) + return DocumentationNode( + texts.toList() + .map { Description(CustomDocTag(listOf(Text(it)), name = MarkdownElementTypes.MARKDOWN_FILE.name)) }) } -- cgit