I want to surface kotlinc warnings, ideally as `sa...
# gradle
u
I want to surface kotlinc warnings, ideally as
sarif
so github PR ui will pick it up automatically. Is
gradle problems api
coming in 2.2 the way to do it?
h
The problems api passes the warnings to Gradle but it’s not yet possible to pass the problems to GitHub: https://github.com/gradle/actions/issues/30
u
Hmm.. will compilation error be present in the problems api? I though its for warnings and stuff like that
h
Yes
v
A compilation error definitely is a problem 😄
u
Yea but then its not really what the sarif integration was about (surfacing static analysis issues)
Since its not just a gui thing of all issues, but it compares agains main branch and outputs changes
t
Passing Kotlin compiler warning/errors to the Problems API is planned for 2.2.20 release (issue)
d
I know this is not the answer you are looking for, but there used to be a Detekt plugin that did this. I am not sure if it is still working though: https://github.com/BraisGabin/detekt-compiler-rules