Understanding Code Duplications

Our code duplication detection system looks at the syntax tree of your code as well as the source code itself to find instances of code duplication. This allows us not only to find literal duplications, but also code which performs similar operations and could be abstracted.

To study duplications in detail, you can use the dedicated duplication view. Just click the button marked View Code Duplication Details next to the issue.

../../_images/code-duplication-button.png

The duplication view shows all occurrences of the duplication with the duplications conveniently highlighted.

../../_images/code-duplication-view.png