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.