scitools.com

← Report catalog

Duplicate Lines of Code is one of Understand's built-in reports — run it on your own code from the GUI, or headlessly with und report.

Duplicate Lines of Code

Languages: Any
Targets: Architectures, Project
Finds duplicate lines of code within a project.

This plugin searches for duplicate lines of code within a project, helping to identify potential areas for code refactoring and simplification. It allows you to specify the minimum number of lines to match and provides options to ignore whitespace and comments during the analysis.

See also the metric Number of duplicated lines of code and the check "Duplicate Lines of Code". There is also a blog article ↗ describing how duplicate lines are calculated. Duplicate lines of code are part of the Project Quality solution.