aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/src/main/kotlin/plugability/DokkaContext.kt16
1 files changed, 12 insertions, 4 deletions
diff --git a/core/src/main/kotlin/plugability/DokkaContext.kt b/core/src/main/kotlin/plugability/DokkaContext.kt
index e7028ccf..59090522 100644
--- a/core/src/main/kotlin/plugability/DokkaContext.kt
+++ b/core/src/main/kotlin/plugability/DokkaContext.kt
@@ -68,10 +68,13 @@ private class DokkaContextConfigurationImpl(
}
private sealed class Suppression {
- data class ByExtension(val extension: Extension<*, *, *>) : Suppression()
-
+ data class ByExtension(val extension: Extension<*, *, *>) : Suppression() {
+ override fun toString() = extension.toString()
+ }
- data class ByPlugin(val plugin: DokkaPlugin) : Suppression()
+ data class ByPlugin(val plugin: DokkaPlugin) : Suppression() {
+ override fun toString() = "Plugin ${plugin::class.qualifiedName}"
+ }
}
private val rawExtensions = mutableListOf<Extension<*, *, *>>()
@@ -197,9 +200,14 @@ private class DokkaContextConfigurationImpl(
val loadedListForDebug = extensions.run { keys + values.flatten() }.toList()
.joinToString(prefix = "[\n", separator = ",\n", postfix = "\n]") { "\t$it" }
+ val suppressedList = suppressedExtensions.asSequence()
+ .joinToString(prefix = "[\n", separator = ",\n", postfix = "\n]") {
+ "\t${it.key} by " + (it.value.singleOrNull() ?: it.value)
+ }
+
logger.progress("Loaded plugins: $pluginNames")
logger.progress("Loaded: $loadedListForDebug")
-
+ logger.progress("Suppressed: $suppressedList")
}
}