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 ^[a-z][a-zA-Z0-9]*$

Here’s an existing topic you can vote on:

1 Like

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