Scalastyle examines your Scala code and indicates potential problems with it. If you have come across Checkstyle for Java, then you’ll have a good idea what scalastyle is. Except that it’s for Scala obviously.
Scalastyle was recently used as part of the grading framework for the course Functional Programming Principles in Scala by Martin Odersky on Coursera.
How do I use scalastyle?
The latest stable version of Scalastyle is 0.3.2 for Scala 2.9.2 & 2.10. See the Release Notes
There are several ways of using it:
And you’ll need a configuration.
To download Scalastyle, the jar is available from Sonatype.
For the maven plugin, see Scalastyle Maven Plugin
For the SBT plugin, see Scalastyle SBT Plugin
Eclipse plugin (for 3.7 Indigo): Update site http://www.scalastyle.org/downloads/indigo/2.10-0.3.2/site
Eclipse plugin (for 4.2 Juno): Update site http://www.scalastyle.org/downloads/juno/2.10-0.3.2/site
Eclipse plugin (for 3.6 Helios, Scala 2.9.2 / scalastyle 0.2.0 only): Update site http://www.scalastyle.org/downloads/indigo/2.9.2-0.2.0/site
The latest development snapshots are available from Sonatype snapshots
For a list of actual rules, see Implemented Rules.
For a list of rules in the latest development version, see Development Implemented Rules.
For the version 0.2.0 rules, see 0.2.0 Implemented Rules.
For the version 0.1.0 rules, see 0.1.0 Implemented Rules.
Questions and comments
If you have any questions or comments, please see Scalastyle users Google groups