Versions Compared

Key

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

...

Some will argue that duplication is the worst coding sin because it perpetuates all the others. For instance, copying and pasting a block of code duplicates its bugs and potential bugs, its coding standards breaches, etc. Hence, increasing duplicated lines percentage can indicate such issues as bad design, lack of good inheritance structure or abstraction, copyright infringement and so on.

How it 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. The chart also adjusts a scale automatically to better fit the series shown on a screen.

2017-10-23_16-30-33.png

Calculation Formula

Duplicated Lines (%) is calculated as Duplicated Lines / Total Lines * 100%.

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

...