microsoft / pxt-arcade
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 98 files with 9,866 lines of code.
    • 0 very long files (0 lines of code)
    • 5 long files (3,049 lines of code)
    • 10 medium size files (3,119 lines of codeclsfd_ftr_w_mp_ins)
    • 12 small files (1,828 lines of code)
    • 71 very small files (1,870 lines of code)
0% | 30% | 31% | 18% | 18%
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% | 30% | 35% | 19% | 15%
tsx0% | 39% | 29% | 10% | 20%
cpp0% | 63% | 27% | 0% | 9%
html0% | 0% | 90% | 0% | 9%
css0% | 0% | 0% | 58% | 41%
js0% | 0% | 0% | 70% | 29%
less0% | 0% | 0% | 0% | 100%
cmd0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
share/src0% | 38% | 28% | 19% | 14%
libs/hw---vm0% | 99% | 0% | 0% | <1%
libs/sevenseg0% | 0% | 100% | 0% | 0%
libs/device0% | 0% | 31% | 26% | 41%
docfiles0% | 0% | 95% | 0% | 4%
libs/corgio0% | 0% | 100% | 0% | 0%
libs/hw---rpi0% | 0% | 81% | 0% | 18%
editor0% | 0% | 0% | 100% | 0%
libs/template0% | 0% | 0% | 99% | <1%
theme0% | 0% | 0% | 0% | 100%
libs/darts0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
scripts0% | 0% | 0% | 0% | 100%
libs/storage0% | 0% | 0% | 0% | 100%
libs/screen---st77350% | 0% | 0% | 0% | 100%
libs/hw---n30% | 0% | 0% | 0% | 100%
libs/screen0% | 0% | 0% | 0% | 100%
libs/screen---ext0% | 0% | 0% | 0% | 100%
libs/screen---linux0% | 0% | 0% | 0% | 100%
share/public0% | 0% | 0% | 0% | 100%
libs/game0% | 0% | 0% | 0% | 100%
libs/rotary-encoder0% | 0% | 0% | 0% | 100%
libs/servo0% | 0% | 0% | 0% | 100%
libs/hw0% | 0% | 0% | 0% | 100%
libs/hw---n40% | 0% | 0% | 0% | 100%
libs/hw---samd510% | 0% | 0% | 0% | 100%
libs/hw---stm32f4010% | 0% | 0% | 0% | 100%
libs/light0% | 0% | 0% | 0% | 100%
libs/base0% | 0% | 0% | 0% | 100%
libs/blocksprj0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
GameModder.tsx
in share/src/components
716 31
main.ts.ts
in share/src/games/bunny_hop
673 5
svgUtil.ts
in share/src/sprite-editor
601 27
spriteEditor.ts
in share/src/sprite-editor
549 42
sdlmain.cpp
in libs/hw---vm
510 15
canvasGrid.ts
in share/src/sprite-editor
467 32
buttons.ts
in share/src/sprite-editor
461 44
tools.ts
in share/src/sprite-editor
399 33
Joystick.tsx
in share/src/components
320 18
sevenseg.ts
in libs/sevenseg
296 25
sprites.builtin.ts
in libs/device
265 -
script.html
in docfiles
254 -
corgio.ts
in libs/corgio
223 5
keys.cpp
in libs/hw---rpi
219 7
ColorPicker.tsx
in share/src/components
215 5
GameButtons.tsx
in share/src/components
197 13
bitmap_helpers.ts
in share/src
171 15
extension.ts
in editor
170 9
simulator.ts
in share/src/components
165 19
Share.css
in share/src/css
164 -
bitmap.ts
in share/src/sprite-editor
164 14
loader.js
in libs/template/assets/js
150 14
GameModder.css
in share/src/css
149 -
util.ts
in share/src/components
141 6
sidebar.ts
in share/src/sprite-editor
138 9
sprites.dungeon.ts
in libs/device
110 -
sprites.castle.ts
in libs/device
109 -
GameButtons.css
in share/src/css
100 -
darts.ts
in libs/darts
91 5
style.less
in theme
88 -
TabBar.tsx
in share/src/components
80 4
SpriteEditor.tsx
in share/src/components
78 7
App.tsx
in share/src
74 6
svgEvents.ts
in share/src/sprite-editor
73 8
cmd
setup.cmd
in root
70 -
canvasState.ts
in share/src/sprite-editor
69 8
SpriteGallery.tsx
in share/src/components
62 5
reporterBar.ts
in share/src/sprite-editor
60 5
sprites.swamp.ts
in libs/device
57 -
sprites.skillmap.ts
in libs/device
56 -
gamesel.cpp
in libs/hw---rpi
45 2
header.ts
in share/src/sprite-editor
45 4
appinsights.ts
in share/src/telemetry
39 4
sprites.vehicle.ts
in libs/device
38 -
sprites.projectile.ts
in libs/device
37 -
Joystick.css
in share/src/css
37 -
patchkinds.js
in scripts
32 2
copyArcadeSim.js
in scripts
30 1
storage.cpp
in libs/storage
29 3
Social.tsx
in share/src/components
28 4
Files With Most Units (Top 20)
File# lines# units
buttons.ts
in share/src/sprite-editor
461 44
spriteEditor.ts
in share/src/sprite-editor
549 42
tools.ts
in share/src/sprite-editor
399 33
canvasGrid.ts
in share/src/sprite-editor
467 32
GameModder.tsx
in share/src/components
716 31
svgUtil.ts
in share/src/sprite-editor
601 27
sevenseg.ts
in libs/sevenseg
296 25
simulator.ts
in share/src/components
165 19
Joystick.tsx
in share/src/components
320 18
sdlmain.cpp
in libs/hw---vm
510 15
bitmap_helpers.ts
in share/src
171 15
loader.js
in libs/template/assets/js
150 14
bitmap.ts
in share/src/sprite-editor
164 14
GameButtons.tsx
in share/src/components
197 13
extension.ts
in editor
170 9
sidebar.ts
in share/src/sprite-editor
138 9
canvasState.ts
in share/src/sprite-editor
69 8
svgEvents.ts
in share/src/sprite-editor
73 8
keys.cpp
in libs/hw---rpi
219 7
SpriteEditor.tsx
in share/src/components
78 7
Files With Long Lines (Top 20)

There are 20 files with lines longer than 120 characters. In total, there are 88 long lines.

File# lines# units# long lines
main.ts.ts
in share/src/games/bunny_hop
673 5 32
script.html
in docfiles
254 - 10
Joystick.tsx
in share/src/components
320 18 7
cmd
setup.cmd
in root
70 - 6
svgUtil.ts
in share/src/sprite-editor
601 27 6
buttons.ts
in share/src/sprite-editor
461 44 4
sevenseg.ts
in libs/sevenseg
296 25 3
GameModder.tsx
in share/src/components
716 31 2
HeaderBar.tsx
in share/src/components
12 - 2
util.ts
in share/src/components
141 6 2
canvasGrid.ts
in share/src/sprite-editor
467 32 2
canvasState.ts
in share/src/sprite-editor
69 8 2
sidebar.ts
in share/src/sprite-editor
138 9 2
appinsights.ts
in share/src/telemetry
39 4 2
scripthead.html
in docfiles
13 - 1
GameButtons.tsx
in share/src/components
197 13 1
SimFrame.tsx
in share/src/components
14 - 1
TabBar.tsx
in share/src/components
80 4 1
bitmap.ts
in share/src/sprite-editor
164 14 1
tools.ts
in share/src/sprite-editor
399 33 1