aws-samples / amazon-transcribe-web-ui-demo
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
  • 6% duplication:
    • 1,773 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 124 duplicated lines
  • 10 duplicates
system6% (124 lines)
Duplication per Extension
tsx9% (80 lines)
ts4% (44 lines)
Duplication per Component (primary)
transcribe-ui-frontend/frontend/src/components11% (80 lines)
transcribe-ui-backend/lambda9% (44 lines)
transcribe-ui-frontend/provisioning/lib/construct0% (0 lines)
transcribe-ui-frontend/provisioning/lib/stack0% (0 lines)
transcribe-ui-frontend/provisioning0% (0 lines)
transcribe-ui-frontend/frontend/src/repositories0% (0 lines)
transcribe-ui-frontend/frontend/src0% (0 lines)
transcribe-ui-frontend/frontend/src/mocks0% (0 lines)
transcribe-ui-frontend/frontend/public0% (0 lines)
transcribe-ui-backend/provisioning/lib/construct0% (0 lines)
transcribe-ui-backend/provisioning/lib/stack0% (0 lines)
transcribe-ui-backend/provisioning0% (0 lines)
Longest Duplicates
The list of 10 longest duplicates.
See data for all 10 duplicates...
Size#FoldersFilesLinesCode
19 x 2 transcribe-ui-frontend/frontend/src/components
transcribe-ui-frontend/frontend/src/components
VocabularyAdd.tsx
VocabularyList.tsx
125:143 (9%)
81:99 (17%)
view
10 x 2 transcribe-ui-frontend/frontend/src/components
transcribe-ui-frontend/frontend/src/components
Dictation.tsx
VocabularyList.tsx
230:239 (3%)
90:99 (9%)
view
10 x 2 transcribe-ui-frontend/frontend/src/components
transcribe-ui-frontend/frontend/src/components
Dictation.tsx
VocabularyAdd.tsx
230:239 (3%)
134:143 (5%)
view
9 x 2 transcribe-ui-backend/lambda
transcribe-ui-backend/lambda
transcribe.ts
vocabularies.ts
12:20 (10%)
9:17 (10%)
view
8 x 2 transcribe-ui-frontend/frontend/src/components
transcribe-ui-frontend/frontend/src/components
Dictation.tsx
VocabularyAdd.tsx
243:250 (2%)
147:154 (4%)
view
7 x 2 transcribe-ui-frontend/frontend/src/components
transcribe-ui-frontend/frontend/src/components
VocabularyAdd.tsx
VocabularyList.tsx
147:153 (3%)
103:109 (6%)
view
7 x 2 transcribe-ui-frontend/frontend/src/components
transcribe-ui-frontend/frontend/src/components
Dictation.tsx
Dictation.tsx
241:247 (2%)
317:323 (2%)
view
7 x 2 transcribe-ui-frontend/frontend/src/components
transcribe-ui-frontend/frontend/src/components
Dictation.tsx
VocabularyList.tsx
243:249 (2%)
103:109 (6%)
view
7 x 2 transcribe-ui-backend/lambda
transcribe-ui-backend/lambda
transcribe.ts
vocabularies.ts
108:114 (8%)
118:124 (7%)
view
6 x 2 transcribe-ui-backend/lambda
transcribe-ui-backend/lambda
transcribe.ts
vocabularies.ts
24:29 (6%)
87:92 (6%)
view