How to suppress Scalastyle warning?
Scalastyle understands suppression comments: // scalastyle:off <rule id> … // scalastyle:on <rule id> Rule ids are listed here In your case, the id is simply null: // scalastyle:off null … // scalastyle:on null This was also answered on the mailing list