Linux / Arch / Arc
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
  • 7% duplication:
    • 11,130 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 831 duplicated lines
  • 72 duplicates
system7% (831 lines)
Duplication per Extension
h18% (542 lines)
c3% (203 lines)
S3% (86 lines)
Duplication per Component (primary)
include18% (542 lines)
kernel3% (177 lines)
lib7% (72 lines)
mm1% (24 lines)
plat-axs10x10% (16 lines)
plat-sim0% (0 lines)
plat-hsdk0% (0 lines)
plat-tb10x0% (0 lines)
Longest Duplicates
The list of 50 longest duplicates.
See data for all 72 duplicates...
Size#FoldersFilesLinesCode
22 x 2 include/asm
include/asm
368:391 (4%)
590:613 (4%)
view
18 x 2 include/asm
include/asm
235:254 (3%)
457:476 (3%)
view
17 x 2 include/asm
include/asm
26:42 (15%)
53:69 (15%)
view
16 x 2 include/asm
include/asm
321:338 (3%)
543:560 (3%)
view
16 x 2 include/asm
include/asm
261:278 (3%)
483:500 (3%)
view
14 x 2 include/asm
include/asm
283:298 (2%)
505:520 (2%)
view
13 x 2 include/asm
include/asm
197:224 (2%)
424:446 (2%)
view
13 x 2 include/asm
include/asm
60:88 (23%)
72:92 (27%)
view
13 x 2 include/asm
include/asm
303:316 (2%)
525:538 (2%)
view
13 x 2 kernel
kernel
110:122 (2%)
167:179 (2%)
view
12 x 2 kernel
kernel
58:75 (6%)
102:119 (6%)
view
12 x 2 lib
lib
11:23 (29%)
24:36 (6%)
view
12 x 2 include/asm
include/asm
10:21 (21%)
26:37 (21%)
view
11 x 2 lib
lib
83:93 (9%)
111:121 (9%)
view
11 x 2 include/asm
include/asm
146:163 (21%)
167:185 (15%)
view
10 x 2 kernel
kernel
99:108 (1%)
170:179 (1%)
view
10 x 2 kernel
kernel
127:137 (1%)
156:165 (1%)
view
10 x 2 kernel
kernel
127:137 (1%)
142:151 (1%)
view
10 x 2 include/asm
include/asm
51:60 (7%)
68:77 (7%)
view
10 x 2 kernel
kernel
142:151 (1%)
170:179 (1%)
view
10 x 2 kernel
kernel
113:122 (1%)
156:165 (1%)
view
10 x 2 kernel
kernel
142:151 (1%)
156:165 (1%)
view
10 x 2 include/asm
include/asm
33:53 (14%)
61:74 (14%)
view
10 x 2 kernel
kernel
99:108 (1%)
156:165 (1%)
view
10 x 2 kernel
kernel
127:137 (1%)
170:179 (1%)
view
10 x 2 kernel
kernel
99:108 (1%)
142:151 (1%)
view
10 x 2 kernel
kernel
113:122 (1%)
127:137 (1%)
view
10 x 2 kernel
kernel
156:165 (1%)
170:179 (1%)
view
10 x 2 kernel
kernel
99:108 (1%)
127:137 (1%)
view
10 x 2 kernel
kernel
113:122 (1%)
142:151 (1%)
view
10 x 2 kernel
kernel
99:108 (1%)
113:122 (1%)
view
9 x 2 include/asm
include/asm
133:141 (1%)
151:159 (1%)
view
8 x 2 include/asm
include/asm
117:125 (4%)
175:183 (4%)
view
8 x 2 include/asm
include/asm
170:181 (1%)
397:408 (1%)
view
8 x 2 plat-axs10x
plat-axs10x
164:171 (5%)
187:194 (5%)
view
8 x 2 kernel
kernel
243:250 (2%)
265:272 (2%)
view
8 x 2 include/asm
include/asm
65:80 (1%)
126:135 (1%)
view
8 x 2 include/asm
include/asm
107:114 (1%)
155:162 (1%)
view
8 x 2 include/asm
include/asm
234:241 (1%)
416:423 (1%)
view
7 x 2 include/asm
include/asm
238:244 (1%)
594:600 (1%)
view
7 x 2 include/asm
include/asm
37:44 (23%)
53:60 (23%)
view
7 x 2 include/asm
include/asm
542:548 (1%)
590:596 (1%)
view
7 x 2 kernel
kernel
189:197 (6%)
207:215 (6%)
view
7 x 2 kernel
kernel
87:93 (4%)
120:126 (4%)
view
7 x 2 include/asm
include/asm
372:378 (1%)
460:466 (1%)
view
7 x 2 include/asm
include/asm
102:108 (7%)
165:171 (7%)
view
7 x 2 kernel
kernel
146:155 (3%)
286:295 (2%)
view
7 x 2 include/asm
include/asm
368:374 (1%)
542:548 (1%)
view
7 x 2 include/asm
include/asm
206:216 (6%)
280:290 (6%)
view
7 x 2 include/asm
include/asm
460:466 (1%)
594:600 (1%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
13 x 2 include/asm
include/asm
31:45 
47:61 
view