bazelbuild / rules_k8s
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
  • 27% duplication:
    • 1,733 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 474 duplicated lines
  • 179 duplicates
system27% (474 lines)
Duplication per Extension
tpl91% (256 lines)
bzl19% (218 lines)
Duplication per Component (primary)
k8s34% (392 lines)
toolchains/kubectl28% (82 lines)
ROOT0% (0 lines)
k8s/go/cmd/resolver0% (0 lines)
k8s/go/pkg/resolver0% (0 lines)
images/gcloud-bazel0% (0 lines)

Duplication Between Components (50+ lines)

G k8s k8s toolchains/kubectl toolchains/kubectl k8s--toolchains/kubectl 216

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 179 duplicates...
Size#FoldersFilesLinesCode
28 x 2 k8s
k8s
tpl
apply.sh.tpl
replace.sh.tpl
1:33 (93%)
1:33 (96%)
view
27 x 2 k8s
k8s
tpl
create.sh.tpl
describe.sh.tpl
1:31 (87%)
1:31 (87%)
view
27 x 2 k8s
k8s
tpl
create.sh.tpl
delete.sh.tpl
1:31 (87%)
1:31 (90%)
view
27 x 2 k8s
k8s
tpl
create.sh.tpl
replace.sh.tpl
1:31 (87%)
1:31 (93%)
view
27 x 2 k8s
k8s
tpl
delete.sh.tpl
replace.sh.tpl
1:31 (90%)
1:31 (93%)
view
27 x 2 k8s
k8s
tpl
delete.sh.tpl
describe.sh.tpl
1:31 (90%)
1:31 (87%)
view
27 x 2 k8s
k8s
tpl
delete.sh.tpl
diff.sh.tpl
1:31 (90%)
1:31 (90%)
view
27 x 2 k8s
k8s
tpl
describe.sh.tpl
diff.sh.tpl
1:31 (87%)
1:31 (90%)
view
27 x 2 k8s
k8s
tpl
create.sh.tpl
diff.sh.tpl
1:31 (87%)
1:31 (90%)
view
27 x 2 k8s
k8s
tpl
apply.sh.tpl
delete.sh.tpl
1:31 (90%)
1:31 (90%)
view
27 x 2 k8s
k8s
tpl
apply.sh.tpl
describe.sh.tpl
1:31 (90%)
1:31 (87%)
view
27 x 2 k8s
k8s
tpl
describe.sh.tpl
replace.sh.tpl
1:31 (87%)
1:31 (93%)
view
27 x 2 k8s
k8s
tpl
apply.sh.tpl
diff.sh.tpl
1:31 (90%)
1:31 (90%)
view
27 x 2 k8s
k8s
tpl
apply.sh.tpl
create.sh.tpl
1:31 (90%)
1:31 (87%)
view
27 x 2 k8s
k8s
tpl
diff.sh.tpl
replace.sh.tpl
1:31 (90%)
1:31 (93%)
view
26 x 2 k8s
k8s
tpl
resolve-all.sh.tpl
resolve.sh.tpl
1:29 (96%)
1:29 (96%)
view
25 x 2 k8s
k8s
tpl
apply.sh.tpl
resolve-all.sh.tpl
1:27 (83%)
1:27 (92%)
view
25 x 2 k8s
k8s
tpl
delete.sh.tpl
resolve.sh.tpl
1:27 (83%)
1:27 (92%)
view
25 x 2 k8s
k8s
tpl
replace.sh.tpl
resolve-all.sh.tpl
1:27 (86%)
1:27 (92%)
view
25 x 2 k8s
k8s
tpl
describe.sh.tpl
resolve.sh.tpl
1:27 (80%)
1:27 (92%)
view