gitlab-org / gitlab-runner
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
Learn more...
Duplication Overall
system6% (3,024 lines)
dependency graphs: 2D graph | 3D graph | 3D graph (with duplicates)...
Duplication per Extension
go6% (3,000 lines)
hcl12% (24 lines)
Duplication per Component (primary)
executors8% (934 lines)
helpers7% (871 lines)
common3% (295 lines)
commands3% (187 lines)
log22% (169 lines)
shells6% (158 lines)
network5% (108 lines)
magefiles4% (100 lines)
referees7% (91 lines)
scripts13% (42 lines)
dockerfiles12% (24 lines)
apps72% (18 lines)
ROOT58% (18 lines)
session1% (9 lines)
ci0% (0 lines)
steps0% (0 lines)

Duplication Between Components (50+ lines)

G executors executors helpers helpers executors--helpers 435 log log executors--log 192 magefiles magefiles executors--magefiles 54 referees referees executors--referees 60 helpers--log 255 helpers--magefiles 162 helpers--referees 120 network network helpers--network 114 session session helpers--session 69 common common common--executors 250 common--helpers 337 common--log 112 common--magefiles 96 log--magefiles 72 shells shells log--shells 56 scripts scripts magefiles--scripts 84 network--referees 60 commands commands commands--executors 89 commands--helpers 109

Download: SVG DOT (open online Graphviz editor)

Open 2D force graph... Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 50 longest duplicates.
See data for all 1,192 duplicates...
Size#FoldersFilesLinesCode
38 x 2 executors/docker/internal/networks
executors/docker/internal/volumes
8:73 (100%)
8:73 (100%)
view
34 x 2 magefiles/docutils
scripts/update-feature-flags-docs
10:67 (79%)
121:178 (29%)
view
34 x 2 executors/docker/internal/pull
executors/kubernetes/internal/pull
142:199 (30%)
58:115 (54%)
view
31 x 2 helpers/usage_log/logrotate
helpers/usage_log
8:64 (100%)
8:64 (100%)
view
30 x 2 helpers/process
helpers/ssh
85:131 (42%)
39:83 (69%)
view
25 x 2 executors
helpers/docker
26:67 (19%)
86:127 (2%)
view
24 x 2 executors/docker/internal/pull
executors/kubernetes/internal/pull
63:101 (21%)
21:59 (38%)
view
22 x 2 executors/parallels
executors/virtualbox
439:465 (7%)
366:392 (8%)
view
20 x 2 executors/parallels
executors/virtualbox
385:412 (7%)
327:354 (8%)
view
18 x 2 common
executors
26:53 (37%)
89:116 (22%)
view
18 x 2 helpers/runner_wrapper/api/client
helpers/usage_log/logrotate
37:64 (58%)
37:64 (58%)
view
18 x 2 helpers/runner_wrapper/api/client
helpers/usage_log
37:64 (58%)
37:64 (58%)
view
17 x 2 executors/ssh
executors/virtualbox
49:70 (26%)
331:352 (6%)
view
17 x 2 commands/helpers
commands/helpers
105:131 (10%)
121:147 (10%)
view
17 x 2 executors/parallels
executors/ssh
389:410 (6%)
49:70 (26%)
view
16 x 2 common
helpers/usage_log
418:441 (6%)
67:90 (22%)
view
16 x 2 commands/helpers
executors/docker/internal/exec
67:90 (15%)
22:45 (34%)
view
14 x 2 executors/docker/internal/volumes/parser
shells
161:180 (11%)
706:725 (1%)
view
14 x 2 log
log
76:95 (4%)
459:478 (4%)
view
14 x 2 common
helpers/docker
83:102 (17%)
243:262 (5%)
view
14 x 2 helpers/vault
helpers/vault
31:50 (12%)
89:108 (12%)
view
14 x 2 helpers/retry
helpers/retry
28:47 (29%)
28:47 (19%)
view
13 x 2 executors/docker/internal/user
executors/docker/internal/user
32:49 (11%)
146:163 (11%)
view
13 x 2 commands/helpers
common
73:90 (12%)
424:441 (5%)
view
13 x 2 common
helpers/vault
118:135 (13%)
75:92 (18%)
view
13 x 2 common
helpers/vault
28:45 (16%)
75:92 (18%)
view
13 x 2 network
network
423:435 (1%)
458:470 (1%)
view
13 x 2 common
executors/docker/internal/exec
424:441 (5%)
28:45 (28%)
view
13 x 2 executors/docker/internal/exec
executors/docker/internal/exec
126:143 (5%)
367:384 (5%)
view
13 x 2 common
common
118:135 (13%)
28:45 (16%)
view
13 x 2 commands/helpers
helpers/usage_log
73:90 (12%)
73:90 (18%)
view
13 x 2 executors/docker/internal/exec
helpers/usage_log
28:45 (28%)
73:90 (18%)
view
12 x 2 dockerfiles/runner-helper
dockerfiles/runner
1:15 (9%)
1:15 (17%)
view
12 x 2 executors/parallels
executors/virtualbox
188:207 (4%)
146:165 (4%)
view
11 x 2 executors/custom
executors/shell
392:407 (4%)
165:180 (10%)
view
10 x 2 executors/docker/internal/networks
executors/kubernetes/internal/pull
184:199 (9%)
122:137 (14%)
view
10 x 2 common
executors/kubernetes/internal/watchers
100:115 (16%)
58:73 (26%)
view
10 x 2 helpers/ssh
helpers/usage_log/logrotate
49:64 (32%)
49:64 (32%)
view
10 x 2 executors
helpers/docker
231:246 (7%)
1604:1619 (1%)
view
10 x 2 executors/docker/internal/volumes
executors/kubernetes/internal/pull
207:222 (8%)
122:137 (14%)
view
10 x 2 helpers/runner_wrapper/api/client
helpers/ssh
49:64 (32%)
49:64 (32%)
view
10 x 2 executors/docker/internal/wait
helpers/process
116:131 (15%)
63:78 (25%)
view
10 x 2 executors
helpers/vault
231:246 (7%)
225:240 (7%)
view
10 x 2 executors/docker/internal/networks
executors/docker/internal/volumes
184:199 (9%)
207:222 (8%)
view
10 x 2 apps/gitlab-runner-helper
ROOT
18:32 (40%)
42:56 (32%)
view
10 x 2 commands/helpers/archive/gziplegacy
commands/helpers/archive/ziplegacy
18:34 (76%)
24:40 (66%)
view
10 x 2 helpers/ssh
helpers/usage_log
49:64 (32%)
49:64 (32%)
view
10 x 2 commands/helpers
commands/helpers
238:250 (6%)
231:243 (6%)
view
10 x 2 executors/docker/internal/pull
executors/kubernetes/internal/pull
81:96 (21%)
122:137 (14%)
view
10 x 2 executors/docker/internal/pull
executors/docker/internal/volumes
81:96 (21%)
207:222 (8%)
view
Duplicated Units
The list of top 33 duplicated units.
See data for all 33 unit duplicates...
Size#FoldersFilesLinesCode
30 x 2 executors/virtualbox
executors/parallels
366:400 
439:473 
view
24 x 2 common
executors
25:54 
88:117 
view
22 x 2 common
helpers/docker
76:103 
236:263 
view
22 x 2 helpers/retry
helpers/retry
21:48 
21:48 
view
20 x 3 common
common
helpers/vault
111:136 
21:46 
68:93 
view
20 x 4 common
commands/helpers
executors/docker/internal/exec
helpers/usage_log
417:442 
66:91 
21:46 
66:91 
view
17 x 2 shells
executors/docker/internal/volumes/parser
705:726 
160:181 
view
17 x 2 helpers/ssh
helpers/process
39:60 
85:106 
view
15 x 3 executors/virtualbox
executors/ssh
executors/parallels
331:349 
49:67 
389:407 
view
11 x 19 common
common
common
executors/kubernetes
log
magefiles/build
helpers/runner_wrapper/api
helpers/runner_wrapper/api/server
helpers/tls/ca_chain
helpers/vault
...
281:296 
205:220 
66:81 
74:89 
127:142 
21:36 
68:83 
24:39 
71:86 
67:82 
...
view
11 x 6 common
common
common
common/buildlogger
common
magefiles/build
326:341 
79:94 
21:36 
21:36 
25:40 
123:138 
view
11 x 16 common
commands/helpers
executors/custom/command
executors
executors/kubernetes
executors/docker/internal/exec
log
magefiles/build
session/terminal
helpers/retry
...
372:387 
21:36 
21:36 
26:41 
68:83 
27:42 
24:39 
21:36 
25:40 
21:36 
...
view
11 x 2 scripts/update-feature-flags-docs
magefiles/docutils
133:148 
22:37 
view
11 x 4 commands/helpers/archive
executors/docker/internal/networks
executors/docker/internal/volumes
referees
25:40 
29:44 
166:181 
198:213 
view
11 x 3 executors/docker/internal/wait
executors/docker/internal/wait
executors/docker/internal/wait
25:40 
25:40 
74:89 
view
11 x 3 helpers/retry
helpers/retry
helpers/retry
21:36 
78:93 
66:81 
view
11 x 2 helpers/vault
helpers/vault
21:36 
67:82 
view
10 x 10 common
executors/kubernetes/internal/watchers
executors/kubernetes/internal/pull
executors/docker/internal/networks
executors/docker/internal/volumes
executors/docker/internal/pull
log
helpers
helpers/process
helpers/docker/auth
39:50 
39:50 
39:50 
39:50 
39:50 
39:50 
52:63 
39:50 
42:53 
39:50 
view
10 x 2 shells
log
440:451 
109:120 
view
10 x 2 shells
executors/docker/internal/volumes/parser
740:751 
195:206 
view
9 x 2 scripts/update-feature-flags-docs
magefiles/docutils
181:191 
70:80 
view
9 x 2 helpers/ssh
helpers/process
74:84 
122:132 
view
8 x 2 common
executors/custom
1473:1484 
34:45 
view
8 x 2 helpers/ssh
helpers/process
62:72 
110:120 
view
7 x 2 common
executors/kubernetes/internal/watchers
106:116 
64:74 
view
7 x 2 common
helpers/process
58:68 
163:173 
view
7 x 3 executors
helpers/vault
helpers/docker
237:247 
231:241 
1610:1620 
view
7 x 4 executors/kubernetes/internal/pull
executors/docker/internal/networks
executors/docker/internal/volumes
executors/docker/internal/pull
128:138 
190:200 
213:223 
87:97 
view
7 x 2 executors/kubernetes/internal/pull
executors/docker/internal/pull
106:116 
190:200 
view
7 x 2 executors/docker/internal/networks
executors/docker/internal/volumes
64:74 
64:74 
view
7 x 2 executors/docker/internal/wait
helpers/process
122:132 
69:79 
view
7 x 5 helpers/runner_wrapper/api/client
helpers/ssh
helpers/trace
helpers/usage_log
helpers/usage_log/logrotate
55:65 
55:65 
68:78 
55:65 
55:65 
view
7 x 2 helpers/vault/secret_engines
helpers/vault/auth_methods
74:84 
84:94 
view