I have some code like:
class unused extends scala.annotation.StaticAnnotation // scalastyle:ignore class.name
When running scalastyle locally, it rightly ignores the broken rule on the object name. In Sonar however, it appears as a code smell. It works in Sonar if I remove the rule ID:
class unused extends scala.annotation.StaticAnnotation // scalastyle:ignore