aws-samples / aws-iot-core-acmebots-monitoring
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 63 files with 4,886 lines of code.
    • 1 very long files (1,269 lines of code)
    • 1 long files (507 lines of code)
    • 1 medium size files (337 lines of codeclsfd_ftr_w_mp_ins)
    • 6 small files (920 lines of code)
    • 54 very small files (1,853 lines of code)
25% | 10% | 6% | 18% | 37%
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
yml94% | 0% | 0% | 0% | 5%
js0% | 14% | 9% | 26% | 49%
css0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
backend100% | 0% | 0% | 0% | 0%
frontend/src0% | 48% | 32% | 0% | 19%
backend/src0% | 0% | 0% | 38% | 61%
bots/scripts0% | 0% | 0% | 51% | 48%
bots/src0% | 0% | 0% | 31% | 68%
frontend/scripts0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
bots0% | 0% | 0% | 0% | 100%
frontend/public0% | 0% | 0% | 0% | 100%
backend/config0% | 0% | 0% | 0% | 100%
bots/example0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
serverless.yml
in backend
1269 -
Telemetry.js
in frontend/src/components
507 21
Things.js
in frontend/src/components
337 24
clear-ecs-cluster.js
in bots/scripts
188 10
clear-ecs-cluster.js
in backend/src/cleanup
183 7
bots-operations.js
in backend/src/dashboards
174 -
handleTelemetryData.js
in backend/src/iotRules
145 2
core.js
in bots/src/bot
126 8
clear-s3-bucket.js
in backend/src/cleanup
104 4
ecsDeleteBot.js
in backend/src/bot
97 5
searchLowBatteryBots.js
in backend/src/cwEvents
89 7
msgHandler.js
in bots/src/bot
86 8
ecsProvisionBot.js
in backend/src/bot
86 3
clear-ecr-repo.js
in backend/src/cleanup
86 2
detachPrincipals.js
in backend/src/cleanup
85 2
registerServiceWorker.js
in frontend/src
79 4
setup.js
in frontend/scripts
75 4
index.js
in bots/src/bot
70 6
setup.js
in bots/scripts
69 4
processAcmeBotsStatusEvents.js
in backend/src/cwEvents
67 1
processAcmeBotsConnectivityEvents.js
in backend/src/cwEvents
67 1
env-setup.js
in bots/scripts
58 4
iot.js
in bots/src/bot
53 2
clear-ecr-repo.js
in bots/scripts
53 2
acme-bots-buildspec.yml
in root
39 -
disableCert.js
in backend/src/iot
38 1
App.js
in frontend/src
37 1
createKeysAndCert.js
in backend/src/iot
32 1
checkProvisioning.js
in backend/src/iot
28 1
deleteCert.js
in backend/src/iot
27 1
detachPrincipals.js
in frontend/scripts
26 -
createPolicy.js
in backend/src/iot
26 1
trackConnectivity.js
in backend/src/iotRules
25 1
checkIfThingExists.js
in backend/src/iot
24 1
App.css
in frontend/src
23 -
Home.js
in frontend/src/components
23 1
constants.js
in bots/src/bot
22 -
provisionThing.js
in backend/src/step-functions
21 1
removeThing.js
in backend/src/step-functions
21 1
logger.js
in bots/src/bot
19 2
Menu.js
in frontend/src/components
18 1
deleteMetadata.js
in backend/src/iot
18 1
attachPolicyToCert.js
in backend/src/iot
18 1
createThing.js
in backend/src/iot
18 1
attachCertToThing.js
in backend/src/iot
18 1
deleteThing.js
in backend/src/iot
18 1
buildspec.yml
in bots
17 -
index.html
in frontend/public
17 -
telemetryCache.js
in bots/src/bot
15 2
config.yml
in backend/config
14 -
Files With Most Units (Top 20)
File# lines# units
Things.js
in frontend/src/components
337 24
Telemetry.js
in frontend/src/components
507 21
clear-ecs-cluster.js
in bots/scripts
188 10
msgHandler.js
in bots/src/bot
86 8
core.js
in bots/src/bot
126 8
searchLowBatteryBots.js
in backend/src/cwEvents
89 7
clear-ecs-cluster.js
in backend/src/cleanup
183 7
index.js
in bots/src/bot
70 6
ecsDeleteBot.js
in backend/src/bot
97 5
setup.js
in bots/scripts
69 4
env-setup.js
in bots/scripts
58 4
registerServiceWorker.js
in frontend/src
79 4
setup.js
in frontend/scripts
75 4
clear-s3-bucket.js
in backend/src/cleanup
104 4
ecsProvisionBot.js
in backend/src/bot
86 3
telemetryCache.js
in bots/src/bot
15 2
iot.js
in bots/src/bot
53 2
logger.js
in bots/src/bot
19 2
clear-ecr-repo.js
in bots/scripts
53 2
utils.js
in backend/src/iot
11 2
Files With Long Lines (Top 8)

There are 8 files with lines longer than 120 characters. In total, there are 14 long lines.

File# lines# units# long lines
serverless.yml
in backend
1269 - 3
index.js
in bots/src/bot
70 6 2
Things.js
in frontend/src/components
337 24 2
Menu.js
in frontend/src/components
18 1 2
Telemetry.js
in frontend/src/components
507 21 2
buildspec.yml
in bots
17 - 1
core.js
in bots/src/bot
126 8 1
bots-operations.js
in backend/src/dashboards
174 - 1