aws-samples / amazon-chime-sdk-aws-appsync-sample
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
  • 3% duplication:
    • 963 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 30 duplicated lines
  • 4 duplicates
system3% (30 lines)
Duplication per Extension
ts5% (30 lines)
Duplication per Component (primary)
Infra/lib/stack6% (18 lines)
Website/src/api20% (12 lines)
Website0% (0 lines)
Website/src/containers0% (0 lines)
Website/src0% (0 lines)
Website/src/components0% (0 lines)
Website/public0% (0 lines)
Infra/lib0% (0 lines)
Infra/lib/graphql0% (0 lines)
Infra/lib/custom-resources0% (0 lines)
Infra/lib/utils0% (0 lines)
Infra/lib/constructs0% (0 lines)
Lambdas/Common/src0% (0 lines)
Lambdas/ChimeCallService/src0% (0 lines)
Longest Duplicates
The list of 4 longest duplicates.
See data for all 4 duplicates...
Size#FoldersFilesLinesCode
6 x 2 Infra/lib/stack
Infra/lib/stack
CognitoAuthStack.ts
CognitoAuthStack.ts
97:104 (6%)
115:121 (6%)
view
6 x 2 Infra/lib/stack
Infra/lib/stack
CognitoAuthStack.ts
CognitoAuthStack.ts
106:113 (6%)
115:121 (6%)
view
6 x 2 Website/src/api
Website/src/api
api.ts
api.ts
19:24 (12%)
52:57 (12%)
view
6 x 2 Infra/lib/stack
Infra/lib/stack
CognitoAuthStack.ts
CognitoAuthStack.ts
97:104 (6%)
106:113 (6%)
view