awslabs / iot-channel-using-amazon-pinpoint
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
  • 14% duplication:
    • 541 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 81 duplicated lines
  • 12 duplicates
system14% (81 lines)
Duplication per Extension
js16% (81 lines)
Duplication per Component (primary)
custom-resource26% (51 lines)
custom-resource/lib10% (30 lines)
pinpoint-iot-campaign-hook0% (0 lines)
Longest Duplicates
The list of 12 longest duplicates.
See data for all 12 duplicates...
Size#FoldersFilesLinesCode
15 x 2 source/custom-resource/lib
source/custom-resource/lib
kinesis-helper.js
kinesis-helper.js
41:59 (19%)
97:115 (19%)
view
9 x 2 source/custom-resource
source/custom-resource
index.js
index.js
54:65 (4%)
86:97 (4%)
view
8 x 2 source/custom-resource
source/custom-resource
index.js
index.js
86:95 (4%)
104:113 (4%)
view
8 x 2 source/custom-resource
source/custom-resource
index.js
index.js
54:63 (4%)
104:113 (4%)
view
7 x 2 source/custom-resource
source/custom-resource
index.js
index.js
54:62 (3%)
162:170 (3%)
view
7 x 2 source/custom-resource
source/custom-resource
index.js
index.js
86:94 (3%)
162:170 (3%)
view
7 x 2 source/custom-resource
source/custom-resource
index.js
index.js
104:112 (3%)
162:170 (3%)
view
6 x 2 source/custom-resource
source/custom-resource
index.js
index.js
162:169 (3%)
179:186 (3%)
view
6 x 2 source/custom-resource
source/custom-resource
index.js
index.js
104:111 (3%)
179:186 (3%)
view
6 x 2 source/custom-resource
source/custom-resource
index.js
index.js
86:93 (3%)
179:186 (3%)
view
6 x 2 source/custom-resource
source/custom-resource
index.js
index.js
129:134 (3%)
198:203 (3%)
view
6 x 2 source/custom-resource
source/custom-resource
index.js
index.js
54:61 (3%)
179:186 (3%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
11 x 2 source/custom-resource
source/custom-resource
index.js
index.js
82:94 
100:112 
view