The part of our codebase which is using Kotlin is getting bigger and bigger. And apart from the fact that the coding rules supplied by the SonarKotlin plugin is pretty basic, we have a need for custom coding rules (specific to our coding rules & architecture).
Unfortunately custom coding rules for Kotlin seems not to be officially supported. But using the Slang project I was able to build a dummy custom rule using the language agnostic AST. But as it’s language agnostic it’s very limited.
I saw that the Kotlin plugin itself uses org.jetbrains.kotlin.psi.* API. Is there any way to access the Kotlin PsiElements somehow?