Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a coding standards enforcement tool for Scala?

Where I work, we use mostly Java. We've always made extensive use of CheckStyle to enforce our coding standards for Java.

We're now branching out into Scala. Many of the same considerations as in Java apply (indentation/whitespace, naming conventions, ...) - and arguably having a consistent coding style is even more important given the power of the language.

However, there does not seem to be a Checkstyle equivalent for Scala.

Does anyone know of one?

like image 289
David North Avatar asked Mar 01 '12 13:03

David North


1 Answers

Yes. It is called Scalastyle. (Same sort of focus as Checkstyle and findbugs). It's currently in version 0.2.0, we're adding rules all of the time

EDIT (Dec 2012):

Scalastyle 0.2.0 was released last month, with a total of 46 rules. There is, in no particular order:

  • A maven plugin
  • An eclipse plugin
  • An SBT plugin

Under development are:

  • An Intellij plugin
  • A sonar plugin

Contributions/bug fixes are always welcome: github.

like image 147
Matthew Farwell Avatar answered Oct 12 '22 13:10

Matthew Farwell