bazelbuild / rules_webtesting
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
  • 17% duplication:
    • 6,440 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,137 duplicated lines
  • 458 duplicates
system17% (1,137 lines)
Duplication per Extension
bzl40% (962 lines)
go4% (175 lines)
Duplication per Component (primary)
web/versioned73% (470 lines)
web/internal26% (282 lines)
web30% (210 lines)
go/wtl7% (112 lines)
go/wsl5% (33 lines)
go/webdriver2% (18 lines)
go/metadata1% (12 lines)
scalatests/com0% (0 lines)
testing/web0% (0 lines)
go/errors0% (0 lines)
go/webtest0% (0 lines)
go/portpicker0% (0 lines)
go/cmdhelper0% (0 lines)
go/healthreporter0% (0 lines)
go/bazel0% (0 lines)
go/httphelper0% (0 lines)
javatests/com0% (0 lines)
java/com0% (0 lines)

Duplication Between Components (50+ lines)

G web/internal web/internal web web web/internal--web 308 web/versioned web/versioned web/internal--web/versioned 222 web--web/versioned 148

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 458 duplicates...
Size#FoldersFilesLinesCode
62 x 2 web/versioned
web/versioned
browsers-0.3.2.bzl
browsers-0.3.3.bzl
16:83 (32%)
16:83 (24%)
view
33 x 2 web/versioned
web/versioned
browsers-0.3.1.bzl
browsers-0.3.2.bzl
2:38 (17%)
2:38 (17%)
view
22 x 2 web/versioned
web/versioned
browsers-0.3.1.bzl
browsers-0.3.2.bzl
174:197 (11%)
178:201 (11%)
view
20 x 2 web/versioned
web/versioned
browsers-0.3.1.bzl
browsers-0.3.3.bzl
16:38 (10%)
16:38 (7%)
view
17 x 2 web
web
go_repositories.bzl
repositories.bzl
22:41 (19%)
21:40 (25%)
view
17 x 2 web
web
go_repositories.bzl
py_repositories.bzl
22:41 (19%)
22:41 (27%)
view
17 x 2 web
web
py_repositories.bzl
repositories.bzl
22:41 (27%)
21:40 (25%)
view
17 x 2 web
web
go_repositories.bzl
java_repositories.bzl
22:41 (19%)
22:41 (7%)
view
17 x 2 web
web
java_repositories.bzl
py_repositories.bzl
22:41 (7%)
22:41 (27%)
view
17 x 2 web
web
java_repositories.bzl
repositories.bzl
22:41 (7%)
21:40 (25%)
view
16 x 2 web
web
java.bzl
scala.bzl
1:17 (45%)
1:17 (51%)
view
15 x 2 web
web
go_repositories.bzl
py_repositories.bzl
1:16 (16%)
1:16 (24%)
view
15 x 2 web
web
java_repositories.bzl
py_repositories.bzl
1:16 (6%)
1:16 (24%)
view
15 x 2 web
web
go_repositories.bzl
java_repositories.bzl
1:16 (16%)
1:16 (6%)
view
13 x 2 web
web
scala.bzl
web.bzl
1:13 (41%)
1:13 (9%)
view
13 x 2 web/internal
web
wrap_web_test_suite.bzl
py.bzl
1:13 (14%)
1:13 (39%)
view
13 x 2 web
web/versioned
go_repositories.bzl
browsers-0.3.1.bzl
1:13 (14%)
1:13 (6%)
view
13 x 2 web
web/versioned
py_repositories.bzl
browsers-0.3.1.bzl
1:13 (21%)
1:13 (6%)
view
13 x 2 web
web
py.bzl
repositories.bzl
1:13 (39%)
1:13 (19%)
view
13 x 2 web/internal
web
web_test_named_file.bzl
scala.bzl
1:13 (26%)
1:13 (41%)
view
Duplicated Units
The list of top 6 duplicated units.
See data for all 6 unit duplicates...
Size#FoldersFilesLinesCode
12 x 3 go/wsl/driver
go/wsl/hub
go/wsl/upload
driver.go
hub.go
upload.go
496:510 
183:197 
150:164 
view
11 x 2 go/wtl/environment
go/wtl/service
environment.go
service.go
100:111 
53:64 
view
8 x 2 go/wtl/environment
go/wtl/service
environment.go
service.go
74:82 
42:50 
view
6 x 2 go/webtest
go/webtest
webtest.go
webtest.go
91:99 
102:110 
view
6 x 2 go/wtl/diagnostics
go/wtl/diagnostics
diagnostics.go
diagnostics.go
64:70 
74:80 
view
6 x 2 go/webdriver
go/webdriver
webdriver.go
webdriver.go
700:707 
709:716 
view