aws-samples / service-screener
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
  • 4% duplication:
    • 13,118 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 655 duplicated lines
  • 34 duplicates
system4% (655 lines)
Duplication per Extension
css6% (342 lines)
php5% (183 lines)
js2% (130 lines)
Duplication per Component (primary)
adminlte/html4% (472 lines)
services/ec214% (130 lines)
services/iam6% (21 lines)
services/rds4% (16 lines)
services/s34% (9 lines)
services1% (7 lines)
ROOT0% (0 lines)
templates0% (0 lines)
tools0% (0 lines)
services/dashboard0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 34 duplicates...
Size#FoldersFilesLinesCode
118 x 2 adminlte/html/plugins/fontawesome-free/css
adminlte/html/plugins/fontawesome-free/css
all.css
svg-with-js.css
19:168 (3%)
157:306 (37%)
view
26 x 2 adminlte/html/plugins/select2/js
adminlte/html/plugins/select2/js
select2.full.js
select2.full.js
6445:6472 (<1%)
6484:6511 (<1%)
view
16 x 2 adminlte/html/plugins/fontawesome-free/css
adminlte/html/plugins/fontawesome-free/css
all.css
svg-with-js.css
4569:4585 (<1%)
330:346 (5%)
view
12 x 2 services/ec2
services/ec2
ec2.class.php
ec2.class.php
97:112 (5%)
130:145 (5%)
view
11 x 2 adminlte/html/plugins/fontawesome-free/css
adminlte/html/plugins/fontawesome-free/css
all.css
solid.css
4608:4619 (<1%)
5:16 (100%)
view
10 x 2 services/ec2/drivers
services/ec2/drivers
ec2_ec2.class.php
ec2_ec2.class.php
96:107 (4%)
132:143 (4%)
view
10 x 2 adminlte/html/plugins/fontawesome-free/css
adminlte/html/plugins/fontawesome-free/css
all.css
regular.css
4597:4607 (<1%)
5:15 (100%)
view
10 x 2 adminlte/html/plugins/fontawesome-free/css
adminlte/html/plugins/fontawesome-free/css
all.css
brands.css
4586:4596 (<1%)
5:15 (100%)
view
9 x 2 services/ec2
services/iam
ec2.class.php
iam.class.php
303:316 (4%)
155:169 (7%)
view
9 x 2 services/ec2/drivers
services/ec2/drivers
ec2_elb.class.php
ec2_elbClassic.class.php
4:14 (21%)
4:14 (28%)
view
9 x 2 services/ec2/drivers
services/ec2/drivers
ec2_ec2.class.php
ec2_ec2.class.php
181:190 (4%)
221:230 (4%)
view
9 x 2 services/rds
services/s3
rds.class.php
s3.class.php
56:70 (19%)
80:94 (14%)
view
9 x 2 services/ec2
services/rds
ec2.class.php
rds.class.php
303:316 (4%)
56:70 (19%)
view
9 x 2 services/iam
services/rds
iam.class.php
rds.class.php
155:169 (7%)
56:70 (19%)
view
9 x 2 services/ec2
services/s3
ec2.class.php
s3.class.php
303:316 (4%)
80:94 (14%)
view
9 x 2 services/iam
services/s3
iam.class.php
s3.class.php
155:169 (7%)
80:94 (14%)
view
7 x 2 services
services/rds/drivers
cloudwatch.class.php
rds_common.class.php
34:41 (21%)
322:329 (3%)
view
7 x 2 adminlte/html/plugins/select2/js
adminlte/html/plugins/select2/js
select2.full.js
select2.full.js
2170:2179 (<1%)
4171:4180 (<1%)
view
7 x 2 adminlte/html/plugins/select2/js
adminlte/html/plugins/select2/js
select2.full.js
select2.full.js
1818:1826 (<1%)
4205:4213 (<1%)
view
7 x 2 services/ec2/drivers
services/ec2/drivers
ec2_ec2.class.php
ec2_ec2.class.php
265:273 (3%)
319:327 (3%)
view
Duplicated Units
The list of top 7 duplicated units.
See data for all 7 unit duplicates...
Size#FoldersFilesLinesCode
28 x 2 services/ec2/drivers
services/ec2/drivers
ec2_ec2.class.php
ec2_ec2.class.php
95:129 
131:165 
view
8 x 2 adminlte/html/plugins/select2/js
adminlte/html/plugins/select2/js
select2.full.js
select2.full.js
1817:1826 
4204:4213 
view
8 x 4 services/s3
services/rds
services/ec2
services/iam
s3.class.php
rds.class.php
ec2.class.php
iam.class.php
87:96 
63:72 
309:318 
162:171 
view
8 x 2 services
services
pageBuilder.class.php
pageBuilder.class.php
64:72 
74:82 
view
8 x 2 services/ec2/drivers
services/ec2/drivers
ec2_ebs.class.php
ec2_ebs.class.php
16:24 
49:59 
view
7 x 2 services/s3/drivers
services/s3/drivers
s3_s3.class.php
s3_s3.class.php
52:59 
61:68 
view
6 x 2 adminlte/html/plugins/select2/js
adminlte/html/plugins/select2/js
select2.full.js
select2.full.js
6096:6105 
6153:6162 
view