The latest SonarQube (opens new window) release 7.3 supports analyzing Kotlin out-of-the-box.
SonarQube recognizes cognitive complexity, duplications and other issues. If you previously used Detekt (opens new window) you can import the issues into SonarQube.
Official announcement can be found here (opens new window).