Skip to main content

Module cyclomatic_complexity

Module cyclomatic_complexity 

Source

Structs§

DecisionCounter 🔒
Counts the decision points of a function body. For a structured program the cyclomatic complexity E - N + 2P of the control-flow graph equals one plus the number of decision points, so no graph needs building.

Constants§

MAX_COMPLEXITY 🔒
The threshold Slither’s detector of the same name uses: a function reports when its complexity is strictly above this value.

Statics§

CYCLOMATIC_COMPLEXITY