scitools.com

← Metric catalog

Overly Complex Files Percentage (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.

Overly Complex Files Percentage (CBRI)

API IDCBRIOverlyComplexFilesPercent
TargetsArchitectures Project
LanguagesAny
SolutionProject Quality
CategoriesViolations
CostSlow

The percentage of files exceeding more than 3 complexity thresholds

CBR-Insight is 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.). It defines 5 metric thresholds for files:

This metric is the percentage of files whose number of exceeded complexity thresholds ( CBRIThresholdViolations) is greater than 3. For the number of files, use CBRIOverlyComplexFiles.

See also the Project Quality solution.