alibaba / sentinel-golang
Duplication

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

Intro
Learn more...
Duplication Overall
system16% (1,691 lines)
dependency graphs: 2D graph | 3D graph | 3D graph (with duplicates)...
Duplication per Extension
go14% (1,461 lines)
yaml48% (230 lines)
Duplication per Component (primary)
core13% (719 lines)
pkg21% (635 lines)
example35% (277 lines)
ext10% (46 lines)
api6% (14 lines)
logging0% (0 lines)
util0% (0 lines)
exporter0% (0 lines)
Longest Duplicates
The list of 50 longest duplicates.
See data for all 275 duplicates...
Size#FoldersFilesLinesCode
23 x 2 example/outlier/hello_kratos/client
example/outlier/hello_micro/client
56:81 (41%)
43:68 (44%)
view
17 x 2 example/circuitbreaker/error_ratio
example/circuitbreaker/slow_rt_ratio
31:61 (34%)
31:61 (34%)
view
17 x 2 example/circuitbreaker/error_count
example/circuitbreaker/slow_rt_ratio
75:98 (34%)
76:99 (34%)
view
16 x 2 core/hotspot
core/hotspot
228:251 (6%)
323:346 (6%)
view
14 x 2 pkg/datasource/k8s/config/crd/bases
pkg/datasource/k8s/config/crd/bases
20:33 (13%)
20:33 (11%)
view
14 x 2 pkg/datasource/k8s/config/crd/bases
pkg/datasource/k8s/config/crd/bases
20:33 (11%)
20:33 (17%)
view
14 x 2 pkg/datasource/k8s/config/crd/bases
pkg/datasource/k8s/config/crd/bases
20:33 (14%)
20:33 (11%)
view
14 x 2 pkg/datasource/k8s/config/crd/bases
pkg/datasource/k8s/config/crd/bases
20:33 (14%)
20:33 (17%)
view
14 x 2 pkg/datasource/k8s/config/crd/bases
pkg/datasource/k8s/config/crd/bases
20:33 (13%)
20:33 (17%)
view
14 x 2 core/circuitbreaker
core/outlier
23:50 (73%)
24:51 (50%)
view
14 x 2 pkg/datasource/k8s/config/crd/bases
pkg/datasource/k8s/config/crd/bases
20:33 (19%)
20:33 (17%)
view
14 x 2 pkg/datasource/k8s/config/crd/bases
pkg/datasource/k8s/config/crd/bases
20:33 (14%)
20:33 (19%)
view
14 x 2 pkg/datasource/k8s/config/crd/bases
pkg/datasource/k8s/config/crd/bases
20:33 (14%)
20:33 (13%)
view
14 x 2 pkg/datasource/k8s/config/crd/bases
pkg/datasource/k8s/config/crd/bases
20:33 (13%)
20:33 (19%)
view
14 x 2 pkg/datasource/k8s/config/crd/bases
pkg/datasource/k8s/config/crd/bases
20:33 (11%)
20:33 (19%)
view
13 x 2 pkg/datasource/k8s/controllers
pkg/datasource/k8s/controllers
54:69 (10%)
49:64 (14%)
view
13 x 2 pkg/datasource/k8s/config/crd/bases
pkg/datasource/k8s/config/crd/bases
82:94 (13%)
69:81 (16%)
view
13 x 2 pkg/datasource/k8s/config/crd/bases
pkg/datasource/k8s/config/crd/bases
114:126 (10%)
69:81 (16%)
view
13 x 2 pkg/datasource/k8s/config/crd/bases
pkg/datasource/k8s/config/crd/bases
114:126 (10%)
59:71 (18%)
view
13 x 2 pkg/datasource/k8s/controllers
pkg/datasource/k8s/controllers
47:62 (21%)
49:64 (14%)
view
13 x 2 pkg/datasource/k8s/controllers
pkg/datasource/k8s/controllers
54:69 (15%)
47:62 (21%)
view
13 x 2 pkg/datasource/k8s/config/crd/bases
pkg/datasource/k8s/config/crd/bases
59:71 (18%)
69:81 (16%)
view
13 x 2 pkg/datasource/k8s/controllers
pkg/datasource/k8s/controllers
54:69 (10%)
47:62 (21%)
view
13 x 2 pkg/datasource/k8s/controllers
pkg/datasource/k8s/controllers
54:69 (15%)
54:69 (10%)
view
13 x 2 pkg/datasource/k8s/config/crd/bases
pkg/datasource/k8s/config/crd/bases
94:106 (12%)
69:81 (16%)
view
13 x 2 pkg/datasource/k8s/controllers
pkg/datasource/k8s/controllers
59:74 (12%)
49:64 (14%)
view
13 x 2 pkg/datasource/k8s/controllers
pkg/datasource/k8s/controllers
54:69 (15%)
49:64 (14%)
view
13 x 2 pkg/datasource/k8s/controllers
pkg/datasource/k8s/controllers
54:69 (15%)
59:74 (12%)
view
13 x 2 pkg/datasource/k8s/config/crd/bases
pkg/datasource/k8s/config/crd/bases
82:94 (13%)
114:126 (10%)
view
13 x 2 pkg/datasource/k8s/controllers
pkg/datasource/k8s/controllers
59:74 (12%)
54:69 (10%)
view
13 x 2 pkg/datasource/k8s/controllers
pkg/datasource/k8s/controllers
59:74 (12%)
47:62 (21%)
view
13 x 2 pkg/datasource/k8s/config/crd/bases
pkg/datasource/k8s/config/crd/bases
82:94 (13%)
59:71 (18%)
view
13 x 2 pkg/datasource/k8s/config/crd/bases
pkg/datasource/k8s/config/crd/bases
82:94 (13%)
94:106 (12%)
view
13 x 2 pkg/datasource/k8s/config/crd/bases
pkg/datasource/k8s/config/crd/bases
94:106 (12%)
114:126 (10%)
view
13 x 2 core/circuitbreaker
core/hotspot
227:242 (4%)
156:172 (4%)
view
13 x 2 pkg/datasource/k8s/config/crd/bases
pkg/datasource/k8s/config/crd/bases
94:106 (12%)
59:71 (18%)
view
12 x 2 example/circuitbreaker/error_count
example/circuitbreaker/error_ratio
42:61 (24%)
42:61 (24%)
view
12 x 2 pkg/adapters/kitex
pkg/adapters/kratos
29:45 (27%)
31:47 (28%)
view
12 x 2 core/flow
core/isolation
354:371 (2%)
152:169 (9%)
view
12 x 2 core/isolation
core/outlier
25:42 (33%)
24:41 (31%)
view
12 x 2 core/circuitbreaker
core/hotspot
280:296 (4%)
207:223 (4%)
view
12 x 2 core/hotspot
core/hotspot
41:54 (28%)
68:81 (28%)
view
12 x 2 example/circuitbreaker/error_count
example/circuitbreaker/slow_rt_ratio
42:61 (24%)
42:61 (24%)
view
11 x 2 core/flow
core/hotspot
293:311 (2%)
250:271 (4%)
view
11 x 2 core/circuitbreaker
core/isolation
136:149 (3%)
35:48 (8%)
view
11 x 2 pkg/adapters/micro
pkg/adapters/micro
46:56 (14%)
89:99 (14%)
view
11 x 2 core/circuitbreaker
core/circuitbreaker
499:512 (2%)
684:697 (2%)
view
11 x 2 core/flow
core/isolation
235:248 (2%)
35:48 (8%)
view
11 x 2 core/flow
core/hotspot
256:269 (2%)
210:223 (4%)
view
11 x 2 core/circuitbreaker
core/flow
136:149 (3%)
235:248 (2%)
view
Duplicated Units
The list of top 8 duplicated units.
See data for all 8 unit duplicates...
Size#FoldersFilesLinesCode
20 x 2 core/flow
core/hotspot
298:324 
256:285 
view
17 x 3 core/flow
core/isolation
core/circuitbreaker
235:254 
35:55 
136:156 
view
15 x 2 core/flow
core/hotspot
386:402 
302:318 
view
12 x 2 core/flow
core/hotspot
162:175 
287:300 
view
7 x 2 pkg/adapters/kratos
pkg/adapters/kitex
35:43 
33:41 
view
6 x 2 core/flow
core/isolation
354:361 
152:159 
view
6 x 2 core/flow
core/isolation
365:372 
163:170 
view
6 x 2 core/isolation
core/circuitbreaker
213:220 
345:352 
view