The sonarqube kotlin analyzer currently doesn’t support any mechanism to suppress false positive issues in code.
An issue was opened to support suppression with
This is a nice first step, but is quite limited, as it doesn’t allow you to indicate which issue you’re suppressing. Furthermore, even if you only want to suppress one particular issue, all issues in the concerned lines will be suppressed, which means you may end up missing some real issues.
@SuppressWarnings and detekt supports
@Suppress to suppress specific rules.
It would be nice to have a similar mechanism for the kotlin sonar plugin.