com.puppycrawl.tools.checkstyle.checks.metrics
Class NPathComplexityCheck
public final
class
NPathComplexityCheck
extends AbstractComplexityCheck
Checks the npath complexity against a specified limt (default = 200).
The npath metric computes the number of possible execution paths
through a function. Similar to the cyclomatic complexity but also
takes into account the nesting of conditional statements and
multi-part boolean expressions.
Author: Simon Harris o_sukhodolsky
TODO: For every or: _value += (_orCount * (nestedValue - 1));
TODO: For every and: ???
public NPathComplexityCheck()
Creates new instance of the check.
public int[] getDefaultTokens()
{@inheritDoc }
protected String getMessageID()
{@inheritDoc }
{@inheritDoc }
{@inheritDoc }