microsoft / pxt-ev3
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 130 files with 9,663 lines of code.
    • 0 very long files (0 lines of code)
    • 2 long files (1,457 lines of code)
    • 8 medium size files (2,291 lines of codeclsfd_ftr_w_mp_ins)
    • 23 small files (3,212 lines of code)
    • 97 very small files (2,703 lines of code)
0% | 15% | 23% | 33% | 27%
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
ts0% | 18% | 28% | 27% | 25%
cpp0% | 0% | 0% | 72% | 27%
js0% | 0% | 0% | 48% | 51%
less0% | 0% | 0% | 47% | 52%
tsx0% | 0% | 0% | 100% | 0%
swift0% | 0% | 0% | 100% | 0%
h0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
libs/core0% | 62% | 0% | 19% | 17%
sim/visuals0% | 0% | 44% | 22% | 33%
editor0% | 0% | 78% | 19% | 2%
fieldeditors0% | 0% | 50% | 23% | 26%
sim/state0% | 0% | 19% | 23% | 56%
libs/color-sensor0% | 0% | 97% | 0% | 2%
libs/music0% | 0% | 0% | 95% | 4%
sim0% | 0% | 0% | 100% | 0%
libs/infrared-sensor0% | 0% | 0% | 99% | <1%
libs/gyro-sensor0% | 0% | 0% | 99% | <1%
scripts0% | 0% | 0% | 42% | 57%
theme0% | 0% | 0% | 47% | 52%
libs/screen0% | 0% | 0% | 93% | 6%
libs/storage0% | 0% | 0% | 79% | 20%
libs/ev30% | 0% | 0% | 48% | 51%
legoresources0% | 0% | 0% | 100% | 0%
libs/ultrasonic-sensor0% | 0% | 0% | 99% | <1%
libs/touch-sensor0% | 0% | 0% | 0% | 100%
svgicons0% | 0% | 0% | 0% | 100%
sim/public0% | 0% | 0% | 0% | 100%
libs/datalog0% | 0% | 0% | 0% | 100%
libs/broadcast0% | 0% | 0% | 0% | 100%
docfiles0% | 0% | 0% | 0% | 100%
libs/blocksprj0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
input.ts
in libs/core
745 59
output.ts
in libs/core
712 45
board.ts
in sim/visuals
474 23
layoutView.ts
in sim/visuals
365 24
deploy.ts
in editor
283 19
view.ts
in sim/visuals
263 45
field_music.ts
in fieldeditors
246 16
wrap.ts
in editor
243 18
motornode.ts
in sim/state
214 20
color.ts
in libs/color-sensor
203 18
platform.cpp
in libs/core
188 12
brickView.ts
in sim/visuals/nodes
175 17
music.cpp
in libs/music
172 14
dalboard.ts
in sim
160 10
ir.ts
in libs/infrared-sensor
157 18
gyro.ts
in libs/gyro-sensor
155 5
sounds.ts
in libs/music
150 3
rgf2png.js
in scripts
147 4
style.less
in theme
140 -
buttons.ts
in libs/core
139 15
targetoverrides.ts
in libs/screen
136 15
dialogs.tsx
in editor
133 11
screen.cpp
in libs/core
133 6
moduleView.ts
in sim/visuals/nodes
133 25
uart.ts
in sim/state
130 1
storage-core.ts
in libs/storage
129 14
output.ts
in sim/state
127 1
util.ts
in sim/visuals
125 6
motorSlider.ts
in sim/visuals/controls
121 8
field_brickbuttons.ts
in fieldeditors
118 4
RobotAPI.swift
in legoresources
115 88
images.ts
in libs/ev3
115 -
ultrasonic.ts
in libs/ultrasonic-sensor
114 6
file_manager.ts
in scripts
86 4
mmap.cpp
in libs/core
85 12
ev3const.h
in libs/core
76 -
control.ts
in sim/state
75 13
colorGrid.ts
in sim/visuals/controls
68 5
sensor.ts
in sim/state
66 16
distanceSlider.ts
in sim/visuals/controls
64 8
proximitySlider.ts
in sim/visuals/controls
64 8
rotationSlider.ts
in sim/visuals/controls
64 2
infrared.ts
in sim/state
63 7
rsf2wav.js
in scripts
62 2
colorWheel.ts
in sim/visuals/controls
61 8
controlView.ts
in sim/visuals
60 7
analog.ts
in sim/state
58 1
extension.ts
in fieldeditors
55 2
serialnumber.cpp
in libs/core
54 2
mkenum.js
in scripts
53 -
Files With Most Units (Top 20)
File# lines# units
RobotAPI.swift
in legoresources
115 88
input.ts
in libs/core
745 59
output.ts
in libs/core
712 45
view.ts
in sim/visuals
263 45
moduleView.ts
in sim/visuals/nodes
133 25
layoutView.ts
in sim/visuals
365 24
board.ts
in sim/visuals
474 23
motornode.ts
in sim/state
214 20
deploy.ts
in editor
283 19
wrap.ts
in editor
243 18
color.ts
in libs/color-sensor
203 18
ir.ts
in libs/infrared-sensor
157 18
brickView.ts
in sim/visuals/nodes
175 17
field_music.ts
in fieldeditors
246 16
sensor.ts
in sim/state
66 16
buttons.ts
in libs/core
139 15
targetoverrides.ts
in libs/screen
136 15
music.cpp
in libs/music
172 14
storage-core.ts
in libs/storage
129 14
control.ts
in sim/state
75 13
Files With Long Lines (Top 20)

There are 31 files with lines longer than 120 characters. In total, there are 96 long lines.

File# lines# units# long lines
brickView.ts
in sim/visuals/nodes
175 17 13
dialogs.tsx
in editor
133 11 9
RobotAPI.swift
in legoresources
115 88 8
field_brickbuttons.ts
in fieldeditors
118 4 7
layoutView.ts
in sim/visuals
365 24 6
output.ts
in libs/core
712 45 5
distanceSlider.ts
in sim/visuals/controls
64 8 5
largeMotorView.ts
in sim/visuals/nodes
53 6 5
closeIcon.ts
in sim/visuals/controls
26 3 4
colorWheel.ts
in sim/visuals/controls
61 8 3
proximitySlider.ts
in sim/visuals/controls
64 8 3
footer.html
in docfiles
17 - 2
color.ts
in libs/color-sensor
203 18 2
uart.ts
in sim/state
130 1 2
board.ts
in sim/visuals
474 23 2
controlView.ts
in sim/visuals
60 7 2
colorGrid.ts
in sim/visuals/controls
68 5 2
rotationSlider.ts
in sim/visuals/controls
64 2 2
touchSensorView.ts
in sim/visuals/nodes
18 2 2
extension.ts
in fieldeditors
55 2 1