kubernetes / publishing-bot
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
  • 4% duplication:
    • 1,967 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 98 duplicated lines
  • 10 duplicates
system4% (98 lines)
Duplication per Extension
go3% (58 lines)
yaml16% (40 lines)
Duplication per Component (primary)
configs63% (40 lines)
cmd/publishing-bot3% (29 lines)
cmd/init-repo28% (29 lines)
cmd/collapsed-kube-commit-mapper0% (0 lines)
cmd/sync-tags0% (0 lines)
cmd/validate-rules0% (0 lines)
cmd/gomod-zip0% (0 lines)
artifacts/manifests0% (0 lines)
pkg/golang0% (0 lines)
pkg/git0% (0 lines)
ROOT0% (0 lines)

Duplication Between Components (50+ lines)

G cmd/init-repo cmd/init-repo cmd/publishing-bot cmd/publishing-bot cmd/init-repo--cmd/publishing-bot 58

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 10 longest duplicates.
See data for all 10 duplicates...
Size#FoldersFilesLinesCode
9 x 2 cmd/init-repo
cmd/publishing-bot
main.go
main.go
58:68 (8%)
63:73 (8%)
view
8 x 2 cmd/init-repo
cmd/publishing-bot
main.go
main.go
43:52 (7%)
40:51 (7%)
view
8 x 2 configs
configs
kubernetes-configmap.yaml
kubernetes-nightly-configmap.yaml
1:8 (66%)
1:8 (66%)
view
6 x 2 configs
configs
kubernetes-nightly-rules-configmap.yaml
kubernetes-rules-configmap.yaml
1:6 (100%)
1:6 (100%)
view
6 x 2 configs
configs
example-rules-configmap.yaml
kubernetes-rules-configmap.yaml
1:6 (37%)
1:6 (100%)
view
6 x 2 configs
configs
example-rules-configmap.yaml
kubernetes-nightly-rules-configmap.yaml
1:6 (37%)
1:6 (100%)
view
6 x 2 configs
configs
example-configmap.yaml
kubernetes-nightly-configmap.yaml
1:6 (54%)
1:6 (50%)
view
6 x 2 cmd/init-repo
cmd/publishing-bot
main.go
main.go
81:89 (5%)
99:108 (5%)
view
6 x 2 configs
configs
example-configmap.yaml
kubernetes-configmap.yaml
1:6 (54%)
1:6 (50%)
view
6 x 2 cmd/init-repo
cmd/publishing-bot
main.go
main.go
72:79 (5%)
81:88 (5%)
view