scitools.com

← Metric catalog

Strict 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 Cyclomatic Complexity

API ID: CyclomaticStrict
Also Known As: Strict Cyclomatic Complexity (CC2)
Languages: Ada, Assembly, Basic, C#, C++, Fortran, Java, Jovial, Pascal, Python, Rust, VHDL, Web
Targets: Files, Functions, Modules, Packages, Subprograms

Strict McCabe Cyclomatic Complexity.

The Cyclomatic Complexity with logical conjunction and logical and in conditional expressions also adding 1 to the complexity for each of their occurrences. i.e. The statement 'if (a && b || c)' would have a cyclomatic complexity of 1 but a strict cyclomatic complexity of 3

Also known as McCabe - Strict Cyclomatic Complexity (CC2).


Targets By Language: Configuration: