aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/validity
diff options
context:
space:
mode:
authorBłażej Kardyś <bkardys@virtuslab.com>2020-09-08 12:10:59 +0200
committerKamil Doległo <9080183+kamildoleglo@users.noreply.github.com>2020-10-08 17:24:29 +0200
commitbe3fea152ae5dcec5ba9a29d86a69010d6b2e428 (patch)
tree35d657281f66fceeff6ee66bbb1aa85ff830262b /core/src/main/kotlin/validity
parent68553bf4c1de2b640a376f0ac4755a6c5bc7dd79 (diff)
downloaddokka-be3fea152ae5dcec5ba9a29d86a69010d6b2e428.tar.gz
dokka-be3fea152ae5dcec5ba9a29d86a69010d6b2e428.tar.bz2
dokka-be3fea152ae5dcec5ba9a29d86a69010d6b2e428.zip
Adding configuration mpp check for javadoc
Diffstat (limited to 'core/src/main/kotlin/validity')
-rw-r--r--core/src/main/kotlin/validity/PreGenerationChecker.kt12
1 files changed, 12 insertions, 0 deletions
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<String>) {
+
+ operator fun plus(pair: Pair<Boolean, List<String>>) =
+ Pair(result && pair.first, messages + pair.second)
+} \ No newline at end of file