Is it possible to run Java rules on Kotlin code?

Hello, we are working on a spring backed written in kotlin. It appears that there are some java rules that we would like to see flagged in our kotlin files (ie Is there a way to configure SonarLint (or SonarQube for that matter) to run java rules on kotlin files?


hello @vrish88,

no this is not possible, Java rules are designed only to analyze Java source code. We have Kotlin analyzer, although, it doesn’t have the rule you are mentioning.

Is there any roadmap for when these rules might also be made available for kotln? Or are there any work arounds we could do to get this functionality?