aws-samples / aws-saas-factory-ref-solution-serverless-saas
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 185 files with 11,684 lines of code.
    • 3 very long files (3,544 lines of code)
    • 0 long files (0 lines of code)
    • 6 medium size files (1,674 lines of codeclsfd_ftr_w_mp_ins)
    • 16 small files (2,372 lines of code)
    • 160 very small files (4,094 lines of code)
30% | 0% | 14% | 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
yaml83% | 0% | 4% | 11% | <1%
py0% | 0% | 49% | 26% | 23%
scss0% | 0% | 71% | 0% | 28%
html0% | 0% | 0% | 46% | 53%
ts0% | 0% | 0% | 15% | 84%
yml0% | 0% | 0% | 0% | 100%
toml0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
server/nested_templates75% | 0% | 6% | 16% | 1%
server96% | 0% | 0% | 0% | 3%
server/TenantManagementService0% | 0% | 83% | 0% | 16%
server/Resources0% | 0% | 100% | 0% | 0%
clients/Landing0% | 0% | 37% | 35% | 27%
clients/Application0% | 0% | 0% | 20% | 79%
clients/Admin0% | 0% | 0% | 28% | 71%
server/layers0% | 0% | 0% | 66% | 33%
server/TenantPipeline0% | 0% | 0% | 64% | 35%
server/ProductService0% | 0% | 0% | 63% | 36%
server/OrderService0% | 0% | 0% | 64% | 35%
server/custom_resources0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
tenant-template.yaml
in server
1263 -
lambdafunctions.yaml
in server/nested_templates/bootstrap
1173 -
apigateway.yaml
in server/nested_templates/bootstrap
1108 -
user-management.py
in server/TenantManagementService
437 17
tenant-management.py
in server/TenantManagementService
299 14
landing.component.scss
in clients/Landing/src/app/landing
299 -
tenant_authorizer.py
in server/Resources
218 14
shared_service_authorizer.py
in server/Resources
215 13
userinterface.yaml
in server/nested_templates/bootstrap
206 -
cognito.yaml
in server/nested_templates/bootstrap
192 -
auth_manager.py
in server/layers
192 8
dashboard.component.ts
in clients/Admin/src/app/views/dashboard
190 8
apigateway_lambdapermissions.yaml
in server/nested_templates/bootstrap
183 -
lambda-deploy-tenant-stack.py
in server/TenantPipeline/resources
177 17
register.component.html
in clients/Landing/src/app/register
148 -
user-create.component.html
in clients/Admin/src/app/users/user-create
147 -
dashboard.component.ts
in clients/Application/src/app/views/dashboard
140 10
product_service_dal.py
in server/ProductService
135 8
landing.component.html
in clients/Landing/src/app/landing
135 -
order_service_dal.py
in server/OrderService
134 9
create.component.html
in clients/Admin/src/app/tenants
130 -
auth-configuration.service.ts
in clients/Application/src/app/views/auth
128 6
orders-detail.component.html
in clients/Application/src/app/orders/orders-detail
120 -
user-create.component.html
in clients/Application/src/app/users/user-create
115 -
tables.yaml
in server/nested_templates/bootstrap
106 -
product-edit.component.html
in clients/Application/src/app/products/product-edit
98 -
serverless-saas-stack.ts
in server/TenantPipeline/lib
89 1
tenant-registration.py
in server/TenantManagementService
87 4
app.module.ts
in clients/Admin/src/app
84 1
orders-create.component.ts
in clients/Application/src/app/orders/orders-create
84 4
utils.py
in server/layers
80 7
app.module.ts
in clients/Application/src/app
80 -
app.routing.ts
in clients/Application/src/app
75 -
product-create.component.html
in clients/Application/src/app/products/product-create
73 -
update_usage_plan.py
in server/custom_resources
70 3
orders-detail.component.scss
in clients/Application/src/app/orders/orders-detail
65 -
product_service.py
in server/ProductService
63 5
create.component.ts
in clients/Admin/src/app/tenants
63 5
register.component.ts
in clients/Landing/src/app/register
63 5
product-edit.component.ts
in clients/Application/src/app/products/product-edit
63 3
order_service.py
in server/OrderService
62 5
app-routing.module.ts
in clients/Admin/src/app
62 -
orders-detail.component.ts
in clients/Application/src/app/orders/orders-detail
59 8
orders-create.component.html
in clients/Application/src/app/orders/orders-create
59 -
user-create.component.ts
in clients/Admin/src/app/users/user-create
58 6
login-info.component.html
in clients/Admin/src/app/views/auth/login-info
56 -
login-info.component.html
in clients/Application/src/app/views/auth/login-info
56 -
tenant-provisioning.py
in server/TenantManagementService
54 2
unauthorized.component.ts
in clients/Application/src/app/views/error
53 5
dashboard.component.html
in clients/Admin/src/app/views/dashboard
48 -
Files With Most Units (Top 20)
File# lines# units
user-management.py
in server/TenantManagementService
437 17
lambda-deploy-tenant-stack.py
in server/TenantPipeline/resources
177 17
tenant_authorizer.py
in server/Resources
218 14
tenant-management.py
in server/TenantManagementService
299 14
shared_service_authorizer.py
in server/Resources
215 13
dashboard.component.ts
in clients/Application/src/app/views/dashboard
140 10
order_service_dal.py
in server/OrderService
134 9
product_service_dal.py
in server/ProductService
135 8
auth_manager.py
in server/layers
192 8
dashboard.component.ts
in clients/Admin/src/app/views/dashboard
190 8
orders-detail.component.ts
in clients/Application/src/app/orders/orders-detail
59 8
utils.py
in server/layers
80 7
user-create.component.ts
in clients/Admin/src/app/users/user-create
58 6
auth-configuration.service.ts
in clients/Application/src/app/views/auth
128 6
user-create.component.ts
in clients/Application/src/app/users/user-create
44 6
product_service.py
in server/ProductService
63 5
order_service.py
in server/OrderService
62 5
create.component.ts
in clients/Admin/src/app/tenants
63 5
register.component.ts
in clients/Landing/src/app/register
63 5
unauthorized.component.ts
in clients/Application/src/app/views/error
53 5
Files With Long Lines (Top 20)

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

File# lines# units# long lines
apigateway_lambdapermissions.yaml
in server/nested_templates/bootstrap
183 - 19
apigateway.yaml
in server/nested_templates/bootstrap
1108 - 17
tenant-management.py
in server/TenantManagementService
299 14 12
tenant-template.yaml
in server
1263 - 11
user-management.py
in server/TenantManagementService
437 17 9
default-layout.component.html
in clients/Admin/src/app/default-layout
46 - 5
default-layout.component.html
in clients/Application/src/app/default-layout
45 - 5
lambda-deploy-tenant-stack.py
in server/TenantPipeline/resources
177 17 4
userinterface.yaml
in server/nested_templates/bootstrap
206 - 3
product_service_dal.py
in server/ProductService
135 8 2
auth_manager.py
in server/layers
192 8 2
utils.py
in server/layers
80 7 2
tenant_authorizer.py
in server/Resources
218 14 1
shared_service_authorizer.py
in server/Resources
215 13 1
dashboard.component.html
in clients/Admin/src/app/views/dashboard
48 - 1
dashboard.component.ts
in clients/Admin/src/app/views/dashboard
190 8 1
create.component.html
in clients/Admin/src/app/tenants
130 - 1
dashboard.component.html
in clients/Application/src/app/views/dashboard
48 - 1
dashboard.component.ts
in clients/Application/src/app/views/dashboard
140 10 1
auth-configuration.service.ts
in clients/Application/src/app/views/auth
128 6 1