com.puppycrawl.tools.checkstyle.checks.metrics
Class NPathComplexityCheck
- Configurable, Contextualizable
public final class NPathComplexityCheck
Checks the npath complexity against a specified limit (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.
- Simon Harris
- o_sukhodolsky
TODO: For every or: _value += (_orCount * (nestedValue - 1));
TODO: For every and: ???
getCurrentValue, getMax, getMessageID, getRequiredTokens, incrementCurrentValue, leaveToken, leaveTokenHook, popValue, pushValue, setCurrentValue, setMax, visitToken, visitTokenHook |
beginTree, destroy, finishTree, getAcceptableTokens, getClassLoader, getDefaultTokens, getFileContents, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens, visitToken |
getId, getMessageBundle, getSeverity, getSeverityLevel, log, log, log, log, log, log, log, log, log, log, log, setId, setSeverity |
NPathComplexityCheck
public NPathComplexityCheck()
Creates new instance of the check.