aws-samples / amazon-connect-dynamic-ivr-menus
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
  • 26% duplication:
    • 137 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 36 duplicated lines
  • 4 duplicates
system26% (36 lines)
Duplication per Extension
py22% (18 lines)
ts34% (18 lines)
Duplication per Component (primary)
cdk-app/lib34% (18 lines)
lambda/menu-option47% (9 lines)
lambda/selectionFulfilment60% (9 lines)
cdk-app0% (0 lines)
lambda/populateDB0% (0 lines)
Longest Duplicates
The list of 4 longest duplicates.
See data for all 4 duplicates...
Size#FoldersFilesLinesCode
9 x 2 lambda/menu-option
lambda/selectionFulfilment
lambda_function.py
lambda_function.py
7:20 (47%)
5:17 (60%)
view
6 x 2 cdk-app/lib
cdk-app/lib
cdk-app-stack.ts
cdk-app-stack.ts
37:42 (11%)
47:52 (11%)
view
6 x 2 cdk-app/lib
cdk-app/lib
cdk-app-stack.ts
cdk-app-stack.ts
47:52 (11%)
57:62 (11%)
view
6 x 2 cdk-app/lib
cdk-app/lib
cdk-app-stack.ts
cdk-app-stack.ts
37:42 (11%)
57:62 (11%)
view