angular / universal
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
  • 20% duplication:
    • 3,349 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 679 duplicated lines
  • 71 duplicates
system20% (679 lines)
Duplication per Extension
ts20% (613 lines)
html61% (40 lines)
bzl14% (26 lines)
Duplication per Component (primary)
modules/common21% (176 lines)
integration/express-engine-ivy-hybrid65% (97 lines)
integration/express-engine-ivy75% (81 lines)
integration/clover43% (67 lines)
integration/common-engine62% (67 lines)
modules/builders5% (50 lines)
integration/hapi-engine-ivy40% (48 lines)
modules/express-engine8% (44 lines)
tools12% (26 lines)
modules/socket-engine25% (16 lines)
modules/aspnetcore-engine6% (7 lines)
scripts0% (0 lines)
modules/hapi-engine0% (0 lines)

Duplication Between Components (50+ lines)

G integration/common-engine integration/common-engine integration/express-engine-ivy integration/express-engine-ivy integration/common-engine--integration/express-engine-ivy 134 integration/express-engine-ivy-hybrid integration/express-engine-ivy-hybrid integration/common-engine--integration/express-engine-ivy-hybrid 66 integration/hapi-engine-ivy integration/hapi-engine-ivy integration/common-engine--integration/hapi-engine-ivy 96 integration/express-engine-ivy--integration/hapi-engine-ivy 96 modules/builders modules/builders integration/express-engine-ivy--modules/builders 52 integration/clover integration/clover integration/clover--integration/express-engine-ivy-hybrid 114 integration/express-engine-ivy-hybrid--integration/express-engine-ivy 94 integration/express-engine-ivy-hybrid--modules/builders 52

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 71 duplicates...
Size#FoldersFilesLinesCode
26 x 2 integration/express-engine-ivy-hybrid
integration/express-engine-ivy
server.ts
server.ts
24:68 (72%)
25:69 (70%)
view
24 x 2 integration/clover/src/app
integration/express-engine-ivy-hybrid/src/app
pokemon.service.ts
pokemon.service.ts
4:32 (100%)
4:31 (100%)
view
21 x 2 modules/common/clover/server/src
modules/common/tools/src
inline-css-processor.ts
inline-css-processor.ts
35:57 (37%)
35:57 (38%)
view
18 x 2 integration/express-engine-ivy/src/app
integration/hapi-engine-ivy/src/app
app.component.ts
app.component.ts
4:23 (100%)
4:23 (100%)
view
18 x 2 integration/common-engine/src/app
integration/hapi-engine-ivy/src/app
app.component.ts
app.component.ts
4:23 (100%)
4:23 (100%)
view
18 x 2 integration/common-engine/src/app
integration/express-engine-ivy/src/app
app.component.ts
app.component.ts
4:23 (100%)
4:23 (100%)
view
15 x 2 modules/common/clover/server/src
modules/common/tools/src
inline-css-processor.ts
inline-css-processor.ts
12:33 (26%)
12:33 (27%)
view
14 x 2 integration/clover/src/app
integration/express-engine-ivy-hybrid/src/app
pokedex.component.ts
pokedex.component.ts
6:20 (100%)
6:20 (100%)
view
11 x 2 modules/common/clover/server/src
modules/common/tools/src
inline-css-processor.ts
inline-css-processor.ts
72:83 (19%)
71:82 (20%)
view
10 x 2 integration/clover/src
integration/common-engine/src
index.html
index.html
1:11 (100%)
1:11 (100%)
view
10 x 2 modules/common/schematics/ng-add
modules/express-engine/schematics/install
index.ts
index.ts
81:91 (5%)
282:291 (3%)
view
10 x 2 integration/common-engine
integration/express-engine-ivy-hybrid
server.ts
server.ts
49:65 (27%)
52:68 (27%)
view
10 x 2 integration/express-engine-ivy/src
integration/hapi-engine-ivy/src
index.html
index.html
1:11 (100%)
1:11 (100%)
view
10 x 2 integration/common-engine/src
integration/express-engine-ivy/src
index.html
index.html
1:11 (100%)
1:11 (100%)
view
10 x 2 integration/express-engine-ivy
modules/builders/testing/hello-world-app
server.ts
server.ts
44:63 (27%)
34:53 (34%)
view
10 x 2 integration/express-engine-ivy-hybrid
modules/builders/testing/hello-world-app
server.ts
server.ts
43:62 (27%)
34:53 (34%)
view
10 x 2 integration/clover/src
integration/hapi-engine-ivy/src
index.html
index.html
1:11 (100%)
1:11 (100%)
view
10 x 2 integration/common-engine
integration/express-engine-ivy
server.ts
server.ts
49:65 (27%)
53:69 (27%)
view
10 x 2 integration/clover/src
integration/express-engine-ivy/src
index.html
index.html
1:11 (100%)
1:11 (100%)
view
10 x 2 integration/common-engine/src
integration/hapi-engine-ivy/src
index.html
index.html
1:11 (100%)
1:11 (100%)
view
Duplicated Units
The list of top 5 duplicated units.
See data for all 5 unit duplicates...
Size#FoldersFilesLinesCode
24 x 2 integration/express-engine-ivy-hybrid/src/app
integration/clover/src/app
pokemon.service.ts
pokemon.service.ts
8:32 
8:33 
view
11 x 2 modules/common/tools/src
modules/common/clover/server/src
inline-css-processor.ts
inline-css-processor.ts
71:83 
72:84 
view
8 x 2 modules/common/clover/src/transfer-http-cache
modules/common/src
transfer-http-cache.interceptor.ts
transfer_http.ts
35:45 
59:69 
view
6 x 3 modules/builders/testing/hello-world-app
integration/express-engine-ivy
integration/express-engine-ivy-hybrid
server.ts
server.ts
server.ts
39:47 
49:57 
48:56 
view
6 x 2 modules/builders/src/prerender
modules/builders/src/static-generator
utils.ts
utils.ts
72:78 
55:61 
view