aws-samples / aws-alien-attack
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 49 files with 8,555 lines of code.
    • 1 very long files (1,234 lines of code)
    • 3 long files (2,211 lines of code)
    • 8 medium size files (2,553 lines of codeclsfd_ftr_w_mp_ins)
    • 9 small files (1,305 lines of code)
    • 28 very small files (1,252 lines of code)
14% | 25% | 29% | 15% | 14%
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
js22% | 22% | 32% | 17% | 5%
ts0% | 44% | 22% | 16% | 16%
html0% | 0% | 57% | 0% | 42%
css0% | 0% | 0% | 0% | 100%
yaml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
application/resources/libs51% | 22% | 18% | 0% | 7%
infrastructure/cdk/lib0% | 44% | 22% | 16% | 16%
application/game/js0% | 83% | 0% | 16% | 0%
infrastructure/cdk/lambdas0% | 0% | 40% | 57% | 2%
application/resources/js0% | 0% | 87% | 0% | 12%
application/scoreboard/js0% | 0% | 73% | 18% | 7%
application/scoreboard0% | 0% | 100% | 0% | 0%
application/resources/css0% | 0% | 0% | 0% | 100%
application0% | 0% | 0% | 0% | 100%
application/game0% | 0% | 0% | 0% | 100%
application/scoreboard/css0% | 0% | 0% | 0% | 100%
application/pages0% | 0% | 0% | 0% | 100%
application/game/css0% | 0% | 0% | 0% | 100%
infrastructure/cicd0% | 0% | 0% | 0% | 100%
Longest Files (Top 49)
File# lines# units
paho-mqtt.js
in application/resources/libs
1234 50
ingestionConsumptionLayer.ts
in infrastructure/cdk/lib/layer
953 4
alienattack.js
in application/game/js
712 46
jsbn2.js
in application/resources/libs
546 32
jsbn.js
in application/resources/libs
445 30
awsfacade.js
in application/resources/js
427 33
scoreboard.js
in application/scoreboard/js
399 29
index.html
in application/scoreboard
304 -
index.js
in infrastructure/cdk/lambdas/scoreboard
269 14
processingLayer.ts
in infrastructure/cdk/lib/layer
267 9
index.js
in infrastructure/cdk/lambdas/allocateGamer
227 8
securityLayer.ts
in infrastructure/cdk/lib/layer
215 12
index.js
in infrastructure/cdk/lambdas/synchronousStart
194 2
index.js
in infrastructure/cdk/lambdas/deallocateGamer
184 5
websocketLayer.ts
in infrastructure/cdk/lib/layer
183 10
resourceawarestack.ts
in infrastructure/cdk/lib
182 15
starfield.js
in application/game/js
140 11
index.js
in infrastructure/cdk/lambdas/websocketDisconnect
112 2
index.js
in infrastructure/cdk/lambdas/websocketConnect
105 3
index.js
in infrastructure/cdk/lambdas/gameInit
103 5
scoreboard.kinesisinherited.js
in application/scoreboard/js
102 8
storageLayer.ts
in infrastructure/cdk/lib/layer
99 3
mainLayer.ts
in infrastructure/cdk/lib/layer
88 2
infopages.css
in application/resources/css
81 -
index.html
in application/game
78 -
modaldialog.css
in application/resources/css
69 -
howtoplay.html
in application/pages
65 -
websocket.js
in application/resources/libs
63 8
sjcl.js
in application/resources/libs
60 1
index.html
in application
57 -
websocketAG.js
in application/resources/libs
56 9
utils.ts
in infrastructure/cdk/lib/util
52 3
modal.js
in application/resources/js
44 6
contentDeliveryLayer.ts
in infrastructure/cdk/lib/layer
42 2
typeography.css
in application/scoreboard/css
42 -
typeography.css
in application/resources/css
42 -
databaseLayer.ts
in infrastructure/cdk/lib/layer
40 1
scoreboard.dynamoinherited.js
in application/scoreboard/js
39 4
form.css
in application/resources/css
31 -
game.css
in application/game/css
29 -
index.js
in infrastructure/cdk/lambdas/postRegistration
28 -
configurationLayer.ts
in infrastructure/cdk/lib/layer
25 2
error.html
in application
25 -
buildspec.yaml
in infrastructure/cicd
24 -
scoreboard.css
in application/scoreboard/css
23 -
core.css
in application/resources/css
22 -
nrta.ts
in infrastructure/cdk/lib
12 1
gameutils.js
in application/resources/js
10 1
awsconfig.js
in application/resources/js
6 -
Files With Most Units (Top 20)
File# lines# units
paho-mqtt.js
in application/resources/libs
1234 50
alienattack.js
in application/game/js
712 46
awsfacade.js
in application/resources/js
427 33
jsbn2.js
in application/resources/libs
546 32
jsbn.js
in application/resources/libs
445 30
scoreboard.js
in application/scoreboard/js
399 29
resourceawarestack.ts
in infrastructure/cdk/lib
182 15
index.js
in infrastructure/cdk/lambdas/scoreboard
269 14
securityLayer.ts
in infrastructure/cdk/lib/layer
215 12
starfield.js
in application/game/js
140 11
websocketLayer.ts
in infrastructure/cdk/lib/layer
183 10
processingLayer.ts
in infrastructure/cdk/lib/layer
267 9
websocketAG.js
in application/resources/libs
56 9
index.js
in infrastructure/cdk/lambdas/allocateGamer
227 8
scoreboard.kinesisinherited.js
in application/scoreboard/js
102 8
websocket.js
in application/resources/libs
63 8
modal.js
in application/resources/js
44 6
index.js
in infrastructure/cdk/lambdas/gameInit
103 5
index.js
in infrastructure/cdk/lambdas/deallocateGamer
184 5
ingestionConsumptionLayer.ts
in infrastructure/cdk/lib/layer
953 4
Files With Long Lines (Top 20)

There are 22 files with lines longer than 120 characters. In total, there are 173 long lines.

File# lines# units# long lines
sjcl.js
in application/resources/libs
60 1 53
ingestionConsumptionLayer.ts
in infrastructure/cdk/lib/layer
953 4 26
paho-mqtt.js
in application/resources/libs
1234 50 22
processingLayer.ts
in infrastructure/cdk/lib/layer
267 9 11
howtoplay.html
in application/pages
65 - 9
websocketLayer.ts
in infrastructure/cdk/lib/layer
183 10 7
index.html
in application/scoreboard
304 - 7
index.js
in infrastructure/cdk/lambdas/scoreboard
269 14 5
alienattack.js
in application/game/js
712 46 5
index.js
in infrastructure/cdk/lambdas/allocateGamer
227 8 4
index.js
in infrastructure/cdk/lambdas/deallocateGamer
184 5 4
contentDeliveryLayer.ts
in infrastructure/cdk/lib/layer
42 2 3
mainLayer.ts
in infrastructure/cdk/lib/layer
88 2 3
awsfacade.js
in application/resources/js
427 33 3
securityLayer.ts
in infrastructure/cdk/lib/layer
215 12 2
index.html
in application
57 - 2
websocket.js
in application/resources/libs
63 8 2
resourceawarestack.ts
in infrastructure/cdk/lib
182 15 1
index.js
in infrastructure/cdk/lambdas/postRegistration
28 - 1
scoreboard.js
in application/scoreboard/js
399 29 1