scitools.com

← Metric catalog

Max WMC-McCabe (CBRI) 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.

Max WMC-McCabe (CBRI)

API ID: CBRIMaxWMCM
Languages: Any
Targets: Files

A version of "maximum cyclomatic complexity" metric.

This metric is one of five file complexity metrics used by CBR-Insight, a program that grades project quality. (Ludwig, Jeremy, Devin Cline, and Aaron Novstrup. "A case study using CBR-insight to visualize source code quality." 2020 IEEE Aerospace Conference. IEEE, 2020.) . The five metrics and thresholds are:

This metric is used as Sum Cyclomatic Complexity (WMC-McCabe). For a file defining class(es), it is the maximum SumCyclomatic value of the classes. Otherwise, it is the file's MaxCyclomatic value.

See also the Project Quality solution.