angular / protractor
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:
    • 10,893 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,405 duplicated lines
  • 188 duplicates
system12% (1,405 lines)
Duplication per Extension
js17% (1,113 lines)
ts6% (224 lines)
html6% (48 lines)
css17% (20 lines)
Duplication per Component (primary)
spec22% (756 lines)
testapp21% (337 lines)
website8% (143 lines)
lib3% (135 lines)
scripts5% (16 lines)
debugging8% (12 lines)
stress8% (6 lines)
ROOT0% (0 lines)
example0% (0 lines)
exampleTypescript0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 188 duplicates...
Size#FoldersFilesLinesCode
26 x 2 lib
lib
clientsidescripts.js
clientsidescripts.js
384:417 (5%)
484:517 (5%)
view
20 x 2 spec/install
spec/install
javascript_spec.js
typescript_spec.ts
15:35 (52%)
17:37 (52%)
view
17 x 2 spec/install
spec/install
browserjs_spec.js
browserts_spec.ts
5:23 (85%)
8:26 (85%)
view
16 x 2 lib
lib
clientsidescripts.js
clientsidescripts.js
289:309 (3%)
389:409 (3%)
view
16 x 2 lib
lib
clientsidescripts.js
clientsidescripts.js
289:309 (3%)
489:509 (3%)
view
15 x 2 testapp/ng2
testapp/upgrade
system-config.js
systemjs.config.js
27:44 (50%)
32:49 (42%)
view
15 x 2 spec/basic
spec/ts/basic
elements_spec.js
element_spec.ts
15:37 (3%)
11:33 (10%)
view
13 x 2 spec/basic
spec/ts/basic
elements_spec.js
element_spec.ts
41:59 (2%)
69:87 (9%)
view
13 x 2 spec/errorTest
spec/errorTest
afterLaunchChangesExitCodeConf.js
singleFailureConf.js
3:20 (72%)
3:20 (86%)
view
13 x 2 spec/hybrid
spec/hybrid
async_spec.js
async_spec.js
6:20 (21%)
40:54 (21%)
view
13 x 2 spec
spec
ciFullConf.js
ciSmokeConf.js
33:51 (35%)
59:78 (23%)
view
12 x 2 testapp/ng2/app
testapp/upgrade/app
app.module.js
module.js
1:12 (34%)
1:12 (27%)
view
12 x 2 spec/basic
spec/ts/basic
elements_spec.js
element_spec.ts
172:187 (2%)
159:174 (8%)
view
12 x 2 spec/errorTest
spec/errorTest
browserStackAuthentication.js
sauceLabsAuthentication.js
6:24 (75%)
6:24 (75%)
view
12 x 2 spec/plugins
spec/plugins
browserGetSyncedConf.js
browserGetUnsyncedConf.js
1:21 (30%)
1:21 (35%)
view
11 x 2 testapp/ng2/app
testapp/ng2/app/async
app.module.js
async.component.js
1:11 (31%)
1:11 (11%)
view
11 x 2 spec/basic
spec/ts/basic
elements_spec.js
element_spec.ts
141:156 (2%)
126:141 (8%)
view
11 x 2 testapp/ng1
testapp/ng1
alt_root_index.html
index.html
33:43 (33%)
30:40 (32%)
view
11 x 2 testapp/ng2/app
testapp/ng2/app/home
app.component.js
home.component.js
1:11 (47%)
1:11 (50%)
view
11 x 2 testapp/ng2/app
testapp/upgrade/app
app.component.js
module.js
1:11 (47%)
1:11 (25%)
view
Duplicated Units
The list of top 8 duplicated units.
See data for all 8 unit duplicates...
Size#FoldersFilesLinesCode
37 x 2 website/docgen/spec
website/docgen/spec
add-links-spec.js
add-links-spec.js
126:168 
210:252 
view
7 x 2 website/docgen/spec
website/docgen/spec
transfer-see-spec.js
transfer-see-spec.js
15:22 
24:31 
view
7 x 2 spec/plugins
spec/plugins
browserGetSyncedConf.js
browserGetUnsyncedConf.js
22:29 
25:32 
view
6 x 2 testapp/upgrade/app
testapp/upgrade/app
myApp.js
myApp.ts
11:17 
12:18 
view
6 x 2 testapp/upgrade/app
testapp/upgrade/app
ng1.js
ng1.ts
25:31 
12:18 
view
8 x 2 testapp/upgrade/app
testapp/upgrade/app/downgrade
ng2.js
ng2.js
13:21 
8:16 
view
7 x 3 testapp/upgrade/app
testapp/upgrade/app
testapp/upgrade/app/downgrade
myApp.js
ng1.js
ng1.js
2:9 
16:23 
3:10 
view
7 x 3 testapp/upgrade/app
testapp/upgrade/app
testapp/upgrade/app/downgrade
ng1.ts
myApp.ts
ng1.ts
1:9 
1:9 
3:11 
view