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
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…