aws-samples / alexa-voice-service-integration-for-aws-iot-freertos-porting-kit
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
  • 5% duplication:
    • 786 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 44 duplicated lines
  • 3 duplicates
system5% (44 lines)
Duplication per Extension
c5% (28 lines)
h6% (16 lines)
Duplication per Component (primary)
Storage11% (28 lines)
IoT14% (16 lines)
HTTP0% (0 lines)
Microphone0% (0 lines)
Registration0% (0 lines)
Button0% (0 lines)
Clock0% (0 lines)
Memory0% (0 lines)
Crypto0% (0 lines)
LWA0% (0 lines)
include0% (0 lines)
Common0% (0 lines)
Longest Duplicates
The list of 3 longest duplicates.
See data for all 3 duplicates...
Size#FoldersFilesLinesCode
8 x 2 ports/IoT/include/iot
ports/IoT/include/iot
aia_iot_config.h
aia_iot_config.h
350:358 (9%)
379:387 (9%)
view
7 x 2 ports/Storage/src
ports/Storage/src
aia_storage_config.c
aia_storage_config.c
298:307 (3%)
377:386 (3%)
view
7 x 2 ports/Storage/src
ports/Storage/src
aia_storage_config.c
aia_storage_config.c
205:216 (3%)
312:323 (3%)
view