aws-solutions / real-time-iot-device-monitoring-with-kinesis
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
  • 8% duplication:
    • 6,868 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 603 duplicated lines
  • 82 duplicates
system8% (603 lines)
Duplication per Extension
yaml28% (399 lines)
js12% (133 lines)
css1% (71 lines)
Duplication per Component (primary)
deployment28% (399 lines)
source/web_site/css1% (71 lines)
source/web_site/js10% (52 lines)
source/custom-resource26% (51 lines)
source/custom-resource/lib10% (30 lines)
source/update_ddb_from_stream0% (0 lines)
source/web_site0% (0 lines)
deployment/manifest-generator0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 82 duplicates...
Size#FoldersFilesLinesCode
22 x 2 deployment
deployment
real-time-iot-device-monitoring-with-...
real-time-iot-device-monitoring-with-...
202:223 (1%)
1364:1385 (1%)
view
22 x 2 deployment
deployment
real-time-iot-device-monitoring-with-...
real-time-iot-device-monitoring-with-...
607:628 (1%)
1364:1385 (1%)
view
22 x 2 deployment
deployment
real-time-iot-device-monitoring-with-...
real-time-iot-device-monitoring-with-...
607:628 (1%)
749:770 (1%)
view
22 x 2 deployment
deployment
real-time-iot-device-monitoring-with-...
real-time-iot-device-monitoring-with-...
749:770 (1%)
1364:1385 (1%)
view
22 x 2 deployment
deployment
real-time-iot-device-monitoring-with-...
real-time-iot-device-monitoring-with-...
202:223 (1%)
607:628 (1%)
view
22 x 2 deployment
deployment
real-time-iot-device-monitoring-with-...
real-time-iot-device-monitoring-with-...
202:223 (1%)
749:770 (1%)
view
20 x 2 deployment
deployment
real-time-iot-device-monitoring-with-...
real-time-iot-device-monitoring-with-...
749:768 (1%)
848:867 (1%)
view
20 x 2 deployment
deployment
real-time-iot-device-monitoring-with-...
real-time-iot-device-monitoring-with-...
848:867 (1%)
1364:1383 (1%)
view
20 x 2 deployment
deployment
real-time-iot-device-monitoring-with-...
real-time-iot-device-monitoring-with-...
202:221 (1%)
848:867 (1%)
view
20 x 2 deployment
deployment
real-time-iot-device-monitoring-with-...
real-time-iot-device-monitoring-with-...
607:626 (1%)
848:867 (1%)
view
18 x 2 source/web_site/js
source/web_site/js
dash.js
dash.js
541:564 (3%)
634:656 (3%)
view
15 x 2 source/custom-resource/lib
source/custom-resource/lib
kinesis-helper.js
kinesis-helper.js
41:59 (19%)
97:115 (19%)
view
14 x 2 deployment
deployment
real-time-iot-device-monitoring-with-...
real-time-iot-device-monitoring-with-...
141:154 (1%)
688:701 (1%)
view
13 x 2 deployment
deployment
real-time-iot-device-monitoring-with-...
real-time-iot-device-monitoring-with-...
1171:1183 (<1%)
1223:1235 (<1%)
view
12 x 2 deployment
deployment
real-time-iot-device-monitoring-with-...
real-time-iot-device-monitoring-with-...
690:701 (<1%)
984:995 (<1%)
view
12 x 2 deployment
deployment
real-time-iot-device-monitoring-with-...
real-time-iot-device-monitoring-with-...
688:699 (<1%)
1066:1077 (<1%)
view
12 x 2 deployment
deployment
real-time-iot-device-monitoring-with-...
real-time-iot-device-monitoring-with-...
141:152 (<1%)
1066:1077 (<1%)
view
12 x 2 deployment
deployment
real-time-iot-device-monitoring-with-...
real-time-iot-device-monitoring-with-...
792:803 (<1%)
1287:1298 (<1%)
view
12 x 2 deployment
deployment
real-time-iot-device-monitoring-with-...
real-time-iot-device-monitoring-with-...
143:154 (<1%)
984:995 (<1%)
view
11 x 2 source/web_site/css
source/web_site/css
custom.css
custom.css
3903:3913 (<1%)
4000:4010 (<1%)
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
81:93 
99:111 
view