From be3fea152ae5dcec5ba9a29d86a69010d6b2e428 Mon Sep 17 00:00:00 2001 From: Błażej Kardyś Date: Tue, 8 Sep 2020 12:10:59 +0200 Subject: Adding configuration mpp check for javadoc --- core/src/main/kotlin/validity/PreGenerationChecker.kt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 core/src/main/kotlin/validity/PreGenerationChecker.kt (limited to 'core/src/main/kotlin/validity') diff --git a/core/src/main/kotlin/validity/PreGenerationChecker.kt b/core/src/main/kotlin/validity/PreGenerationChecker.kt new file mode 100644 index 00000000..7cdad59b --- /dev/null +++ b/core/src/main/kotlin/validity/PreGenerationChecker.kt @@ -0,0 +1,12 @@ +package org.jetbrains.dokka.validity + +interface PreGenerationChecker : () -> PreGenerationCheckerOutput { + + override fun invoke(): PreGenerationCheckerOutput +} + +data class PreGenerationCheckerOutput(val result: Boolean, val messages: List) { + + operator fun plus(pair: Pair>) = + Pair(result && pair.first, messages + pair.second) +} \ No newline at end of file -- cgit