How can I surface kotlin compiler warnings in CICD...
# getting-started
u
How can I surface kotlin compiler warnings in CICD? I read that there is a
code climate
format. Any easy way to generate it? What I think I am actually asking, if there is a flag that would output all the warnings in a structured way
h
If you use Gradle, there is a new problem api that is supported by Kotlin and there are plans to access the reported problems without the Gradle tooling api, eg for code climate reports in the future.
💯 1
👀 1
c
do you know where we can learn more about this feature?
h
There are plans to make the problems available: https://github.com/gradle/gradle/issues/30627 Technically, you could already use the embedded json of the html report, but it is not a public api and a hack.
u
just to be clear, ill get the warnings via the gradle problems api?
e
at the moment it's only possible to receive Problems through the tooling API
there is a feature request to provide a report over the whole Gradle build https://github.com/gradle/gradle/issues/24379