Maven plugin for Scalastyle
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
build-tools Added new rules to config Oct 25, 2012
src Version 0.7.0 Apr 5, 2015
.gitignore added git ignore Apr 9, 2012
.scalastyle Added scalastyle May 7, 2012
.travis.yml Removed 2.9.3 Jun 23, 2014 Fixed formatting Jul 5, 2016
pom.xml Prepare for next iteration Aug 20, 2017


Welcome to maven-scalastyle-plugin. This project is intended to provide maven plugin support for Scalastyle. For more information about Scalastyle, see

Goals Overview

  • scalastyle:check performs a violation check against the scalastyle config file to see if there are any violations. It counts the number of violations found and displays it on the console if verbose is enabled.


Check scalacheck violation part of build cycle

To Configure the Scalastyle Plugin, you need to the add it in the section of your pom.xml as shown in the sample below, and by default the build will fail if there are any violations of level error found. Default phase of execution is verify. The following is an example of a configuration which would be used in a pom:


You can also specify multiple source directories if necessary. Replace the element with :


and similarly for testSourceDirectory & testSourceDirectories.