kotlin:S101 Support @Suppress to ignore rules on certain cases

versions used

  • SonarScanner 4.2.0.1873-macosx
  • Sonarqube 8.2.0.32929 Docker

error observed
I suppressed “ClassName”, but it still raises kotlin:S101.

@Suppress("ClassName")
class NOTIFICATION_POST(
    // ...
}

Samething happens for kotlin:S100

@Suppress("FunctionName")
fun AbcTaskController(context: Context): AbcController = AbcControllerImpl(context)

Rule description says:

Rename function “LiffTaskController” to match the regular expression [1][a-zA-Z0-9]*$


  1. a-z ↩︎

Here’s an existing topic you can vote on:

https://community.sonarsource.com/t/support-suppress-for-the-sonarqube-kotlin-analyzer/11829

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.