forked from scalastyle/scalastyle
-
Notifications
You must be signed in to change notification settings - Fork 3
/
release-notes.txt
78 lines (67 loc) · 4.34 KB
/
release-notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
Version 0.3.0
=============
* Support for 2.10
* Skip PublicMethodsHaveTypeChecker for constructors
* Skip PublicMethodsHaveTypeChecker when function body does not exist
* Added ignoreOverride parameter for PublicMethodsHaveTypeChecker, if true, don't check methods with override
* For method names, ignore mutators by default (foo=_())
* Allow declaration of a customID for rules, if a rule has more than one instance (for example a regex)
* Add rule for block imports
* Catch usage of ??? operator
Version 0.2.0
=============
* Redundant if checker - check for if (x) then true else false
* A token regular expression checker - similar to the regular expression checker, except that it only detects tokens, so println in a comment won't match
* DeprecatedJavaChecker - check usage of @Deprecated as a java annotation
* Empty class checker - warns if an empty class is used
* underscore import checker - warns on use of wildcard imports
* Lowercase pattern matcher checker - warns on use of a lowercase pattern match case x => foo, which can cause unexpected behaviour
* duplicated string literals in a file checker.
* Import grouping checker
Also:
* Upgrade to Scala 2.9.2
* An SBT plugin, which generates checkstyle type report xml for jenkins
* Correct handling of file encoding in the maven and Eclipse plugins
* The maven plugin can optionally generate checkstyle type report xml for jenkins
* Corrections to the import checker, to cope with import selectors
Version 0.1.0
=============
The first release of Scalastyle.
The following checkers were added:
* 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