microsoft / snmalloc
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:
    • 5,364 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 62 duplicated lines
  • 4 duplicates
system1% (62 lines)
Duplication per Extension
h1% (62 lines)
Duplication per Component (primary)
src/aal10% (26 lines)
src/ds2% (24 lines)
src/mem<1% (12 lines)
ci0% (0 lines)
src/backend0% (0 lines)
src/override0% (0 lines)
src/pal0% (0 lines)
src0% (0 lines)
Longest Duplicates
The list of 4 longest duplicates.
See data for all 4 duplicates...
Size#FoldersFilesLinesCode
13 x 2 src/aal
src/aal
aal.h
aal_cheri.h
194:207 (16%)
64:77 (37%)
view
6 x 2 src/ds
src/ds
mpmcstack.h
spmcstack.h
41:50 (13%)
31:40 (20%)
view
6 x 2 src/mem
src/mem
corealloc.h
corealloc.h
739:746 (1%)
811:818 (1%)
view
6 x 2 src/ds
src/ds
ptrwrap.h
ptrwrap.h
326:343 (3%)
488:505 (3%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
6 x 2 src/ds
src/ds
mpmcstack.h
spmcstack.h
41:48 
31:38 
view