Hierarchical Code Quality Evaluation Metrics
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing software development using hierarchical structures faces challenges in identifying design problems and evaluating the quality of codebases across various levels, making it difficult to ensure the quality of codebases.
Innovation Solution
A method and system for evaluating codebase quality using a hierarchical structure with metrics and indicators defined at each level, allowing for the calculation and normalization of metrics, and the combination of indicators to provide a comprehensive evaluation of code quality across multiple levels.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Shape
If hierarchical structure is used for software development, then software organization is improved, but difficulty in identifying design problems and evaluating code quality increases
Solution Approach 1:
The patent divides the codebase evaluation into multiple hierarchical levels (package level, class level, method level), with each level having its own specific metrics and indicators. This segmentation allows targeted analysis at each level while maintaining the overall hierarchical structure, making it easier to identify design problems at specific levels without losing the organizational benefits of the hierarchy.
Solution Approach 2:
The patent introduces intermediate evaluation layers including metrics calculation, indicator determination, and index generation between the hierarchical structure and the final quality assessment. These intermediaries transform complex code data into meaningful quality indicators at each level, facilitating problem identification while preserving the hierarchical organization.
2Shape
If hierarchical structure is used for software development, then software organization is improved, but codebase quality evaluation capability deteriorates
Solution Approach 1:
The patent implements level-specific metrics and indicators for each hierarchical level (package, class, method), allowing precise quality measurement at each level rather than applying a single evaluation method to the entire codebase. This segmentation enables accurate local assessment while maintaining hierarchical organization.
Solution Approach 2:
The patent adds a vertical evaluation dimension to the existing horizontal hierarchical structure by introducing multiple evaluation layers (metrics → indicators → indices) at each level. This multi-dimensional approach enhances measurement precision without disrupting the organizational hierarchy.
Data Source
AI summary
A method and apparatus for evaluating quality of a codebase is provided. The evaluation is provided by developing metrics, indicators, and indices for all levels of a codebase to provide indicators of quality and to enable identification of code blocks that need to be improved.


