Linux / Arch / Nios2
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
  • 1% duplication:
    • 4,703 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 86 duplicated lines
  • 5 duplicates
system1% (86 lines)
Duplication per Extension
c1% (40 lines)
S2% (30 lines)
h1% (16 lines)
Duplication per Component (primary)
mm4% (40 lines)
kernel<1% (24 lines)
include1% (16 lines)
boot2% (6 lines)
platform0% (0 lines)
lib0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
12 x 2 mm
mm
16:27 (10%)
74:87 (10%)
view
9 x 2 kernel
kernel
203:212 (1%)
266:275 (1%)
view
8 x 2 mm
mm
35:42 (7%)
94:103 (7%)
view
8 x 2 include/asm
include/asm
90:97 (6%)
151:158 (6%)
view
6 x 2 boot/compressed
kernel
27:32 (16%)
35:40 (11%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
6 x 2 kernel
kernel
55:61 
67:73 
view