You could probably use [scalastyle](http://www.scalastyle.org/) to check for issues like this, although I haven't tried it.