Duplication Overall
  • 8% duplication:
    • 2,017 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 172 duplicated lines
  • 12 duplicates
system8% (172 lines)
dependency graphs: 2D graph | 2D graph (with duplicates)... | 3D graph | 3D graph (with duplicates)...
Duplication per Extension
kts28% (98 lines)
kt10% (62 lines)
graphql9% (12 lines)
Duplication per Component (primary)
graphql6% (89 lines)
api18% (83 lines)
gradle0% (0 lines)
ROOT0% (0 lines)
.github0% (0 lines)

Duplication Between Components (50+ lines)

flowchart TB
    n0["api"]
    n1["graphql"]
    n0 ---|"98"| 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
api (10%)
  --> graphql (3%)
98 1 file pair details...

Longest Duplicates
The list of 12 longest duplicates.
See data for all 12 duplicates...
Size#FoldersFilesLinesCode
14 x 2 api
graphql
135:153 (8%)
184:204 (9%)
view
12 x 2 api
graphql
94:114 (7%)
102:122 (7%)
view
9 x 2 api
graphql
162:179 (5%)
213:231 (5%)
view
8 x 2 graphql/src/androidUnitT.../recipe/backend/graphql
graphql/src/androidUnitT.../recipe/backend/graphql
74:83 (8%)
103:112 (8%)
view
8 x 2 api
graphql
46:54 (4%)
47:55 (5%)
view
7 x 2 api/src/commonMain/kotli...cipe/backend/repository
api/src/commonMain/kotli...cipe/backend/repository
28:34 (19%)
54:60 (19%)
view
7 x 2 api/src/androidMain/kotl...om/gu/recipe/backend/di
api/src/iosMain/kotlin/com/gu/recipe/backend/di
1:24 (100%)
1:24 (100%)
view
6 x 2 api/src/commonMain/kotli...cipe/backend/repository
api/src/commonMain/kotli...cipe/backend/repository
28:33 (16%)
79:84 (16%)
view
6 x 2 api/src/commonMain/kotli...cipe/backend/repository
api/src/commonMain/kotli...cipe/backend/repository
54:59 (16%)
79:84 (16%)
view
6 x 2 graphql/src/commonMain/k.../backend/graphql/client
graphql/src/commonMain/k.../backend/graphql/client
19:24 (18%)
30:35 (18%)
view
6 x 2 api
graphql
35:40 (3%)
36:41 (3%)
view
6 x 2 graphql/src/commonMain/graphql
graphql/src/commonMain/graphql
34:39 (15%)
67:72 (8%)
view
Most Frequent Duplicates
The list of 1 most frequently found duplicates.
Size#FoldersFilesLinesCode
6 x 3 api/src/commonMain/kotli...cipe/backend/repository
api/src/commonMain/kotli...cipe/backend/repository
api/src/commonMain/kotli...cipe/backend/repository
28:33 (16%)
54:59 (16%)
79:84 (16%)
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...