aws-samples / aws-saas-factory-postgresql-rls
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
  • 12% duplication:
    • 1,124 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 140 duplicated lines
  • 19 duplicates
system12% (140 lines)
Duplication per Extension
jsp38% (140 lines)
Duplication per Component (primary)
webapp/WEB-INF/jsp38% (140 lines)
java/com/amazon/aws/partners/saasfactory/pgrls/service0% (0 lines)
java/com/amazon/aws/partners/saasfactory/pgrls/configuration0% (0 lines)
java/com/amazon/aws/partners/saasfactory/pgrls/repository0% (0 lines)
java/com/amazon/aws/partners/saasfactory/pgrls0% (0 lines)
java/com/amazon/aws/partners/saasfactory/pgrls/domain0% (0 lines)
java/com/amazon/aws/partners/saasfactory/pgrls/controller0% (0 lines)
Longest Duplicates
The list of 19 longest duplicates.
See data for all 19 duplicates...
Size#FoldersFilesLinesCode
10 x 2 app/src/main/webapp/WEB-INF/jsp
app/src/main/webapp/WEB-INF/jsp
admin.jsp
tenant.jsp
19:29 (19%)
20:30 (13%)
view
9 x 2 app/src/main/webapp/WEB-INF/jsp
app/src/main/webapp/WEB-INF/jsp
admin.jsp
index.jsp
1:26 (17%)
1:26 (31%)
view
9 x 2 app/src/main/webapp/WEB-INF/jsp
app/src/main/webapp/WEB-INF/jsp
admin.jsp
login.jsp
1:26 (17%)
1:26 (24%)
view
9 x 2 app/src/main/webapp/WEB-INF/jsp
app/src/main/webapp/WEB-INF/jsp
index.jsp
login.jsp
1:26 (31%)
1:26 (24%)
view
8 x 2 app/src/main/webapp/WEB-INF/jsp
app/src/main/webapp/WEB-INF/jsp
deleteTenant.jsp
deleteUser.jsp
34:41 (24%)
34:41 (24%)
view
8 x 2 app/src/main/webapp/WEB-INF/jsp
app/src/main/webapp/WEB-INF/jsp
admin.jsp
tenant.jsp
78:85 (15%)
113:120 (10%)
view
7 x 2 app/src/main/webapp/WEB-INF/jsp
app/src/main/webapp/WEB-INF/jsp
index.jsp
tenant.jsp
19:26 (24%)
20:27 (9%)
view
7 x 2 app/src/main/webapp/WEB-INF/jsp
app/src/main/webapp/WEB-INF/jsp
admin.jsp
tenant.jsp
36:42 (13%)
39:47 (9%)
view
7 x 2 app/src/main/webapp/WEB-INF/jsp
app/src/main/webapp/WEB-INF/jsp
login.jsp
tenant.jsp
19:26 (18%)
20:27 (9%)
view
6 x 2 app/src/main/webapp/WEB-INF/jsp
app/src/main/webapp/WEB-INF/jsp
deleteTenant.jsp
editTenant.jsp
1:22 (18%)
1:22 (10%)
view
6 x 2 app/src/main/webapp/WEB-INF/jsp
app/src/main/webapp/WEB-INF/jsp
editTenant.jsp
editUser.jsp
40:45 (10%)
41:46 (10%)
view
6 x 2 app/src/main/webapp/WEB-INF/jsp
app/src/main/webapp/WEB-INF/jsp
deleteTenant.jsp
editUser.jsp
36:41 (18%)
41:46 (10%)
view
6 x 2 app/src/main/webapp/WEB-INF/jsp
app/src/main/webapp/WEB-INF/jsp
deleteUser.jsp
editTenant.jsp
1:22 (18%)
1:22 (10%)
view
6 x 2 app/src/main/webapp/WEB-INF/jsp
app/src/main/webapp/WEB-INF/jsp
deleteUser.jsp
editUser.jsp
36:41 (18%)
41:46 (10%)
view
6 x 2 app/src/main/webapp/WEB-INF/jsp
app/src/main/webapp/WEB-INF/jsp
deleteTenant.jsp
editTenant.jsp
36:41 (18%)
40:45 (10%)
view
6 x 2 app/src/main/webapp/WEB-INF/jsp
app/src/main/webapp/WEB-INF/jsp
deleteUser.jsp
editUser.jsp
24:30 (18%)
25:31 (10%)
view
6 x 2 app/src/main/webapp/WEB-INF/jsp
app/src/main/webapp/WEB-INF/jsp
deleteUser.jsp
editTenant.jsp
36:41 (18%)
40:45 (10%)
view
6 x 2 app/src/main/webapp/WEB-INF/jsp
app/src/main/webapp/WEB-INF/jsp
deleteTenant.jsp
deleteUser.jsp
1:22 (18%)
1:22 (18%)
view
6 x 2 app/src/main/webapp/WEB-INF/jsp
app/src/main/webapp/WEB-INF/jsp
deleteTenant.jsp
editTenant.jsp
24:30 (18%)
24:30 (10%)
view