microsoft / ftl-sdk
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
  • 3% duplication:
    • 4,636 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 175 duplicated lines
  • 16 duplicates
system3% (175 lines)
Duplication per Extension
c3% (125 lines)
h5% (50 lines)
Duplication per Component (primary)
libftl2% (55 lines)
ftl_app3% (40 lines)
libftl/posix22% (34 lines)
libftl/win3224% (34 lines)
libftl/gettimeofday15% (12 lines)
ftl_app/posix0% (0 lines)
ftl_app/win320% (0 lines)
libftl/hmac0% (0 lines)

Duplication Between Components (50+ lines)

G libftl/posix libftl/posix libftl/win32 libftl/win32 libftl/posix--libftl/win32 68

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 16 longest duplicates.
See data for all 16 duplicates...
Size#FoldersFilesLinesCode
14 x 2 libftl/posix
libftl/win32
threads.h
threads.h
51:68 (53%)
43:60 (70%)
view
13 x 2 libftl
libftl
media.c
media.c
1844:1857 (1%)
1879:1892 (1%)
view
12 x 2 ftl_app
libftl/gettimeofday
gettimeofday.c
gettimeofday.c
33:55 (38%)
50:72 (18%)
view
11 x 2 libftl/posix
libftl/win32
socket.h
socket.h
7:17 (91%)
1:11 (100%)
view
10 x 2 libftl
libftl
media.c
media.c
1880:1889 (<1%)
1944:1953 (<1%)
view
10 x 2 libftl
libftl
media.c
media.c
1845:1854 (<1%)
1962:1971 (<1%)
view
10 x 2 libftl
libftl
media.c
media.c
1880:1889 (<1%)
1962:1971 (<1%)
view
10 x 2 libftl
libftl
media.c
media.c
1944:1953 (<1%)
1962:1971 (<1%)
view
10 x 2 libftl
libftl
media.c
media.c
1845:1854 (<1%)
1944:1953 (<1%)
view
9 x 2 libftl
libftl
media.c
media.c
1815:1824 (<1%)
1882:1891 (<1%)
view
9 x 2 libftl/posix
libftl/win32
socket.c
socket.c
75:89 (21%)
66:80 (20%)
view
9 x 2 libftl
libftl
media.c
media.c
1815:1824 (<1%)
1847:1856 (<1%)
view
8 x 2 libftl
libftl
media.c
media.c
1815:1822 (<1%)
1946:1953 (<1%)
view
8 x 2 libftl
libftl
media.c
media.c
1815:1822 (<1%)
1964:1971 (<1%)
view
7 x 2 ftl_app
ftl_app
file_parser.c
file_parser.c
34:44 (3%)
49:59 (3%)
view
7 x 2 ftl_app
ftl_app
file_parser.c
file_parser.c
274:285 (3%)
292:303 (3%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
12 x 2 ftl_app
libftl/gettimeofday
gettimeofday.c
gettimeofday.c
41:56 
58:73 
view