Scalastyle examines your Scala code and indicates potential problems with it.  Place scalastyle_config.xml in the <root>/.idea or <root>/project directory.

scalastyle官网 上下载scalastyle_config.xml文件到spark代码根目录下,替换原来的xml文件,重启IDEA即可。

更多推荐

IDEA下修改spark源码报错