tensorflow / build
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
  • 8% duplication:
    • 934 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 80 duplicated lines
  • 7 duplicates
system8% (80 lines)
Duplication per Extension
yaml12% (60 lines)
bats6% (20 lines)
Duplication per Component (primary)
tekton11% (60 lines)
tf_sig_build_dockerfiles/devel.usertools5% (20 lines)
tekton/webhook0% (0 lines)
golang_install_guide/example-program0% (0 lines)
tf_sig_build_dockerfiles0% (0 lines)
Longest Duplicates
The list of 7 longest duplicates.
See data for all 7 duplicates...
Size#FoldersFilesLinesCode
10 x 2 tf_sig_build_dockerfiles/devel.usertools
tf_sig_build_dockerfiles/devel.usertools
bats
code_check_full.bats
code_check_full.bats
207:217 (4%)
229:239 (4%)
view
8 x 2 tekton
tekton
webhook-deployment.yaml
webhook-deployment.yaml
35:42 (10%)
45:52 (10%)
view
7 x 2 tekton
tekton
role-webhook.yaml
role-webhook.yaml
13:19 (12%)
23:29 (12%)
view
6 x 2 tekton
tekton
build-pipeline.yaml
build-pipeline.yaml
29:34 (13%)
47:52 (13%)
view
6 x 2 tekton
tekton
webhook-deployment.yaml
webhook-deployment.yaml
5:11 (7%)
18:24 (7%)
view
6 x 2 tekton
tekton
webhook-deployment.yaml
webhook-deployment.yaml
5:11 (7%)
75:81 (7%)
view
6 x 2 tekton
tekton
webhook-deployment.yaml
webhook-deployment.yaml
18:24 (7%)
75:81 (7%)
view