Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The worst consequence of a big number of duplicates is a case when a software vulnerability is copied, the vulnerability may continue to exist in the copied code if the developer is not aware of such copies. Refactoring of duplicated code can improve many software metrics, such as lines of code, complexity. This may lead to shorter compilation times, lower cognitive load, less human error, and fewer forgotten or overlooked pieces of code.

How

...

metric works

Chart Overview

Duplicate code lines are shown in % (Axis Y) and distributed over time (Axis Y) on the chart.

Each project child unit (can be set up in Project Configuration Wizard) in the legend is clickable, and shows/hides its percentage on the chart once clicked.

2017-10-23_16-30-33.pngImage Modified

...

Calculation 

Duplicated Lines (%) = Duplicated Lines / LOC * 100%,

...

RAG thresholds: Red > 20%, Amber > 5%, otherwise Green.

Data Source

Data for the metric can be collected from Sonar or any other project tracking/engineering tool.


 

Include Page
EPMDMO-ga-entity-Perf
EPMDMO-ga-entity-Perf
 
Include Page
EPMDMO-ga-toplevel-ASSURE
EPMDMO-ga-toplevel-ASSURE

...