Project Quality (CBRI) is one of Understand's built-in reports — run it on your own code from the GUI, or headlessly with und report.
Project Quality (CBRI)
Languages: AnyTargets: Architectures, Project
Show the project quality metrics used by CBR-Insight
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 metrics across three categories:
- Architecture - modularity of the project
- Core Size ( CorePercentage) - the percentage of files in the largest cyclical group. Smaller values are better.
- Propagation Cost ( PropagationCost) - the percentage of direct or indirect file dependencies out of the number of possible file dependencies. Smaller values are better
- Complexity - logical complexity within files
- Overly Complex Files ( CBRIOverlyComplexFilesPercent) - the percentage of files that exceed at least 4 of the 5 complexity thresholds. Smaller values are better.
- Duplicate Lines of Code ( DuplicateLinesOfCodePercent) - the percentage of lines of code that are duplicated. Smaller values are better
- Clarity - readability
- Comment Density ( CBRIUsefulCommentToCodeRatio) - the ratio of useful comment lines to useful lines of code. Larger values are better.
The report shows the values for each metric. It also includes a treemap and table with metric values for each file.
See also the Project Quality solution.