aws-samples / cdk-cognito-idp
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:
    • 1,293 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 96 duplicated lines
  • 4 duplicates
system7% (96 lines)
Duplication per Extension
html76% (54 lines)
ts3% (42 lines)
Duplication per Component (primary)
web26% (82 lines)
lambda2% (14 lines)
lib0% (0 lines)
ROOT0% (0 lines)
lambda/entities0% (0 lines)
scripts0% (0 lines)
Longest Duplicates
The list of 4 longest duplicates.
See data for all 4 duplicates...
Size#FoldersFilesLinesCode
27 x 2 web
web
index-direct.html
index.html
1:32 (79%)
1:32 (72%)
view
8 x 2 web
web
index-direct.ts
index.ts
44:53 (12%)
62:71 (5%)
view
7 x 2 lambda
lambda
user-delete.ts
user-get.ts
14:27 (25%)
14:27 (33%)
view
6 x 2 web
web
index-direct.ts
index.ts
18:28 (9%)
30:40 (3%)
view