...
Code Duplication Analysis
Conditional Content | ||||||
---|---|---|---|---|---|---|
| ||||||
C/C++test |
can check for duplicate code to help you improve application design and decrease maintenance costs. During code duplication analysis, the code is parsed into smaller language elements (tokens). The tokens are analyzed according to a set of rules that specify what should be considered duplicate code. There are two types of rules for analyzing tokens:
- Simple rules for finding single token duplicates, e.g., string literals
- Complex rules for finding multiple token duplicates, e.g., duplicate methods or statements
...
Code Block |
---|
builtin://Find Duplicated Code |
Metrics Analysis
Conditional Content | ||||||
---|---|---|---|---|---|---|
| ||||||
C/C++test |
can compute several code metrics, such as code complexity, coupling between objects, or lack of cohesion, which can help you understand potential weak points in the code. Run the Metrics test configuration during analysis to execute metrics analysis rules:
Code Block |
---|
builtin://Metrics |
...