aws-samples / aws-serverless-airline-booking
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 85 files with 6,108 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (555 lines of code)
    • 6 medium size files (2,086 lines of codeclsfd_ftr_w_mp_ins)
    • 9 small files (1,277 lines of code)
    • 69 very small files (2,190 lines of code)
0% | 9% | 34% | 20% | 35%
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% | 57% | 22% | 12% | 8%
vue0% | 0% | 56% | 34% | 9%
yml0% | 0% | 81% | 0% | 18%
gql0% | 0% | 0% | 100% | 0%
js0% | 0% | 0% | 11% | 88%
py0% | 0% | 0% | 0% | 100%
ts0% | 0% | 0% | 0% | 100%
toml0% | 0% | 0% | 0% | 100%
graphql0% | 0% | 0% | 0% | 100%
sass0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
cfg0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/backend/booking0% | 63% | 0% | 0% | 36%
src/frontend/src0% | 0% | 42% | 25% | 31%
amplify/backend/auth0% | 0% | 100% | 0% | 0%
src/backend/loyalty0% | 0% | 53% | 0% | 46%
ROOT0% | 0% | 0% | 63% | 36%
src/backend/payment0% | 0% | 0% | 38% | 61%
src/frontend0% | 0% | 0% | 97% | 2%
src/backend/catalog0% | 0% | 0% | 0% | 100%
amplify/backend/api0% | 0% | 0% | 0% | 100%
src/backend/shared0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
template.yaml
in src/backend/booking
555 -
FlightSelection.vue
in src/frontend/src/pages
462 -
FlightToolbar.vue
in src/frontend/src/components
390 -
FlightToolbarFilters.vue
in src/frontend/src/components
362 -
awsserverlessairline44ea6421-cloudformation-template.yml
in amplify/backend/auth/awsserverlessairline44ea6421
357 -
Search.vue
in src/frontend/src/pages
300 -
template.yaml
in src/backend/loyalty
215 -
FlightCard.vue
in src/frontend/src/components
200 -
BookingCard.vue
in src/frontend/src/components
191 -
FlightResults.vue
in src/frontend/src/pages
149 -
sample-queries-mutations.gql
in root
138 -
Bookings.vue
in src/frontend/src/pages
134 -
Profile.vue
in src/frontend/src/pages
132 -
template.yaml
in src/backend/payment
117 -
Authentication.vue
in src/frontend/src/pages
111 -
quasar.conf.js
in src/frontend
105 3
index.ts
in src/backend/loyalty/src/get
92 1
BookingFlight.vue
in src/frontend/src/components
87 -
actions.js
in src/frontend/src/store/bookings
86 2
MainLayout.vue
in src/frontend/src/layouts
85 -
schema.graphql
in amplify/backend/api/awsserverlessairline
81 -
amplify.yml
in root
81 -
notify.py
in src/backend/booking/src/notify-booking
72 3
actions.js
in src/frontend/src/store/catalog
69 3
reserve.py
in src/backend/booking/src/reserve-booking
69 4
confirm.py
in src/backend/booking/src/confirm-booking
66 3
collect.py
in src/backend/payment/src/collect-payment
65 3
FlightClass.js
in src/frontend/src/shared/models
63 2
index.ts
in src/backend/loyalty/src/ingest
62 3
refund.py
in src/backend/payment/src/refund-payment
61 3
graphql.js
in src/frontend/src/store/catalog
56 1
cancel.py
in src/backend/booking/src/cancel-booking
54 3
graphql.js
in src/frontend/src/store/bookings
53 1
routes.js
in src/frontend/src/router
52 -
airportSearch.js
in src/frontend/src/shared/mixins
52 2
template.yaml
in src/backend/catalog
51 -
pyproject.toml
in src/backend/payment
47 -
pyproject.toml
in src/backend/booking
46 -
payment.js
in src/frontend/src/store/bookings
43 1
index.template.html
in src/frontend/src
43 -
sass
app.sass
in src/frontend/src/css
42 -
mutations.js
in src/frontend/src/store/catalog
41 -
reserve.py
in src/backend/catalog/src/reserve-flight
40 2
release.py
in src/backend/catalog/src/release-flight
39 2
middleware.py
in src/backend/shared/libs/src/process_booking
39 4
FlightLoader.vue
in src/frontend/src/components
37 -
Error404.vue
in src/frontend/src/pages
32 -
index.js
in src/frontend/src/router
29 1
template.yaml
in src/backend/shared/libs
28 -
actions.js
in src/frontend/src/store/loyalty
24 1
Files With Most Units (Top 20)
File# lines# units
reserve.py
in src/backend/booking/src/reserve-booking
69 4
middleware.py
in src/backend/shared/libs/src/process_booking
39 4
quasar.conf.js
in src/frontend
105 3
actions.js
in src/frontend/src/store/catalog
69 3
cancel.py
in src/backend/booking/src/cancel-booking
54 3
notify.py
in src/backend/booking/src/notify-booking
72 3
confirm.py
in src/backend/booking/src/confirm-booking
66 3
collect.py
in src/backend/payment/src/collect-payment
65 3
refund.py
in src/backend/payment/src/refund-payment
61 3
index.ts
in src/backend/loyalty/src/ingest
62 3
actions.js
in src/frontend/src/store/bookings
86 2
airportSearch.js
in src/frontend/src/shared/mixins
52 2
FlightClass.js
in src/frontend/src/shared/models
63 2
BookingClass.js
in src/frontend/src/shared/models
13 2
release.py
in src/backend/catalog/src/release-flight
39 2
reserve.py
in src/backend/catalog/src/reserve-flight
40 2
graphql.js
in src/frontend/src/store/catalog
56 1
graphql.js
in src/frontend/src/store/bookings
53 1
payment.js
in src/frontend/src/store/bookings
43 1
actions.js
in src/frontend/src/store/profile
18 1
Files With Long Lines (Top 10)

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

File# lines# units# long lines
amplify.yml
in root
81 - 9
template.yaml
in src/backend/booking
555 - 3
schema.graphql
in amplify/backend/api/awsserverlessairline
81 - 1
awsserverlessairline44ea6421-cloudformation-template.yml
in amplify/backend/auth/awsserverlessairline44ea6421
357 - 1
quasar.conf.js
in src/frontend
105 3 1
index.template.html
in src/frontend/src
43 - 1
document_client.ts
in src/backend/loyalty/src/ingest/lib
12 - 1
index.ts
in src/backend/loyalty/src/ingest
62 3 1
document_client.ts
in src/backend/loyalty/src/get/lib
13 - 1
index.ts
in src/backend/loyalty/src/get
92 1 1