Skip to main content

Metrics

tip

Metrics configuration is described here.

Metrics are grouped by a category to help you understand their purpose.

Function specific metrics

cyclomatic-complexity

The number of linearly-independent paths through a method.

halstead-volume

The method size, based on the numbers of operators and operands.

lines-of-code

The number of physical lines of code of a method, including blank lines and comments.

maintainability-index

The indicator which mean how maintainable the source code is.

maximum-nesting-level

The maximum nesting level of control structures within a method.

number-of-parameters

The number of parameters received by a method.

source-lines-of-code

The approximate number of source code lines in a method, blank lines and comments are not counted.

Class specific metrics

number-of-methods

The number of methods of a class.

weight-of-class

The number of "functional" public methods divided by the total number of public members.

File specific metrics

technical-debt

The cost of additional rework caused by choosing an easy (limited) solution now instead of using a better approach that would take longer.