Support for Kotlin/Native

Hello folks,

I know SonarQube supports Kotlin, but does it support Kotlin/Native? Compiler for Kotlin/Native generates platform native byte code rather than JVM byte code.

I’ve tried importing my sample project to SonarCloud, it doesn’t detect any source code (I’ve set up inclusion filters to “*.kt, *.kts” and chose “Kotlin” as language).

Is there anything I’m missing?
Any clues would be welcome.

Thanks!

As has been suggested, I’m using property("sonar.sources", "./src/commonMain/kotlin,./src/nativeMain/kotlin"), but getting this exception:

Execution failed for task ':sonar'.
> class java.lang.String cannot be cast to class java.util.Collection (java.lang.String and java.util.Collection are in module java.base of loader 'bootstrap')

Any help would be appreciated.

It’s great news there is support for Kotlin Multiplatform.

On top of that, does SonarQube support Kotlin / Native?
(I’ve tried importing my Kotlin/Native project and it can’t find any source code lines in it.)

Hi,

Welcome to the community!

You resurrected some tangentially related threads as well as starting this one. Per the FAQ, when a thread has been dormant for 2 months or more - as one of the two was - you should let it lie and start a new one. I’ve consolidated all your posts here.

 
Ann