aws / Device-Shadow-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
  • 7% duplication:
    • 646 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 50 duplicated lines
  • 4 duplicates
system7% (50 lines)
Duplication per Extension
c7% (31 lines)
h16% (19 lines)
Duplication per Component (primary)
source7% (31 lines)
source/include16% (19 lines)
ROOT0% (0 lines)
tools/cmock0% (0 lines)
Longest Duplicates
The list of 4 longest duplicates.
See data for all 4 duplicates...
Size#FoldersFilesLinesCode
7 x 2 source/include
source
shadow.h
shadow.c
722:728 (6%)
873:879 (1%)
view
6 x 2 source/include
source
shadow.h
shadow.c
62:67 (5%)
547:552 (1%)
view
6 x 2 source/include
source
shadow.h
shadow.c
794:799 (5%)
764:769 (1%)
view
6 x 2 source
source
shadow.c
shadow.c
157:162 (1%)
303:308 (1%)
view