aws-samples / aws-serverless-ecommerce-platform
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 79 files with 8,380 lines of code.
    • 0 very long files (0 lines of code)
    • 3 long files (2,407 lines of code)
    • 9 medium size files (2,700 lines of codeclsfd_ftr_w_mp_ins)
    • 6 small files (914 lines of code)
    • 61 very small files (2,359 lines of code)
0% | 28% | 32% | 10% | 28%
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% | 41% | 39% | 2% | 16%
py0% | 0% | 23% | 20% | 56%
ts0% | 0% | 0% | 39% | 60%
graphql0% | 0% | 0% | 100% | 0%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
orders0% | 64% | 13% | 0% | 22%
frontend-api0% | 79% | 0% | 18% | 1%
payment0% | 70% | 0% | 0% | 29%
warehouse0% | 0% | 80% | 12% | 6%
pipeline0% | 0% | 82% | 0% | 17%
delivery0% | 0% | 63% | 15% | 21%
platform0% | 0% | 62% | 0% | 37%
payment-3p0% | 0% | 30% | 25% | 44%
shared0% | 0% | 34% | 25% | 39%
products0% | 0% | 0% | 39% | 60%
delivery-pricing0% | 0% | 0% | 0% | 100%
users0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
template.yaml
in orders
940 -
template.yaml
in frontend-api
765 -
template.yaml
in payment
702 -
template.yaml
in warehouse
468 -
template.yaml
in delivery
456 -
service-pipeline.yaml
in pipeline/resources
377 -
template.yaml
in platform
293 -
openapi.yaml
in payment-3p/resources
233 -
main.py
in warehouse/src/on_order_events
230 12
schemas.yaml
in shared/resources
228 -
template.yaml
in pipeline
210 -
main.py
in orders/src/create_order
205 7
payment-3p-stack.ts
in payment-3p/lib
197 1
api.graphql
in frontend-api/resources
182 -
custom_rules.py
in shared/lint/rules
165 9
template.yaml
in products
149 -
main.py
in warehouse/src/table_update
111 4
main.py
in delivery/src/table_update
110 3
main.py
in orders/src/on_events
100 2
main.py
in delivery/src/on_package_created
97 3
template.yaml
in users
86 -
main.py
in products/src/validate
84 3
template.yaml
in delivery-pricing
78 -
openapi.yaml
in orders/resources
71 -
index.ts
in payment-3p/src/updateAmount
68 2
eventbridge.py
in shared/src/ecom/ecom
65 1
index.ts
in payment-3p/src/preauth
63 2
main.py
in delivery-pricing/src/pricing
60 4
schema.yaml
in shared/metadata
60 -
openapi.yaml
in payment/resources
59 -
index.ts
in payment-3p/src/check
58 2
openapi.yaml
in delivery-pricing/resources
57 -
index.ts
in payment-3p/src/processPayment
56 2
index.ts
in payment-3p/src/cancelPayment
56 2
main.py
in platform/src/register
55 2
events.yaml
in warehouse/resources
53 -
main.py
in payment/src/on_modified
52 3
main.py
in payment/src/on_completed
51 4
events.yaml
in delivery/resources
50 -
main.py
in orders/src/get_order
50 2
main.py
in users/src/sign_up
49 3
main.py
in payment/src/on_failed
49 4
events.yaml
in orders/resources
49 -
openapi.yaml
in products/resources
48 -
main.py
in payment/src/validate
47 2
service-pipeline-environment.yaml
in pipeline/resources
45 -
main.py
in platform/src/on_events
44 3
events.yaml
in products/resources
44 -
main.py
in platform/src/on_connect
41 2
main.py
in products/src/table_update
39 2
Files With Most Units (Top 20)
File# lines# units
main.py
in warehouse/src/on_order_events
230 12
custom_rules.py
in shared/lint/rules
165 9
main.py
in orders/src/create_order
205 7
main.py
in warehouse/src/table_update
111 4
main.py
in delivery-pricing/src/pricing
60 4
main.py
in payment/src/on_completed
51 4
main.py
in payment/src/on_failed
49 4
main.py
in platform/src/on_events
44 3
apigateway.py
in shared/src/ecom/ecom
34 3
main.py
in delivery/src/table_update
110 3
main.py
in delivery/src/on_package_created
97 3
main.py
in users/src/sign_up
49 3
main.py
in products/src/validate
84 3
main.py
in payment/src/on_modified
52 3
index.ts
in payment-3p/src/processPayment
56 2
index.ts
in payment-3p/src/check
58 2
index.ts
in payment-3p/src/preauth
63 2
index.ts
in payment-3p/src/cancelPayment
56 2
index.ts
in payment-3p/src/updateAmount
68 2
main.py
in platform/src/register
55 2
Files With Long Lines (Top 17)

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

File# lines# units# long lines
template.yaml
in payment
702 - 41
template.yaml
in orders
940 - 35
template.yaml
in delivery
456 - 27
template.yaml
in warehouse
468 - 24
template.yaml
in platform
293 - 4
template.yaml
in frontend-api
765 - 3
template.yaml
in pipeline
210 - 1
buildspec-build.yaml
in pipeline/resources
31 - 1
index.ts
in payment-3p/src/check
58 2 1
index.ts
in payment-3p/src/updateAmount
68 2 1
openapi.yaml
in delivery-pricing/resources
57 - 1
custom_rules.py
in shared/lint/rules
165 9 1
main.py
in products/src/validate
84 3 1
openapi.yaml
in products/resources
48 - 1
openapi.yaml
in payment/resources
59 - 1
main.py
in orders/src/on_events
100 2 1
openapi.yaml
in orders/resources
71 - 1