Optimization rules - provided by CheckStyle
NPathComplexity
Checks the npath complexity against a specified limit (default = 200)
FinalParameters
Check that method/constructor/catch/foreach parameters are final.
ClassDataAbstractionCoupling
This metric measures the number of instantiations of other classes within the given class.
ClassFanOutComplexity
The number of other classes a given class relies on.
FileLength
Checks for long source files.
MethodLength
Checks for long methods.
CyclomaticComplexity
Checks cyclomatic complexity against a specified limit.
BooleanExpressionComplexity
Restricts nested boolean operators (&&, ||, &, | and ^) to a specified depth (default = 3)
HideUtilityClassConstructor
Make sure that utility classes (classes that contain only static methods) do not have a public constructor.
MethodCount
Checks the number of methods declared in each type.
ExecutableStatementCount
Restricts the number of executable statements to a specified limit (default = 30)
JavaNCSS
This check calculates the Non Commenting Source Statements (NCSS) metric for java source files and methods.
NestedForDepth
Restricts nested for blocks to a specified depth (default = 1)
NestedIfDepth
Restricts nested if-else blocks to a specified depth (default = 1)
NestedTryDepth
Restricts nested try-catch-finally blocks to a specified depth (default = 1)
ParameterNumber
Checks the number of parameters that a method or constructor has.
SimplifyBooleanExpression
Checks for overly complicated boolean expressions.
SimplifyBooleanReturn
Checks for overly complicated boolean return statements.
ReturnCount
Restricts return statements to a specified count (default = 2)
ThrowsCount
Restricts throws statements to a specified count (default = 1)
AnonInnerLength
Checks for long anonymous inner classes.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.