Linux / Arch / H8300
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:
    • 2,678 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 202 duplicated lines
  • 11 duplicates
system7% (202 lines)
Duplication per Extension
S17% (184 lines)
c1% (18 lines)
Duplication per Component (primary)
lib28% (138 lines)
kernel4% (64 lines)
boot0% (0 lines)
include0% (0 lines)
mm0% (0 lines)
Longest Duplicates
The list of 11 longest duplicates.
See data for all 11 duplicates...
Size#FoldersFilesLinesCode
35 x 2 lib
lib
26:73 (62%)
26:73 (62%)
view
18 x 2 kernel
kernel
40:59 (32%)
80:98 (16%)
view
13 x 2 lib
lib
1:15 (23%)
1:15 (23%)
view
8 x 2 lib
lib
4:12 (44%)
4:12 (9%)
view
8 x 2 lib
lib
4:12 (9%)
4:12 (12%)
view
8 x 2 kernel
kernel
18:26 (2%)
5:13 (14%)
view
8 x 2 lib
lib
4:12 (44%)
4:12 (12%)
view
6 x 2 lib
lib
6:13 (42%)
6:13 (42%)
view
6 x 2 lib
lib
7:14 (40%)
6:13 (42%)
view
6 x 2 kernel
kernel
28:33 (10%)
39:44 (5%)
view
6 x 2 lib
lib
7:14 (40%)
6:13 (42%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
6 x 2 include/asm
include/asm
47:53 
55:61 
view
6 x 2 kernel
kernel
70:76 
78:84 
view