GerritCodeReview / zuul_ops
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
  • 16% duplication:
    • 1,626 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 270 duplicated lines
  • 41 duplicates
system16% (270 lines)
Duplication per Extension
yaml17% (270 lines)
Duplication per Component (primary)
k8s31% (155 lines)
k8s/zookeeper16% (87 lines)
playbooks18% (28 lines)
zuul0% (0 lines)
playbooks/library0% (0 lines)
nodepool0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 41 duplicates...
Size#FoldersFilesLinesCode
15 x 2 k8s
k8s
zuul.yaml
zuul.yaml
129:143 (4%)
175:189 (4%)
view
10 x 2 k8s/zookeeper
k8s/zookeeper
zookeeper.yaml
zookeeper.yaml
5:14 (3%)
224:233 (3%)
view
9 x 2 k8s
k8s
zuul.yaml
zuul.yaml
30:38 (2%)
191:199 (2%)
view
9 x 2 k8s/zookeeper
k8s/zookeeper
zookeeper.yaml
zookeeper.yaml
25:33 (2%)
224:232 (2%)
view
9 x 2 k8s/zookeeper
k8s/zookeeper
zookeeper.yaml
zookeeper.yaml
5:13 (2%)
25:33 (2%)
view
9 x 2 k8s/zookeeper
k8s/zookeeper
values.yaml
values.yaml
196:204 (5%)
239:247 (5%)
view
8 x 2 k8s/zookeeper
k8s/zookeeper
zookeeper.yaml
zookeeper.yaml
5:12 (2%)
202:209 (2%)
view
8 x 2 k8s/zookeeper
k8s/zookeeper
values.yaml
values.yaml
187:194 (4%)
230:237 (4%)
view
8 x 2 k8s
k8s
zuul.yaml
zuul.yaml
185:192 (2%)
252:259 (2%)
view
8 x 2 k8s/zookeeper
k8s/zookeeper
values.yaml
values.yaml
184:191 (4%)
193:200 (4%)
view
8 x 2 k8s/zookeeper
k8s/zookeeper
zookeeper.yaml
zookeeper.yaml
202:209 (2%)
224:231 (2%)
view
8 x 2 k8s/zookeeper
k8s/zookeeper
values.yaml
values.yaml
227:234 (4%)
236:243 (4%)
view
8 x 2 k8s
k8s
zuul.yaml
zuul.yaml
77:84 (2%)
145:152 (2%)
view
8 x 2 k8s/zookeeper
k8s/zookeeper
zookeeper.yaml
zookeeper.yaml
25:32 (2%)
202:209 (2%)
view
7 x 2 k8s/zookeeper
k8s/zookeeper
zookeeper.yaml
zookeeper.yaml
173:179 (2%)
204:210 (2%)
view
7 x 2 playbooks
playbooks
deploy.yaml
deploy.yaml
43:49 (5%)
98:104 (5%)
view
7 x 2 k8s
k8s
zuul.yaml
zuul.yaml
132:138 (2%)
296:302 (2%)
view
7 x 2 playbooks
playbooks
deploy.yaml
deploy.yaml
79:85 (5%)
98:104 (5%)
view
7 x 2 playbooks
playbooks
deploy.yaml
deploy.yaml
60:66 (5%)
79:85 (5%)
view
7 x 2 k8s
k8s
zuul.yaml
zuul.yaml
178:184 (2%)
296:302 (2%)
view