Scalastyle examines your Scala code and indicates potential problems with it.

Place scalastyle_config.xml to the
<root>/.idea or <root>/project
directory.

Full documentation is available on the Scalastyle website