Suppressing a rule in Scala

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    SonarQube 7.9.1, SonarScala
  • what are you trying to achieve
    Suppress one of the code smell reported as its false positive for the given context
  • what have you tried so far to achieve this
    Tried using // NOSONAR at end of the line, It does not help.

Hi,

Welcome to the community!

It’s possible that //NOSONAR hasn’t been implemented for Scala. You may just need to do this through the UI.

 
HTH,
Ann