METRICS.TRET
Number of "return" statements
Description
This metric measures the number of "return" statements in a class.
Methods with multiple return points are easy to program, but they are more difficult to debug and maintain.
By default, Jtest reports an error if this metric's value is not between 0 and 1.
Note: This rule only checks explicit "return" statements. It does not test abstract or native methods or any methods that are declared in the interface.
|