aws-samples / amazon-cognito-example-for-external-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
  • 4% duplication:
    • 1,331 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 60 duplicated lines
  • 4 duplicates
system4% (60 lines)
Duplication per Extension
ts2% (26 lines)
yaml61% (22 lines)
tsx5% (12 lines)
Duplication per Component (primary)
lambda/api/src6% (19 lines)
ui-react/src/components6% (12 lines)
lambda/pretokengeneration73% (11 lines)
lambda/api91% (11 lines)
ui-react/src/model36% (7 lines)
ui-angular/src0% (0 lines)
ui-angular/src/environments0% (0 lines)
ui-angular/src/app0% (0 lines)
cdk/src0% (0 lines)
cdk0% (0 lines)
ui-react/src/service0% (0 lines)
ui-react/src/config0% (0 lines)
ui-react/src0% (0 lines)
ui-react/public0% (0 lines)
lambda/pretokengeneration/src0% (0 lines)
Longest Duplicates
The list of 4 longest duplicates.
See data for all 4 duplicates...
Size#FoldersFilesLinesCode
11 x 2 lambda/api
lambda/pretokengeneration
tslint.yaml
tslint.yaml
1:11 (91%)
1:11 (73%)
view
7 x 2 lambda/api/src/models
ui-react/src/model
pet.ts
pet.ts
4:11 (100%)
4:11 (100%)
view
6 x 2 ui-react/src/components
ui-react/src/components
App.tsx
App.tsx
269:276 (3%)
290:297 (3%)
view
6 x 2 lambda/api/src
lambda/api/src
app.ts
app.ts
81:90 (5%)
168:176 (5%)
view