flowtype / ocaml-dtoa
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
  • 6% duplication:
    • 1,430 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 92 duplicated lines
  • 7 duplicates
system6% (92 lines)
Duplication per Extension
c5% (67 lines)
mli100% (9 lines)
ml100% (9 lines)
h7% (7 lines)
Duplication per Component (primary)
src6% (92 lines)
js0% (0 lines)
Longest Duplicates
The list of 7 longest duplicates.
See data for all 7 duplicates...
Size#FoldersFilesLinesCode
10 x 2 src
src
dtoa_stubs.c
dtoa_stubs.c
190:205 (6%)
233:248 (6%)
view
10 x 2 src
src
dtoa_stubs.c
dtoa_stubs.c
133:148 (6%)
233:248 (6%)
view
10 x 2 src
src
dtoa_stubs.c
dtoa_stubs.c
133:148 (6%)
190:205 (6%)
view
9 x 2 src
src
ml
dtoa.ml
dtoa.mli
1:10 (100%)
1:10 (100%)
view
8 x 2 src
src
bignum_dtoa.c
bignum_dtoa.c
31:38 (2%)
558:565 (2%)
view
7 x 2 src
src
bignum.c
bignum.c
491:498 (1%)
506:516 (1%)
view
7 x 2 src
src
bignum_dtoa.c
bignum_dtoa.h
68:74 (2%)
58:64 (50%)
view