Skip to content

The Scalastyle configuration we use for our in-house Scala projects

License

Notifications You must be signed in to change notification settings

zendesk/scalastyle_config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

scalastyle_config

The Scalastyle configuration we use for our in-house Scala projects.

Using with the Scalastyle SBT plugin

Assuming your project already has the plugin setup, update your build.sbt to include the following settings:

scalastyleConfigUrl := Some("https://raw.githubusercontent.com/zendesk/scalastyle_config/master/scalastyle-config.xml"),
scalastyleConfigUrlCacheFile := "scalastyle-config.xml",
scalastyleConfigRefreshHours := 168 // Weekly instead of daily.

NOTE: if you're using a recent version of Zendesk's (internal) zendesk_sbt_base_settings plugin, then these settings are already setup for you.

The scalastyleConfigUrlCacheFile setting puts the downloaded file into the root of your repository, which is where IntelliJ expects it to be.

To ensure that the download config is not part of your Git repository, add a line containing scalastyle-config.xml to .gitignore (which can be in the root of your repository, or the global one).

Releases

No releases published

Packages

No packages published