facebook / wdt
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
  • 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...
Duplication Overall
  • 3% duplication:
    • 12,299 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 472 duplicated lines
  • 25 duplicates
system3% (472 lines)
Duplication per Extension
tcl36% (210 lines)
cpp2% (178 lines)
h2% (68 lines)
in34% (16 lines)
Duplication per Component (primary)
build37% (218 lines)
ROOT2% (154 lines)
util1% (100 lines)
bench0% (0 lines)
Longest Duplicates
The list of 25 longest duplicates.
See data for all 25 duplicates...
Size#FoldersFilesLinesCode
40 x 2 build
build
24:70 (18%)
29:75 (24%)
view
20 x 2 build
build
24:43 (31%)
70:89 (9%)
view
17 x 2 build
build
129:145 (7%)
131:147 (10%)
view
14 x 2 util
util
43:81 (28%)
65:103 (23%)
view
14 x 2 ROOT
ROOT
421:436 (3%)
446:461 (4%)
view
10 x 2 ROOT
util
387:396 (2%)
323:332 (4%)
view
9 x 2 ROOT
ROOT
259:269 (1%)
625:634 (1%)
view
8 x 2 build
build
98:105 (3%)
102:109 (4%)
view
8 x 2 util
util
305:317 (2%)
424:434 (2%)
view
8 x 2 util
util
91:107 (16%)
107:123 (13%)
view
8 x 2 ROOT
build
1:9 (36%)
1:9 (66%)
view
8 x 2 util
util
279:292 (2%)
402:413 (2%)
view
7 x 2 ROOT
ROOT
748:755 (<1%)
760:767 (<1%)
view
7 x 2 util
util
32:46 (30%)
59:76 (24%)
view
7 x 2 build
build
87:95 (3%)
91:99 (4%)
view
7 x 2 ROOT
ROOT
197:204 (<1%)
111:118 (<1%)
view
7 x 2 ROOT
ROOT
365:371 (1%)
427:433 (1%)
view
6 x 2 ROOT
ROOT
343:348 (<1%)
398:403 (<1%)
view
6 x 2 build
build
7:13 (2%)
12:18 (3%)
view
6 x 2 ROOT
ROOT
538:543 (1%)
576:581 (1%)
view
6 x 2 build
build
72:77 (2%)
77:82 (3%)
view
6 x 2 ROOT
ROOT
481:487 (1%)
520:526 (1%)
view
6 x 2 ROOT
ROOT
560:565 (1%)
610:615 (1%)
view
6 x 2 build
build
222:227 (2%)
171:176 (3%)
view
6 x 2 build
build
26:31 (9%)
77:82 (3%)
view