bottlerocket-os / bottlerocket-update-operator
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
  • 19% duplication:
    • 2,307 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 457 duplicated lines
  • 25 duplicates
system19% (457 lines)
Duplication per Extension
yaml74% (445 lines)
go<1% (12 lines)
Duplication per Component (primary)
ROOT72% (240 lines)
dev62% (205 lines)
pkg/agent1% (6 lines)
pkg/controller1% (6 lines)
pkg/bottlerocket0% (0 lines)
pkg/workgroup0% (0 lines)
pkg/nodestream0% (0 lines)
pkg/sigcontext0% (0 lines)
pkg/platform0% (0 lines)
pkg/intent0% (0 lines)
pkg/marker0% (0 lines)
pkg/logging0% (0 lines)
pkg/k8sutil0% (0 lines)
pkg/internal0% (0 lines)

Duplication Between Components (50+ lines)

G dev dev ROOT ROOT dev--ROOT 424

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 25 duplicates...
Size#FoldersFilesLinesCode
118 x 2 dev
ROOT
deployment.yaml
update-operator.yaml
1:120 (60%)
1:120 (43%)
view
28 x 2 dev
ROOT
deployment.yaml
update-operator.yaml
171:200 (14%)
246:275 (10%)
view
21 x 2 ROOT
ROOT
update-operator.yaml
update-operator.yaml
139:159 (7%)
211:231 (7%)
view
18 x 2 dev
ROOT
deployment.yaml
update-operator.yaml
138:155 (9%)
139:156 (6%)
view
18 x 2 dev
ROOT
deployment.yaml
update-operator.yaml
138:155 (9%)
211:228 (6%)
view
16 x 2 dev
dev
deployment.yaml
deployment.yaml
92:107 (8%)
151:166 (8%)
view
16 x 2 dev
ROOT
deployment.yaml
update-operator.yaml
151:166 (8%)
92:107 (5%)
view
15 x 2 dev
ROOT
deployment.yaml
update-operator.yaml
122:136 (7%)
122:137 (5%)
view
14 x 2 ROOT
ROOT
update-operator.yaml
update-operator.yaml
161:174 (5%)
233:246 (5%)
view
12 x 2 dev
ROOT
deployment.yaml
update-operator.yaml
158:169 (6%)
161:172 (4%)
view
12 x 2 dev
ROOT
deployment.yaml
update-operator.yaml
158:169 (6%)
233:244 (4%)
view
10 x 2 ROOT
ROOT
update-operator.yaml
update-operator.yaml
175:184 (3%)
249:258 (3%)
view
10 x 2 dev
ROOT
deployment.yaml
update-operator.yaml
174:183 (5%)
175:184 (3%)
view
9 x 2 ROOT
ROOT
update-operator.yaml
update-operator.yaml
99:107 (3%)
161:169 (3%)
view
9 x 2 ROOT
ROOT
update-operator.yaml
update-operator.yaml
99:107 (3%)
233:241 (3%)
view
9 x 2 dev
ROOT
deployment.yaml
update-operator.yaml
99:107 (4%)
233:241 (3%)
view
9 x 2 dev
ROOT
deployment.yaml
update-operator.yaml
99:107 (4%)
161:169 (3%)
view
8 x 2 dev
ROOT
deployment.yaml
update-operator.yaml
176:183 (4%)
125:132 (2%)
view
8 x 2 dev
dev
deployment.yaml
deployment.yaml
125:132 (4%)
176:183 (4%)
view
8 x 2 dev
ROOT
deployment.yaml
update-operator.yaml
125:132 (4%)
177:184 (2%)
view