Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space ENGINES1031 and version 10.3.4

...


Code Duplication Analysis

Conditional Content
product: (cpptest)
product: (cpptest)
sv-attr:0A01020401598D973E6641760F8AF4E50A01020401598D973E6749C5267CE6FE

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
product: (cpptest)
product: (cpptest)
sv-attr:0A01020401598D973E6641760F8AF4E50A01020401598D973E6749C5267CE6FE

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

...