IDEA: How to Solve spark source code Modified Error

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

Download scalastyle_config.xml file from scalastyle website to spark code root directory, replace the original xml file and restart IDEA.

Read More: