Linux / Arch / Hexagon
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
  • 11% duplication:
    • 5,462 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 611 duplicated lines
  • 902 duplicates
system11% (611 lines)
Duplication per Extension
S17% (438 lines)
h11% (147 lines)
c1% (26 lines)
Duplication per Component (primary)
kernel11% (276 lines)
include11% (147 lines)
lib8% (97 lines)
mm14% (91 lines)
Longest Duplicates
The list of 50 longest duplicates.
See data for all 902 duplicates...
Size#FoldersFilesLinesCode
13 x 2 lib
lib
214:226 (4%)
220:232 (4%)
view
12 x 2 lib
lib
28:39 (27%)
22:33 (35%)
view
12 x 2 include/asm
include/asm
85:96 (13%)
101:112 (13%)
view
10 x 2 mm
mm
22:32 (10%)
21:31 (13%)
view
10 x 2 lib
lib
412:421 (1%)
422:431 (1%)
view
9 x 2 mm
mm
10:20 (9%)
9:19 (12%)
view
8 x 2 lib
lib
375:382 (1%)
416:423 (1%)
view
8 x 2 include/asm
include/asm
98:105 (8%)
143:150 (8%)
view
8 x 2 lib
lib
385:392 (1%)
426:433 (1%)
view
7 x 2 lib
lib
374:380 (1%)
384:390 (1%)
view
7 x 2 mm
mm
37:46 (9%)
62:71 (9%)
view
7 x 2 mm
mm
64:70 (7%)
74:80 (7%)
view
7 x 2 include/asm
include/asm
40:47 (6%)
90:97 (6%)
view
7 x 2 include/asm
include/asm
40:47 (6%)
64:72 (6%)
view
7 x 2 lib
lib
99:105 (1%)
107:113 (1%)
view
7 x 2 lib
lib
214:220 (2%)
226:232 (2%)
view
7 x 2 mm
mm
54:60 (7%)
74:80 (7%)
view
7 x 2 mm
mm
54:60 (7%)
64:70 (7%)
view
7 x 2 include/asm
include/asm
64:72 (6%)
90:97 (6%)
view
7 x 2 include/asm
include/asm
33:39 (7%)
81:87 (7%)
view
6 x 2 kernel
kernel
199:204 (1%)
259:264 (1%)
view
6 x 2 kernel
kernel
271:276 (1%)
391:396 (1%)
view
6 x 2 kernel
kernel
319:324 (1%)
325:330 (1%)
view
6 x 2 kernel
kernel
229:234 (1%)
391:396 (1%)
view
6 x 2 kernel
kernel
247:252 (1%)
307:312 (1%)
view
6 x 2 kernel
kernel
307:312 (1%)
343:348 (1%)
view
6 x 2 kernel
kernel
217:222 (1%)
409:414 (1%)
view
6 x 2 kernel
kernel
265:270 (1%)
343:348 (1%)
view
6 x 2 kernel
kernel
247:252 (1%)
301:306 (1%)
view
6 x 2 kernel
kernel
199:204 (1%)
265:270 (1%)
view
6 x 2 kernel
kernel
223:228 (1%)
349:354 (1%)
view
6 x 2 kernel
kernel
265:270 (1%)
349:354 (1%)
view
6 x 2 kernel
kernel
181:186 (1%)
217:222 (1%)
view
6 x 2 kernel
kernel
313:318 (1%)
385:390 (1%)
view
6 x 2 kernel
kernel
307:312 (1%)
349:354 (1%)
view
6 x 2 kernel
kernel
271:276 (1%)
385:390 (1%)
view
6 x 2 kernel
kernel
175:180 (1%)
181:186 (1%)
view
6 x 2 kernel
kernel
229:234 (1%)
385:390 (1%)
view
6 x 2 kernel
kernel
313:318 (1%)
379:384 (1%)
view
6 x 2 kernel
kernel
217:222 (1%)
403:408 (1%)
view
6 x 2 kernel
kernel
247:252 (1%)
295:300 (1%)
view
6 x 2 kernel
kernel
175:180 (1%)
187:192 (1%)
view
6 x 2 kernel
kernel
229:234 (1%)
403:408 (1%)
view
6 x 2 kernel
kernel
307:312 (1%)
355:360 (1%)
view
6 x 2 kernel
kernel
289:294 (1%)
421:426 (1%)
view
6 x 2 kernel
kernel
193:198 (1%)
223:228 (1%)
view
6 x 2 kernel
kernel
223:228 (1%)
355:360 (1%)
view
6 x 2 kernel
kernel
247:252 (1%)
289:294 (1%)
view
6 x 2 kernel
kernel
265:270 (1%)
355:360 (1%)
view
6 x 2 kernel
kernel
199:204 (1%)
253:258 (1%)
view
Duplicated Units
The list of top 6 duplicated units.
See data for all 6 unit duplicates...
Size#FoldersFilesLinesCode
15 x 2 include/asm
include/asm
58:73 
91:107 
view
15 x 2 include/asm
include/asm
31:48 
55:74 
view
15 x 2 mm
mm
15:33 
60:78 
view
12 x 2 include/asm
include/asm
28:41 
76:88 
view
9 x 2 include/asm
include/asm
200:211 
221:232 
view
8 x 2 include/asm
include/asm
122:130 
132:141 
view