aws-samples / aws-amplify-team-task-tracking
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
  • 69% duplication:
    • 7,910 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 5,491 duplicated lines
  • 3,404 duplicates
system69% (5,491 lines)
Duplication per Extension
ts75% (3,880 lines)
graphql81% (1,344 lines)
yml21% (143 lines)
html52% (124 lines)
Duplication per Component (primary)
src/graphql84% (2,400 lines)
src/app73% (2,303 lines)
src/app/monthlytasks87% (164 lines)
src/app/weeklytasks86% (163 lines)
src/app/goals81% (154 lines)
amplify/backend/auth22% (143 lines)
src/app/dashboard52% (136 lines)
src/app/overview10% (28 lines)
amplify/backend/api0% (0 lines)
amplify/backend/function0% (0 lines)
src0% (0 lines)
src/environments0% (0 lines)
src/app/auth0% (0 lines)
ROOT0% (0 lines)

Duplication Between Components (50+ lines)

G src/app src/app src/graphql src/graphql src/app--src/graphql 704 src/app/monthlytasks src/app/monthlytasks src/app/weeklytasks src/app/weeklytasks src/app/monthlytasks--src/app/weeklytasks 214 src/app/goals src/app/goals src/app/goals--src/app/monthlytasks 196 src/app/goals--src/app/weeklytasks 184 src/app/dashboard src/app/dashboard src/app/dashboard--src/app/monthlytasks 86 src/app/dashboard--src/app/weeklytasks 86 src/app/dashboard--src/app/goals 86 src/app/overview src/app/overview src/app/dashboard--src/app/overview 65

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 3,404 duplicates...
Size#FoldersFilesLinesCode
39 x 2 src/graphql
src/graphql
subscriptions.graphql
subscriptions.graphql
70:108 (6%)
111:149 (6%)
view
39 x 2 src/graphql
src/graphql
subscriptions.graphql
subscriptions.graphql
70:108 (6%)
152:190 (6%)
view
39 x 2 src/graphql
src/graphql
mutations.graphql
subscriptions.graphql
111:149 (6%)
152:190 (6%)
view
39 x 2 src/graphql
src/graphql
mutations.graphql
subscriptions.graphql
111:149 (6%)
111:149 (6%)
view
39 x 2 src/graphql
src/graphql
mutations.graphql
mutations.graphql
70:108 (6%)
152:190 (6%)
view
39 x 2 src/graphql
src/graphql
mutations.graphql
subscriptions.graphql
152:190 (6%)
111:149 (6%)
view
39 x 2 src/graphql
src/graphql
mutations.graphql
subscriptions.graphql
152:190 (6%)
152:190 (6%)
view
39 x 2 src/graphql
src/graphql
mutations.graphql
mutations.graphql
70:108 (6%)
111:149 (6%)
view
39 x 2 src/graphql
src/graphql
mutations.graphql
queries.graphql
70:108 (6%)
49:87 (10%)
view
39 x 2 src/graphql
src/graphql
mutations.graphql
queries.graphql
152:190 (6%)
49:87 (10%)
view
39 x 2 src/graphql
src/graphql
mutations.graphql
subscriptions.graphql
70:108 (6%)
111:149 (6%)
view
39 x 2 src/graphql
src/graphql
mutations.graphql
subscriptions.graphql
70:108 (6%)
70:108 (6%)
view
39 x 2 src/graphql
src/graphql
mutations.graphql
subscriptions.graphql
111:149 (6%)
70:108 (6%)
view
39 x 2 src/graphql
src/graphql
queries.graphql
subscriptions.graphql
49:87 (10%)
70:108 (6%)
view
39 x 2 src/graphql
src/graphql
mutations.graphql
subscriptions.graphql
70:108 (6%)
152:190 (6%)
view
39 x 2 src/graphql
src/graphql
mutations.graphql
subscriptions.graphql
152:190 (6%)
70:108 (6%)
view
39 x 2 src/graphql
src/graphql
queries.graphql
subscriptions.graphql
49:87 (10%)
111:149 (6%)
view
39 x 2 src/graphql
src/graphql
subscriptions.graphql
subscriptions.graphql
111:149 (6%)
152:190 (6%)
view
39 x 2 src/graphql
src/graphql
mutations.graphql
queries.graphql
111:149 (6%)
49:87 (10%)
view
39 x 2 src/graphql
src/graphql
queries.graphql
subscriptions.graphql
49:87 (10%)
152:190 (6%)
view
Duplicated Units
The list of top 16 duplicated units.
See data for all 16 unit duplicates...
Size#FoldersFilesLinesCode
38 x 2 src/graphql
src/graphql
queries.ts
mutations.ts
52:90 
74:112 
view
34 x 2 src/app
src/app
API.service.ts
API.service.ts
1898:1932 
1946:1980 
view
31 x 2 src/app
src/app
API.service.ts
API.service.ts
1641:1672 
1684:1715 
view
29 x 2 src/graphql
src/graphql
queries.ts
mutations.ts
181:210 
296:325 
view
28 x 2 src/graphql
src/graphql
queries.ts
mutations.ts
127:155 
200:228 
view
27 x 2 src/app
src/app
API.service.ts
API.service.ts
1815:1842 
1856:1883 
view
22 x 2 src/app
src/app
API.service.ts
API.service.ts
1535:1557 
1571:1593 
view
21 x 2 src/graphql
src/graphql
queries.ts
mutations.ts
297:318 
473:494 
view
19 x 2 src/graphql
src/graphql
queries.ts
mutations.ts
5:24 
5:24 
view
19 x 2 src/app
src/app
API.service.ts
API.service.ts
2726:2745 
2761:2780 
view
18 x 2 src/graphql
src/graphql
queries.ts
mutations.ts
346:364 
550:568 
view
14 x 2 src/app
src/app
API.service.ts
API.service.ts
2101:2115 
2129:2143 
view
14 x 2 src/app
src/app
API.service.ts
API.service.ts
2185:2199 
2213:2227 
view
13 x 2 src/graphql
src/graphql
queries.ts
mutations.ts
262:275 
422:435 
view
7 x 3 src/app/weeklytasks
src/app/monthlytasks
src/app/goals
weeklytasks.component.ts
monthlytasks.component.ts
goals.component.ts
170:177 
123:130 
125:132 
view
6 x 3 src/app/weeklytasks
src/app/monthlytasks
src/app/goals
weeklytasks.component.ts
monthlytasks.component.ts
goals.component.ts
230:237 
185:192 
186:193 
view