aws / ota-for-aws-iot-embedded-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
  • 6% duplication:
    • 4,071 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 278 duplicated lines
  • 30 duplicates
system6% (278 lines)
Duplication per Extension
c7% (242 lines)
h6% (36 lines)
Duplication per Component (primary)
source7% (206 lines)
source/include6% (36 lines)
source/portable/os9% (36 lines)
ROOT0% (0 lines)
tools/cmock0% (0 lines)
tools0% (0 lines)

Duplication Between Components (50+ lines)

G source/include source/include source source source/include--source 54

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 30 duplicates...
Size#FoldersFilesLinesCode
9 x 2 source
source
ota.c
ota.c
845:857 (<1%)
1024:1036 (<1%)
view
9 x 2 source/include
source
ota_cbor_private.h
ota_cbor.c
70:78 (50%)
236:244 (6%)
view
8 x 2 source
source
ota_mqtt.c
ota_mqtt.c
417:425 (1%)
1022:1030 (1%)
view
7 x 2 source
source
ota_mqtt.c
ota_mqtt.c
357:365 (1%)
477:485 (1%)
view
6 x 2 source/portable/os
source/portable/os
ota_os_posix.c
ota_os_posix.c
304:310 (3%)
342:348 (3%)
view
6 x 2 source/include
source/include
ota_cbor_private.h
ota_interface_private.h
58:63 (33%)
79:84 (25%)
view
6 x 2 source/include
source
ota_http_private.h
ota_http.c
86:91 (50%)
122:127 (7%)
view
6 x 2 source
source
ota_mqtt.c
ota_mqtt.c
449:455 (<1%)
508:514 (<1%)
view
6 x 2 source
source
ota_mqtt.c
ota_mqtt.c
723:728 (<1%)
761:766 (<1%)
view
6 x 2 source
source
ota.c
ota.c
860:873 (<1%)
1039:1052 (<1%)
view
6 x 2 source
source
ota_base64.c
ota_base64.c
472:480 (3%)
500:508 (3%)
view
6 x 2 source/include
source/include
ota_http_private.h
ota_interface_private.h
87:92 (50%)
79:84 (25%)
view
6 x 2 source
source
ota_http.c
ota_mqtt.c
123:128 (7%)
1180:1185 (<1%)
view
6 x 2 source
source
ota_mqtt.c
ota_mqtt.c
388:394 (<1%)
1058:1064 (<1%)
view
6 x 2 source/include
source
ota_cbor_private.h
ota_cbor.c
57:62 (33%)
74:79 (4%)
view
6 x 2 source
source
ota_interface.c
ota_interface.c
89:95 (11%)
110:116 (11%)
view
6 x 2 source/portable/os
source/portable/os
ota_os_freertos.c
ota_os_posix.c
178:187 (3%)
214:223 (3%)
view
6 x 2 source
source
ota_mqtt.c
ota_mqtt.c
284:290 (<1%)
313:319 (<1%)
view
6 x 2 source
source
ota_cbor.c
ota_http.c
75:80 (4%)
123:128 (7%)
view
6 x 2 source/include
source/include
ota_interface_private.h
ota_mqtt_private.h
79:84 (25%)
99:104 (33%)
view