aws-samples / amazon-lex-v2-dialogaction
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
  • 29% duplication:
    • 461 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 136 duplicated lines
  • 11 duplicates
system29% (136 lines)
Duplication per Extension
js30% (136 lines)
Duplication per Component (primary)
lex-validate-lambda/searchHotel34% (136 lines)
lib0% (0 lines)
ROOT0% (0 lines)
lex-validate-lambda0% (0 lines)
lex-validate-lambda/i18n0% (0 lines)
Longest Duplicates
The list of 11 longest duplicates.
See data for all 11 duplicates...
Size#FoldersFilesLinesCode
16 x 2 lex-validate-lambda/searchHotel
lex-validate-lambda/searchHotel
CodeHookHandler.js
CodeHookHandler.js
239:254 (5%)
280:296 (5%)
view
9 x 2 lex-validate-lambda/searchHotel
lex-validate-lambda/searchHotel
ResponseHandler.js
ResponseHandler.js
101:110 (8%)
127:136 (8%)
view
9 x 2 lex-validate-lambda/searchHotel
lex-validate-lambda/searchHotel
CodeHookHandler.js
CodeHookHandler.js
107:116 (3%)
156:165 (3%)
view
9 x 2 lex-validate-lambda/searchHotel
lex-validate-lambda/searchHotel
ResponseHandler.js
ResponseHandler.js
81:90 (8%)
101:110 (8%)
view
9 x 2 lex-validate-lambda/searchHotel
lex-validate-lambda/searchHotel
ResponseHandler.js
ResponseHandler.js
81:90 (8%)
127:136 (8%)
view
8 x 2 lex-validate-lambda/searchHotel
lex-validate-lambda/searchHotel
ResponseHandler.js
ResponseHandler.js
48:56 (7%)
123:131 (7%)
view
8 x 2 lex-validate-lambda/searchHotel
lex-validate-lambda/searchHotel
CodeHookHandler.js
CodeHookHandler.js
117:126 (2%)
140:152 (2%)
view
7 x 2 lex-validate-lambda/searchHotel
lex-validate-lambda/searchHotel
CodeHookHandler.js
CodeHookHandler.js
248:254 (2%)
308:316 (2%)
view
7 x 2 lex-validate-lambda/searchHotel
lex-validate-lambda/searchHotel
CodeHookHandler.js
CodeHookHandler.js
290:296 (2%)
308:316 (2%)
view
6 x 2 lex-validate-lambda/searchHotel
lex-validate-lambda/searchHotel
CodeHookHandler.js
CodeHookHandler.js
79:84 (2%)
212:218 (2%)
view
6 x 2 lex-validate-lambda/searchHotel
lex-validate-lambda/searchHotel
ResponseHandler.js
ResponseHandler.js
94:99 (5%)
116:121 (5%)
view