[KAPT] KT-64301 Report invalid enum value names

Merge-request: KT-MR-13520
Merged-by: Pavel Mikhailovskii <Pavel.Mikhailovskii@jetbrains.com>
This commit is contained in:
strangepleasures
2023-12-13 17:53:52 +00:00
committed by Space Team
parent 676e350b6f
commit 1015ae858e
4 changed files with 57 additions and 8 deletions
@@ -85,11 +85,7 @@ private fun run(
WriterBackedKaptLogger(isVerbose = false),
)
val onError = { message: String ->
if (context.options[KaptFlag.STRICT]) {
context.reportKaptError(*message.split("\n").toTypedArray())
} else {
context.logger.warn(message)
}
context.reportKaptError(*message.split("\n").toTypedArray())
}
return context to generateStubs(module, files, options, onError, metadataRenderer = { renderMetadata(it) })
}