scitools.com

← Metric catalog

Strict Modified Cyclomatic Complexity is one of the source-code metrics Understand computes across 17+ languages — browse them in the GUI, export and track them, or script them with the Python API.

Strict Modified Cyclomatic Complexity

API ID: CyclomaticStrictModified
Languages: Ada, Basic, C#, C++, Fortran, Java, Jovial, Pascal, Python, Rust, Web
Targets: Files, Functions, Modules, Packages, Subprograms

Cyclomatic Complexity with the following conditions.

(1) Logical operators (AND, OR) in conditional expressions add one (1) to the complexity for each occurrence.
(2) In multi-decision structures (switch in C/Java, Case in Ada, computed Goto, and arithmetic if in FORTRAN) the decision points are not counted, instead, the entire multi-way decision structure counts as 1


Targets By Language: Configuration: