Sum 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.
Sum Strict Modified Cyclomatic Complexity
API ID: SumCyclomaticStrictModifiedLanguages: Ada, Basic, C#, C++, Fortran, Java, Jovial, Pascal, Python, Rust, Web
Targets: Architectures, Classes, Files, Functions, Modules, Packages, Project, Subprograms
Sum of strict modified cyclomatic complexity of all nested functions or methods.
- Ada: Project, File, Type, Entry, Function, Package, Procedure, Protected, Task
- Basic: Project, File, Method, Module, Class, Struct
- C#: Project, File, Class, Struct, Method
- C++: Project, File, Class, Struct, Union
- Fortran: Project, File, Module, Function, Program, Subroutine
- Java: Project, File, Class, Interface, Method
- Jovial: Project, File
- Pascal: Project, File, Class, Interface, Compunit, Function, Procedure
- Python: Project, File, Class
- Rust: Project, File
- Web: Project, File, PHP Class, PHP Interface
- For projects and architectures, this metric must also be enabled from "Project Configuration/Metrics/Projects and Architectures" with the "Show aggregated function metrics" option.
- The cyclomatic metric used is configured from "Project Configuration/Metrics/Complexity". This metric results from having "Count each decision in a multi-way-decision structure" off and having "Count logical conjuctions (OR) and logical and (AND)" on. Checking "Show all available cyclomatic complexity metric variants" will also enable the metric.