Scalastyle config & Multi module SBT

182 views
Skip to first unread message

Night Wolf

unread,
Jun 11, 2015, 12:59:37 AM6/11/15
to scalasty...@googlegroups.com

To get Scalastyle SBT to work with scalastyle IntelliJ idea plugin, the file needs to be in ./idea or./project folders and the config file needs to be called scalastyle_config.xml (not scalastyle-config.xml).

This is really silly as you would think everything would be consistent. When trying to set sbt to use the scalastyle_config.xml in the project folder in a multi module project it doesnt work!

scalastyleConfig := file("project/scalastyle_config.xml")

in sbt;

> show scalastyleConfig
[info] reports/*:scalastyleConfig
[info]  scalastyle-config.xml
[info] report-api-common/*:scalastyleConfig
[info]  scalastyle-config.xml
[info] report-sparkjobs/*:scalastyleConfig
[info]  scalastyle-config.xml
[info] etl/*:scalastyleConfig
[info]  scalastyle-config.xml
[info] common/*:scalastyleConfig
[info]  scalastyle-config.xml
[info] root-project/*:scalastyleConfig
[info]  project/scalastyle_config.xml

This is beyond frustrating.

Tim Chan

unread,
Jun 12, 2015, 10:44:07 PM6/12/15
to scalasty...@googlegroups.com
I agree 100%. 

I've spent half of the day trying to figure out how to set scalastyleConfig.
Reply all
Reply to author
Forward
0 new messages