aws-samples / aws-serverless-shopping-cart
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 41 files with 2,408 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 1 medium size files (410 lines of codeclsfd_ftr_w_mp_ins)
    • 3 small files (429 lines of code)
    • 37 very small files (1,569 lines of code)
0% | 0% | 17% | 17% | 65%
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% | 59% | 24% | 16%
vue0% | 0% | 0% | 22% | 77%
js0% | 0% | 0% | 24% | 75%
py0% | 0% | 0% | 0% | 100%
yml0% | 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% | 78% | 0% | 21%
frontend/src0% | 0% | 0% | 24% | 75%
amplify-ci0% | 0% | 0% | 100% | 0%
backend/shopping-cart-service0% | 0% | 0% | 0% | 100%
backend/layers0% | 0% | 0% | 0% | 100%
backend/product-mock-service0% | 0% | 0% | 0% | 100%
frontend/scripts0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
frontend/public0% | 0% | 0% | 0% | 100%
frontend0% | 0% | 0% | 0% | 100%
Longest Files (Top 41)
File# lines# units
shoppingcart-service.yaml
in backend
410 -
amplify-template.yaml
in amplify-ci
165 -
Payment.vue
in frontend/src/views
133 -
actions.js
in frontend/src/store
131 -
add_to_cart.py
in backend/shopping-cart-service
96 1
router.js
in frontend/src
89 1
CartQuantityEditor.vue
in frontend/src/components
85 -
update_cart.py
in backend/shopping-cart-service
83 1
mutations.js
in frontend/src/store
81 -
api.js
in frontend/src/backend
79 7
App.vue
in frontend/src
77 -
migrate_cart.py
in backend/shopping-cart-service
77 2
Product.vue
in frontend/src/components
75 -
product-mock.yaml
in backend
62 -
CartButton.vue
in frontend/src/components
61 -
shared.py
in backend/layers
61 5
CartDrawer.vue
in frontend/src/components
58 -
db_stream_handler.py
in backend/shopping-cart-service
48 2
auth.yaml
in backend
48 -
fetchconfig.js
in frontend/scripts
45 1
list_cart.py
in backend/shopping-cart-service
44 1
checkout_cart.py
in backend/shopping-cart-service
43 1
Auth.vue
in frontend/src/views
40 -
main.js
in frontend/src
37 -
LoadingOverlay.vue
in frontend/src/components
31 -
amplify.yml
in root
26 -
get_product.py
in backend/product-mock-service
26 1
get_cart_total.py
in backend/shopping-cart-service
23 1
Home.vue
in frontend/src/views
21 -
get_products.py
in backend/product-mock-service
21 1
delete_from_cart.py
in backend/shopping-cart-service
20 1
store.js
in frontend/src/store
19 -
aws-exports.js
in frontend/src
19 -
index.html
in frontend/public
19 -
utils.py
in backend/shopping-cart-service
16 1
vuetify.js
in frontend/src/plugins
15 -
getters.js
in frontend/src/store
11 -
vue.config.js
in frontend
6 -
babel.config.js
in frontend
5 -
__init__.py
in backend/product-mock-service
1 -
__init__.py
in backend/shopping-cart-service
1 -
Files With Most Units (Top 15)
File# lines# units
api.js
in frontend/src/backend
79 7
shared.py
in backend/layers
61 5
migrate_cart.py
in backend/shopping-cart-service
77 2
db_stream_handler.py
in backend/shopping-cart-service
48 2
router.js
in frontend/src
89 1
fetchconfig.js
in frontend/scripts
45 1
get_products.py
in backend/product-mock-service
21 1
get_product.py
in backend/product-mock-service
26 1
checkout_cart.py
in backend/shopping-cart-service
43 1
update_cart.py
in backend/shopping-cart-service
83 1
delete_from_cart.py
in backend/shopping-cart-service
20 1
get_cart_total.py
in backend/shopping-cart-service
23 1
list_cart.py
in backend/shopping-cart-service
44 1
utils.py
in backend/shopping-cart-service
16 1
add_to_cart.py
in backend/shopping-cart-service
96 1
Files With Long Lines (Top 2)

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

File# lines# units# long lines
Product.vue
in frontend/src/components
75 - 1
index.html
in frontend/public
19 - 1