Scalastyle 0.1.0 released

45 views
Skip to first unread message

Matthew Farwell

unread,
Aug 20, 2012, 10:02:13 AM8/20/12
to scala-a...@googlegroups.com, scalasty...@googlegroups.com
Hello all,

I am happy to announce the release of Scalastyle version 0.1.0, the style checker for Scala. For more information, see the Scalastyle website: http://www.scalastyle.org/ .

You can use Scalastyle in the following ways:

- From the command line
- Via a maven plugin
- from an Eclipse plugin.

0.1.0 is the first stable release. It includes the following checks:

ClassNamesChecker - Check that class names match a regular expression
CovariantEqualsChecker - Check that classes and objects do not define equals without overriding equals(java.lang.Object).
CyclomaticComplexityChecker - Checks that the cyclomatic complexity of a method does exceed a value
EqualsHashCodeChecker - Check that if a class implements either equals or hashCode, it should implement the other
FileLengthChecker - Check the number of lines in a file
FileLineLengthChecker - Check the number of characters in a line
FileTabChecker - Check that there are no tabs in a file
HeaderMatchesChecker - Check the first lines of each file matches the text
IfBraceChecker - Checks that if statement have braces
IllegalImportsChecker - Check that a class does not import certain classes
MagicNumberChecker - Checks for use of magic numbers
MethodLengthChecker - Checks that methods do not exceed a maximum length
MethodNamesChecker - Check that method names match a regular expression
NewLineAtEofChecker - Checks that a file ends with a newline character
NoCloneChecker - Check that classes and objects do not define the clone() method
NoFinalizeChecker - Check that classes and objects do not define the finalize() method
NoNewLineAtEofChecker - Checks that a file does not end with a newline character
NoWhitespaceAfterLeftBracketChecker - No whitespace after left bracket ‘[’
NoWhitespaceBeforeLeftBracketChecker - No whitespace before left bracket ‘[’
NullChecker - Check that null is not used
NumberOfMethodsInTypeChecker - Check that a class / trait / object does not have too many methods
NumberOfTypesChecker - Checks that there are not too many types declared in a file
ObjectNamesChecker - Check that object names match a regular expression
PackageObjectNamesChecker - Check that package object names match a regular expression
ParameterNumberChecker - Maximum number of parameters for a method
PublicMethodsHaveTypeChecker - Check that a method has an explicit return type, it is not inferred
RegexChecker - Checks that a regular expression cannot be matched, if found reports this
ReturnChecker - Check that return is not used
SimplifyBooleanExpressionChecker - Boolean expression can be simplified
SpacesAfterPlusChecker - Check that the plus sign is followed by a space
SpacesBeforePlusChecker - Check that the plus sign is preceded by a space
StructuralTypeChecker - Check that structural types are not used.
UppercaseLChecker - Checks that if a long literal is used, then an uppercase L is used
VarFieldChecker - Checks that classes and objects do not define mutable fields
VarLocalChecker - Checks that functions do not define mutable variables
WhileChecker - Checks that while is not used
WhitespaceEndOfLineChecker - Check that there is no trailing whitespace at the end of lines


Thanks.

Matthew Farwell.

Jesse Eichar

unread,
Aug 20, 2012, 10:29:35 AM8/20/12
to matthew...@gmail.com, scala-a...@googlegroups.com, scalasty...@googlegroups.com
Congratulations on this Matthew.  I am going to try this out on scala IO I am thinking.

Jesse
Reply all
Reply to author
Forward
0 new messages