aws-samples / aws-dev-hour-frontend
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
  • 36% duplication:
    • 1,524 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 550 duplicated lines
  • 104 duplicates
system36% (550 lines)
Duplication per Extension
js38% (550 lines)
Duplication per Component (primary)
src/components/auth74% (508 lines)
src/components7% (20 lines)
src/components/home32% (16 lines)
src/components/photos6% (6 lines)
src0% (0 lines)
src/lib0% (0 lines)
src/components/table0% (0 lines)
public0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 104 duplicates...
Size#FoldersFilesLinesCode
29 x 2 src/components/auth
src/components/auth
ChangePassword.js
Register.js
100:128 (27%)
120:148 (22%)
view
20 x 2 src/components/auth
src/components/auth
ChangePassword.js
Register.js
11:39 (19%)
12:40 (15%)
view
20 x 2 src/components/auth
src/components/auth
LogIn.js
ResendVerification.js
10:38 (21%)
10:38 (28%)
view
19 x 2 src/components/auth
src/components/auth
ResendVerification.js
VerifyAccount.js
41:63 (27%)
50:72 (21%)
view
18 x 2 src/components/auth
src/components/auth
LogIn.js
VerifyAccount.js
42:63 (19%)
51:72 (20%)
view
18 x 2 src/components/auth
src/components/auth
LogIn.js
Register.js
79:96 (19%)
110:127 (13%)
view
18 x 2 src/components/auth
src/components/auth
LogIn.js
ResendVerification.js
42:63 (19%)
42:63 (25%)
view
17 x 2 src/components/auth
src/components/auth
ForgotPasswordVerification.js
Register.js
86:102 (15%)
98:114 (13%)
view
17 x 2 src/components/auth
src/components/auth
ResendVerification.js
VerifyAccount.js
65:82 (24%)
75:92 (19%)
view
16 x 2 src/components/auth
src/components/auth
LogIn.js
VerifyAccount.js
16:38 (17%)
25:47 (18%)
view
16 x 2 src/components/auth
src/components/auth
ResendVerification.js
VerifyAccount.js
16:38 (22%)
25:47 (18%)
view
15 x 2 src/components/auth
src/components/auth
LogIn.js
Register.js
89:103 (16%)
135:149 (11%)
view
14 x 2 src/components/auth
src/components/auth
ChangePassword.js
LogIn.js
115:128 (13%)
89:102 (15%)
view
12 x 2 src/components/auth
src/components/auth
ForgotPassword.js
ForgotPasswordVerification.js
70:81 (16%)
89:100 (11%)
view
12 x 2 src/components/auth
src/components/auth
ChangePassword.js
Register.js
85:96 (11%)
120:131 (9%)
view
12 x 2 src/components/auth
src/components/auth
ForgotPassword.js
Register.js
70:81 (16%)
101:112 (9%)
view
12 x 2 src/components/auth
src/components/auth
ChangePassword.js
ChangePassword.js
85:96 (11%)
100:111 (11%)
view
11 x 2 src/components/auth
src/components/auth
ChangePassword.js
ForgotPasswordVerification.js
97:107 (10%)
105:115 (10%)
view
11 x 2 src/components/auth
src/components/auth
ForgotPassword.js
ForgotPasswordVerification.js
84:94 (15%)
113:123 (10%)
view
11 x 2 src/components/auth
src/components/auth
ForgotPasswordVerification.js
LogIn.js
12:25 (10%)
10:23 (12%)
view