Linux / Arch / Um
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
  • 2% duplication:
    • 18,411 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 453 duplicated lines
  • 36 duplicates
system2% (453 lines)
Duplication per Extension
c2% (359 lines)
S26% (94 lines)
Duplication per Component (primary)
drivers2% (299 lines)
kernel4% (134 lines)
os-Linux<1% (20 lines)
include0% (0 lines)
Longest Duplicates
The list of 36 longest duplicates.
See data for all 36 duplicates...
Size#FoldersFilesLinesCode
18 x 2 drivers
drivers
210:231 (2%)
327:348 (2%)
view
13 x 2 kernel
kernel
1:16 (7%)
2:17 (12%)
view
12 x 2 kernel
kernel
57:68 (7%)
59:70 (11%)
view
11 x 2 drivers
drivers
424:434 (3%)
449:459 (3%)
view
9 x 2 drivers
drivers
28:38 (16%)
30:40 (12%)
view
9 x 2 drivers
drivers
682:692 (1%)
782:792 (<1%)
view
9 x 2 drivers
drivers
194:204 (1%)
312:322 (1%)
view
8 x 2 drivers
drivers
158:165 (7%)
74:81 (15%)
view
8 x 2 drivers
drivers
145:152 (7%)
74:81 (15%)
view
8 x 2 kernel
kernel
74:81 (4%)
35:42 (7%)
view
8 x 2 drivers
drivers
96:103 (6%)
103:110 (6%)
view
8 x 2 drivers
drivers
145:152 (7%)
158:165 (7%)
view
8 x 2 kernel
kernel
168:177 (4%)
112:121 (7%)
view
8 x 2 drivers
drivers
188:197 (3%)
249:258 (3%)
view
8 x 2 drivers
drivers
78:87 (5%)
57:67 (15%)
view
8 x 2 drivers
drivers
511:520 (<1%)
561:570 (<1%)
view
7 x 2 drivers
drivers
113:120 (4%)
141:148 (4%)
view
7 x 2 kernel
kernel
372:379 (1%)
420:427 (1%)
view
7 x 2 drivers
drivers
635:644 (1%)
1707:1714 (<1%)
view
7 x 2 drivers
drivers
113:120 (4%)
157:164 (4%)
view
7 x 2 kernel
kernel
388:395 (1%)
420:427 (1%)
view
7 x 2 os-Linux
os-Linux
312:319 (1%)
350:357 (1%)
view
7 x 2 kernel
kernel
372:379 (1%)
388:395 (1%)
view
7 x 2 drivers
drivers
89:95 (11%)
222:228 (4%)
view
7 x 2 kernel
kernel
404:411 (1%)
420:427 (1%)
view
7 x 2 drivers
drivers
142:148 (3%)
158:164 (3%)
view
7 x 2 kernel
kernel
388:395 (1%)
404:411 (1%)
view
7 x 2 kernel
kernel
372:379 (1%)
404:411 (1%)
view
7 x 2 drivers
drivers
141:148 (4%)
157:164 (4%)
view
6 x 2 kernel
kernel
88:93 (3%)
48:53 (5%)
view
6 x 2 drivers
drivers
685:690 (1%)
699:704 (1%)
view
6 x 2 drivers
drivers
685:690 (1%)
747:752 (1%)
view
6 x 2 drivers
drivers
699:704 (1%)
747:752 (1%)
view
6 x 2 drivers
os-Linux
136:145 (5%)
232:240 (1%)
view
6 x 2 kernel
kernel
226:231 (1%)
487:492 (1%)
view
6 x 2 drivers
drivers
712:717 (1%)
729:734 (1%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
11 x 2 drivers
drivers
780:793 
680:693 
view
6 x 2 os-Linux
os-Linux
84:91 
182:189 
view