[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:
committed by
Space Team
parent
676e350b6f
commit
1015ae858e
@@ -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) })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user