aws-samples / happy-path
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 35 files with 2,048 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 2 medium size files (537 lines of codeclsfd_ftr_w_mp_ins)
    • 3 small files (391 lines of code)
    • 30 very small files (1,120 lines of code)
0% | 0% | 26% | 19% | 54%
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
yaml0% | 0% | 39% | 17% | 43%
vue0% | 0% | 42% | 42% | 15%
js0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
backend0% | 0% | 69% | 30% | 0%
frontend/src0% | 0% | 30% | 31% | 38%
workflows/templates0% | 0% | 0% | 0% | 100%
workflows/functions0% | 0% | 0% | 0% | 100%
backend/upload0% | 0% | 0% | 0% | 100%
backend/api0% | 0% | 0% | 0% | 100%
backend/streams0% | 0% | 0% | 0% | 100%
frontend/public0% | 0% | 0% | 0% | 100%
localTesting0% | 0% | 0% | 0% | 100%
backend/layers0% | 0% | 0% | 0% | 100%
frontend0% | 0% | 0% | 0% | 100%
Longest Files (Top 35)
File# lines# units
template.yaml
in backend
269 -
HomeView.vue
in frontend/src/views
268 -
PlaceDetail.vue
in frontend/src/views
147 -
IoT.vue
in frontend/src/components
126 -
realtime.yaml
in backend
118 -
index.js
in frontend/src/auth
100 10
template.yaml
in workflows/templates/v3
90 -
template.yaml
in workflows/templates/v4
86 -
template.yaml
in workflows/templates/v2
78 -
App.vue
in frontend/src
70 -
app.js
in workflows/functions/resizer
70 -
index.js
in frontend/src/store
60 5
request.js
in backend/upload
56 -
main.js
in frontend/src
47 -
app.js
in backend/streams/ddb
44 -
app.js
in workflows/functions/analyze/people
39 -
app.js
in workflows/functions/publish
37 1
app.js
in workflows/functions/analyze/moderator
34 -
post.js
in backend/api/locations
31 -
app.js
in workflows/functions/analyze/dimensions
30 -
get.js
in backend/api/locations
29 -
complete.js
in backend/upload
29 -
Snackbar.vue
in frontend/src/components
27 -
index.js
in frontend/src/router
24 -
template.yaml
in workflows/templates/v1
24 -
index.html
in frontend/public
21 -
test.js
in localTesting
15 -
template.yaml
in backend/layers/sharp-layer
14 -
localTest.js
in backend/upload/local
12 -
localTest.js
in backend/streams/ddb
12 -
postTest.js
in backend/api/locations/local
11 -
getTest.js
in backend/api/locations/local
11 -
vue.config.js
in frontend
8 -
vuetify.js
in frontend/src/plugins
6 -
babel.config.js
in frontend
5 -
Files With Most Units (Top 3)
File# lines# units
index.js
in frontend/src/auth
100 10
index.js
in frontend/src/store
60 5
app.js
in workflows/functions/publish
37 1
Files With Long Lines (Top 4)

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

File# lines# units# long lines
template.yaml
in backend
269 - 6
realtime.yaml
in backend
118 - 4
HomeView.vue
in frontend/src/views
268 - 1
index.html
in frontend/public
21 - 1