aws-samples / amazon-location-service-geotrack-vuejs
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
  • 28% duplication:
    • 4,138 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,197 duplicated lines
  • 333 duplicates
system28% (1,197 lines)
Duplication per Extension
js45% (524 lines)
vue22% (470 lines)
graphql93% (82 lines)
py29% (81 lines)
yaml8% (40 lines)
Duplication per Component (primary)
src/graphql77% (425 lines)
src/layouts61% (246 lines)
src/views16% (218 lines)
src/store19% (99 lines)
ROOT19% (81 lines)
amplify/backend18% (41 lines)
lambdas/simulation25% (40 lines)
lambdas/eventbridge32% (27 lines)
lambdas/iot36% (14 lines)
src/components1% (6 lines)
src0% (0 lines)
src/router0% (0 lines)
src/styles0% (0 lines)
public0% (0 lines)

Duplication Between Components (50+ lines)

G amplify/backend amplify/backend ROOT ROOT amplify/backend--ROOT 82 lambdas/eventbridge lambdas/eventbridge lambdas/simulation lambdas/simulation lambdas/eventbridge--lambdas/simulation 66

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 333 duplicates...
Size#FoldersFilesLinesCode
114 x 2 src/layouts
src/layouts
Default.vue
Simple.vue
182:295 (42%)
28:141 (85%)
view
33 x 2 src/graphql
src/graphql
mutations.js
subscriptions.js
217:255 (15%)
148:186 (17%)
view
33 x 2 src/graphql
src/graphql
mutations.js
subscriptions.js
217:255 (15%)
190:228 (17%)
view
33 x 2 src/graphql
src/graphql
mutations.js
subscriptions.js
127:165 (15%)
148:186 (17%)
view
33 x 2 src/graphql
src/graphql
mutations.js
mutations.js
172:210 (15%)
217:255 (15%)
view
33 x 2 src/graphql
src/graphql
subscriptions.js
subscriptions.js
148:186 (17%)
190:228 (17%)
view
33 x 2 src/graphql
src/graphql
mutations.js
mutations.js
127:165 (15%)
172:210 (15%)
view
33 x 2 src/graphql
src/graphql
mutations.js
queries.js
217:255 (15%)
87:125 (23%)
view
33 x 2 src/graphql
src/graphql
mutations.js
mutations.js
127:165 (15%)
217:255 (15%)
view
33 x 2 src/graphql
src/graphql
mutations.js
queries.js
127:165 (15%)
87:125 (23%)
view
33 x 2 src/graphql
src/graphql
mutations.js
subscriptions.js
217:255 (15%)
106:144 (17%)
view
33 x 2 src/graphql
src/graphql
mutations.js
queries.js
172:210 (15%)
87:125 (23%)
view
33 x 2 src/graphql
src/graphql
mutations.js
subscriptions.js
127:165 (15%)
106:144 (17%)
view
33 x 2 src/graphql
src/graphql
queries.js
subscriptions.js
87:125 (23%)
148:186 (17%)
view
33 x 2 src/graphql
src/graphql
queries.js
subscriptions.js
87:125 (23%)
190:228 (17%)
view
33 x 2 src/graphql
src/graphql
mutations.js
subscriptions.js
172:210 (15%)
148:186 (17%)
view
33 x 2 src/graphql
src/graphql
mutations.js
subscriptions.js
172:210 (15%)
190:228 (17%)
view
33 x 2 src/graphql
src/graphql
mutations.js
subscriptions.js
172:210 (15%)
106:144 (17%)
view
33 x 2 src/graphql
src/graphql
queries.js
subscriptions.js
87:125 (23%)
106:144 (17%)
view
33 x 2 src/graphql
src/graphql
subscriptions.js
subscriptions.js
106:144 (17%)
148:186 (17%)
view
Duplicated Units
The list of top 4 duplicated units.
See data for all 4 unit duplicates...
Size#FoldersFilesLinesCode
37 x 4 src/graphql
src/graphql
src/graphql
src/graphql
subscriptions.js
subscriptions.js
mutations.js
queries.js
105:142 
147:184 
126:163 
86:123 
view
16 x 4 src/graphql
src/graphql
src/graphql
src/graphql
subscriptions.js
subscriptions.js
mutations.js
queries.js
6:22 
27:43 
9:25 
6:22 
view
12 x 4 lambdas/iot
lambdas/simulation/pushVehiclePosition
lambdas/simulation/launchDeliveryFleet
lambdas/eventbridge
index.py
index.py
index.py
index.py
0:0 
0:0 
0:0 
0:0 
view
7 x 4 src/graphql
src/graphql
src/graphql
src/graphql
subscriptions.js
subscriptions.js
mutations.js
queries.js
69:76 
81:88 
81:88 
55:62 
view