Duplication Overall
  • 27% duplication:
    • 381 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 103 duplicated lines
  • 18 duplicates
system27% (103 lines)
dependency graphs: 2D graph | 2D graph (with duplicates)... | 3D graph | 3D graph (with duplicates)...
Duplication per Extension
html60% (59 lines)
ts17% (44 lines)
Duplication per Component (primary)
with-zod50% (27 lines)
with-valibot42% (26 lines)
with-superstruct42% (21 lines)
with-io-ts12% (10 lines)
with-as32% (10 lines)
ROOT8% (9 lines)

Duplication Between Components (50+ lines)

flowchart TB
    n0["with-valibot"]
    n1["with-zod"]
    n0 ---|"52"| n1
    classDef default fill:#00b2ee,stroke:#ffffff,color:#000000;
    classDef highlighted fill:#00b2ee,stroke:#ffffff,color:#000000;
    linkStyle 0 stroke:#DC143CFF,stroke-width:10px



2D force graph | 3D force graph

Show more details on duplication between components...
From Component
 --> To Component
Duplicated
Lines
File Pairs Details
with-valibot (42%)
  --> with-zod (49%)
52 2 file pairs details...

Longest Duplicates
The list of 18 longest duplicates.
See data for all 18 duplicates...
Size#FoldersFilesLinesCode
16 x 2 with-valibot
with-zod
25:41 (34%)
24:40 (42%)
view
11 x 2 with-superstruct
with-zod
23:35 (32%)
30:45 (28%)
view
10 x 2 with-io-ts
with-superstruct
1:12 (66%)
1:14 (66%)
view
10 x 2 with-as
with-valibot
1:12 (66%)
1:12 (66%)
view
10 x 2 with-as
with-io-ts
1:12 (66%)
1:12 (66%)
view
10 x 2 with-superstruct
with-valibot
1:14 (66%)
1:12 (66%)
view
10 x 2 with-superstruct
with-valibot
23:33 (29%)
31:41 (21%)
view
10 x 2 with-io-ts
with-valibot
1:12 (66%)
1:12 (66%)
view
10 x 2 with-as
with-superstruct
1:12 (66%)
1:14 (66%)
view
10 x 2 with-io-ts
with-zod
1:12 (66%)
1:12 (66%)
view
10 x 2 with-superstruct
with-zod
1:14 (66%)
1:12 (66%)
view
10 x 2 with-as
with-zod
1:12 (66%)
1:12 (66%)
view
10 x 2 with-valibot
with-zod
1:12 (66%)
1:12 (66%)
view
9 x 2 ROOT
with-io-ts
1:11 (40%)
1:11 (60%)
view
9 x 2 ROOT
with-superstruct
1:11 (40%)
1:13 (60%)
view
9 x 2 ROOT
with-as
1:11 (40%)
1:11 (60%)
view
9 x 2 ROOT
with-valibot
1:11 (40%)
1:11 (60%)
view
9 x 2 ROOT
with-zod
1:11 (40%)
1:11 (60%)
view
Most Frequent Duplicates
The list of 10 most frequently found duplicates.
Size#FoldersFilesLinesCode
6 x 6 with-io-ts
with-superstruct
with-as
with-valibot
with-zod
ROOT
2:7 (40%)
2:8 (40%)
2:7 (40%)
2:7 (40%)
2:7 (40%)
2:7 (27%)
view
6 x 6 with-io-ts
with-superstruct
with-as
with-valibot
with-zod
ROOT
3:9 (40%)
4:10 (40%)
3:9 (40%)
3:9 (40%)
3:9 (40%)
3:9 (27%)
view
6 x 6 with-io-ts
with-superstruct
with-as
with-valibot
with-zod
ROOT
1:6 (40%)
1:7 (40%)
1:6 (40%)
1:6 (40%)
1:6 (40%)
1:6 (27%)
view
6 x 6 with-io-ts
with-superstruct
with-as
with-valibot
with-zod
ROOT
4:11 (40%)
5:13 (40%)
4:11 (40%)
4:11 (40%)
4:11 (40%)
4:11 (27%)
view
6 x 5 with-io-ts
with-superstruct
with-as
with-valibot
with-zod
5:12 (40%)
6:14 (40%)
5:12 (40%)
5:12 (40%)
5:12 (40%)
view
6 x 3 with-valibot
with-zod
with-superstruct
35:41 (13%)
34:40 (15%)
27:33 (17%)
view
6 x 3 with-valibot
with-zod
with-superstruct
32:38 (13%)
31:37 (15%)
24:30 (17%)
view
6 x 3 with-valibot
with-zod
with-superstruct
33:39 (13%)
32:38 (15%)
25:31 (17%)
view
6 x 3 with-valibot
with-zod
with-superstruct
31:37 (13%)
30:36 (15%)
23:29 (17%)
view
6 x 3 with-valibot
with-zod
with-superstruct
34:40 (13%)
33:39 (15%)
26:32 (17%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
7 x 2 with-valibot
with-zod
29:38 
28:37 
view
6 x 2 with-valibot
with-zod
30:38 
29:37 
view
About This Analysis
  • 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...