bottlerocket-os / bottlerocket-update-operator
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 47 files with 2,971 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 4 medium size files (1,099 lines of codeclsfd_ftr_w_mp_ins)
    • 6 small files (880 lines of code)
    • 37 very small files (992 lines of code)
0% | 0% | 36% | 29% | 33%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
go0% | 0% | 35% | 23% | 41%
yaml0% | 0% | 45% | 53% | 1%
toml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
pkg/agent0% | 0% | 86% | 0% | 13%
ROOT0% | 0% | 75% | 0% | 24%
pkg/controller0% | 0% | 56% | 0% | 43%
pkg/intent0% | 0% | 82% | 0% | 17%
pkg/platform0% | 0% | 0% | 71% | 28%
dev0% | 0% | 0% | 97% | 2%
pkg/internal0% | 0% | 0% | 74% | 25%
pkg/nodestream0% | 0% | 0% | 0% | 100%
pkg/marker0% | 0% | 0% | 0% | 100%
pkg/logging0% | 0% | 0% | 0% | 100%
pkg/k8sutil0% | 0% | 0% | 0% | 100%
pkg/sigcontext0% | 0% | 0% | 0% | 100%
pkg/workgroup0% | 0% | 0% | 0% | 100%
pkg/bottlerocket0% | 0% | 0% | 0% | 100%
Longest Files (Top 47)
File# lines# units
agent.go
in pkg/agent
356 16
update-operator.yaml
in root
269 -
manager.go
in pkg/controller
258 12
intent.go
in pkg/intent
216 25
deployment.yaml
in dev
196 -
api.go
in pkg/platform/api
177 12
intents.go
in pkg/internal/intents
142 8
updog.go
in pkg/platform/updog
125 12
dashboard.yaml
in dev
123 -
platform.go
in pkg/platform/api
117 8
policy.go
in pkg/controller
94 3
main.go
in root
81 3
manager_kubernetes.go
in pkg/controller
68 7
platform.go
in pkg/platform/updog
60 7
logrus.go
in pkg/logging
55 3
config.go
in pkg/nodestream
49 2
host.go
in pkg/platform/updog
47 3
values.go
in pkg/marker
47 -
informer.go
in pkg/nodestream
44 6
post_tracker.go
in pkg/agent
38 4
testoutput.go
in pkg/internal/testoutput
37 5
sigcontext.go
in pkg/sigcontext
35 1
controller.go
in pkg/controller
33 2
marker.go
in pkg/k8sutil
30 1
interface.go
in pkg/platform
28 1
handler.go
in pkg/nodestream
27 3
projection.go
in pkg/intent
25 1
config.go
in pkg/k8sutil
25 2
container.go
in pkg/marker
24 1
workgroup.go
in pkg/workgroup
23 3
check.go
in pkg/intent/internal/callcheck
21 1
host_constants.go
in pkg/platform/updog
18 -
progression.go
in pkg/agent
17 4
keys.go
in pkg/marker
13 -
intent.go
in pkg/internal/logfields
11 1
exec.go
in pkg/bottlerocket
9 1
clarify.toml
in root
7 -
kind-cluster.yaml
in dev
7 -
noop.go
in pkg/platform/updog
5 1
update.go
in pkg/platform/noop
5 1
debug.go
in pkg/logging
3 -
doc.go
in pkg/agent
1 -
reconcile.go
in pkg/agent
1 -
doc.go
in pkg/platform
1 -
platform.go
in pkg/platform/noop
1 -
doc.go
in pkg/marker
1 -
doc.go
in pkg/controller
1 -
Files With Most Units (Top 20)
File# lines# units
intent.go
in pkg/intent
216 25
agent.go
in pkg/agent
356 16
api.go
in pkg/platform/api
177 12
updog.go
in pkg/platform/updog
125 12
manager.go
in pkg/controller
258 12
platform.go
in pkg/platform/api
117 8
intents.go
in pkg/internal/intents
142 8
platform.go
in pkg/platform/updog
60 7
manager_kubernetes.go
in pkg/controller
68 7
informer.go
in pkg/nodestream
44 6
testoutput.go
in pkg/internal/testoutput
37 5
post_tracker.go
in pkg/agent
38 4
progression.go
in pkg/agent
17 4
workgroup.go
in pkg/workgroup
23 3
handler.go
in pkg/nodestream
27 3
host.go
in pkg/platform/updog
47 3
policy.go
in pkg/controller
94 3
logrus.go
in pkg/logging
55 3
main.go
in root
81 3
config.go
in pkg/nodestream
49 2
Files With Long Lines (Top 4)

There are 4 files with lines longer than 120 characters. In total, there are 7 long lines.

File# lines# units# long lines
platform.go
in pkg/platform/api
117 8 4
informer.go
in pkg/nodestream
44 6 1
policy.go
in pkg/controller
94 3 1
intents.go
in pkg/internal/intents
142 8 1