bazelbuild / continuous-integration
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:
    • 17,043 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 3,018 duplicated lines
  • 3,726 duplicates
system17% (3,018 lines)
Duplication per Extension
tf57% (1,199 lines)
yml69% (908 lines)
py7% (400 lines)
java9% (257 lines)
tpl88% (96 lines)
tsx5% (90 lines)
go1% (30 lines)
ts13% (26 lines)
rs2% (12 lines)
Duplication per Component (primary)
buildkite23% (1,891 lines)
pipelines69% (712 lines)
dashboard8% (373 lines)
metrics1% (30 lines)
agent2% (12 lines)
buildifier0% (0 lines)
ROOT0% (0 lines)
docgen0% (0 lines)
rbe-configs0% (0 lines)
rules0% (0 lines)
pipegen0% (0 lines)
pipestats0% (0 lines)

Duplication Between Components (50+ lines)

G buildkite buildkite pipelines pipelines buildkite--pipelines 478

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 3,726 duplicates...
Size#FoldersFilesLinesCode
48 x 2 buildkite
buildkite
create_instances.py
update_instances.py
94:162 (47%)
77:145 (56%)
view
48 x 2 buildkite
buildkite
create_instance_template.py
update_instances.py
59:127 (68%)
77:145 (56%)
view
48 x 2 buildkite
buildkite
create_instance_template.py
create_instances.py
59:127 (68%)
94:162 (47%)
view
35 x 2 buildkite/terraform/bazel-testing
buildkite/terraform/bazel
tpl
pipeline.yml.tpl
pipeline.yml.tpl
1:36 (100%)
1:36 (100%)
view
34 x 2 pipelines
pipelines
bazel-release.yml
bazel-release.yml
380:415 (8%)
435:470 (8%)
view
30 x 2 buildkite/terraform/bazel-trusted
pipelines
bazel-release-arm64.yml
bazel-custom-release.yml
46:78 (19%)
49:81 (14%)
view
29 x 2 pipelines
pipelines
bazel-custom-release.yml
bazel-release.yml
67:100 (14%)
65:98 (7%)
view
29 x 2 pipelines
pipelines
bazel-custom-release.yml
bazel-release.yml
34:64 (14%)
33:63 (7%)
view
28 x 2 pipelines
pipelines
bazel-custom-release.yml
bazel-release.yml
1:28 (13%)
1:28 (7%)
view
27 x 2 buildkite/terraform/bazel-trusted
buildkite/terraform/bazel-trusted
bazel-arm64.yml
bazel-release-arm64.yml
37:65 (40%)
84:112 (17%)
view
26 x 2 buildkite/terraform/bazel-trusted
buildkite/terraform/bazel
tpl
pipeline.yml.tpl
pipeline.yml.tpl
15:40 (66%)
11:36 (74%)
view
26 x 2 buildkite/terraform/bazel-testing
buildkite/terraform/bazel-trusted
tpl
pipeline.yml.tpl
pipeline.yml.tpl
11:36 (74%)
15:40 (66%)
view
25 x 2 pipelines
pipelines
bazel-custom-release.yml
bazel-release.yml
4:28 (12%)
380:404 (6%)
view
25 x 2 pipelines
pipelines
bazel-custom-release.yml
bazel-release.yml
4:28 (12%)
435:459 (6%)
view
25 x 2 buildkite
buildkite
restart-agents.py
restart-testing-agents.py
23:50 (83%)
22:49 (83%)
view
25 x 2 pipelines
pipelines
bazel-custom-release.yml
bazel-release.yml
170:194 (12%)
250:274 (6%)
view
25 x 2 pipelines
pipelines
bazel-release.yml
bazel-release.yml
4:28 (6%)
380:404 (6%)
view
25 x 2 pipelines
pipelines
bazel-release.yml
bazel-release.yml
4:28 (6%)
435:459 (6%)
view
24 x 2 pipelines
pipelines
bazel-release.yml
publish-bazel-binaries.yml
435:458 (6%)
6:29 (82%)
view
24 x 2 pipelines
pipelines
bazel-release.yml
java_tools-binaries.yml
39:62 (6%)
6:29 (58%)
view
Duplicated Units
The list of top 4 duplicated units.
See data for all 4 unit duplicates...
Size#FoldersFilesLinesCode
44 x 3 buildkite
buildkite
buildkite
create_instance_template.py
update_instances.py
create_instances.py
0:0 
0:0 
0:0 
view
19 x 2 dashboard/server/src/mai...ard/github/notification
dashboard/server/src/mai...ard/github/notification
NotificationTask.java
NotificationTask.java
375:395 
397:417 
view
16 x 2 dashboard/client/src/data
dashboard/client/src/data
GithubIssueList.ts
GithubIssueList.ts
103:119 
121:137 
view
8 x 2 buildkite
buildkite
promote_images.py
create_images.py
0:0 
0:0 
view