Duplication Overall
  • 11% duplication:
    • 835 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 99 duplicated lines
  • 6 duplicates
system11% (99 lines)
dependency graphs: 2D graph | 2D graph (with duplicates)... | 3D graph | 3D graph (with duplicates)...
Duplication per Extension
scala12% (99 lines)
Duplication per Component (primary)
migrator25% (64 lines)
path-manager6% (35 lines)
ROOT0% (0 lines)
nginx0% (0 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
16 x 2 migrator/src/main/scala/com/gu/pathmanager
path-manager/app/services
5:33 (100%)
5:33 (100%)
view
11 x 2 migrator/src/main/scala/com/gu/pathmanager
migrator/src/main/scala/com/gu/pathmanager
66:81 (7%)
103:118 (7%)
view
7 x 2 migrator/src/main/scala/com/gu/pathmanager
path-manager/app/services
30:36 (25%)
25:31 (43%)
view
6 x 2 migrator/src/main/scala/com/gu/pathmanager
migrator/src/main/scala/com/gu/pathmanager
23:30 (4%)
56:63 (4%)
view
6 x 2 migrator/src/main/scala/com/gu/pathmanager
migrator/src/main/scala/com/gu/pathmanager
54:61 (4%)
90:97 (4%)
view
6 x 2 path-manager/app/services
path-manager/app/services
144:150 (3%)
222:228 (3%)
view
About This Analysis
  • For duplication, we look at places in code where there are 6 or more lines of code that are exactly the same.
  • Before duplication is calculated, the code is cleaned to remove empty lines, comments, and frequently duplicated constructs such as imports.
  • You should aim at having as little as possible (<5%) of duplicated code as high-level of duplication can lead to maintenance difficulties, poor factoring, and logical contradictions.
Learn more...