aws-samples / aws-serverless-saas-workshop
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 1,750 files with 98,290 lines of code.
    • 6 very long files (6,350 lines of code)
    • 22 long files (17,274 lines of code)
    • 48 medium size files (13,845 lines of codeclsfd_ftr_w_mp_ins)
    • 150 small files (22,423 lines of code)
    • 1,524 very small files (38,398 lines of code)
6% | 17% | 14% | 22% | 39%
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
yaml18% | 51% | 13% | 14% | 2%
py0% | 0% | 36% | 36% | 26%
scss0% | 0% | 72% | 0% | 27%
html0% | 0% | 0% | 47% | 52%
ts0% | 0% | 0% | 13% | 86%
toml0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
Solution/Lab619% | 6% | 17% | 19% | 37%
Lab6/server34% | 11% | 25% | 15% | 13%
Solution/Lab129% | 24% | 0% | 3% | 42%
Lab1/event-engine-assets100% | 0% | 0% | 0% | 0%
Solution/Lab50% | 23% | 15% | 22% | 38%
Lab5/server0% | 44% | 23% | 19% | 12%
Solution/Lab40% | 22% | 10% | 26% | 40%
Lab4/server0% | 47% | 15% | 28% | 8%
Solution/Lab30% | 18% | 14% | 26% | 41%
Lab3/server0% | 38% | 22% | 26% | 11%
Lab1/server0% | 72% | 0% | 0% | 27%
Solution/Lab20% | 14% | 18% | 31% | 35%
Lab2/server0% | 27% | 17% | 40% | 15%
Cloud9Setup0% | 0% | 97% | 0% | 2%
Lab5/client0% | 0% | 6% | 25% | 68%
Lab6/client0% | 0% | 6% | 25% | 68%
Lab3/client0% | 0% | 6% | 23% | 70%
Lab4/client0% | 0% | 6% | 23% | 70%
Lab2/client0% | 0% | 12% | 30% | 57%
Lab1/client0% | 0% | 0% | 8% | 91%
Longest Files (Top 50)
File# lines# units
apigateway.yaml
in Solution/Lab6/server/nested_templates
1107 -
apigateway.yaml
in Lab6/server/nested_templates
1107 -
tenant-template.yaml
in Solution/Lab6/server
1041 -
tenant-template.yaml
in Lab6/server
1041 -
packaged.yaml
in Solution/Lab1/event-engine-assets
1027 -
packaged.yaml
in Lab1/event-engine-assets
1027 -
apigateway.yaml
in Solution/Lab5/server/nested_templates
928 -
tenant-template.yaml
in Solution/Lab5/server
928 -
apigateway.yaml
in Lab5/server/nested_templates
928 -
tenant-template.yaml
in Lab5/server
928 -
tenant-template.yaml
in Solution/Lab3/server
890 -
tenant-template.yaml
in Lab3/server
890 -
tenant-template.yaml
in Solution/Lab4/server
861 -
tenant-template.yaml
in Lab4/server
861 -
template.yaml
in Solution/Lab1/server
859 -
template.yaml
in Lab1/server
859 -
apigateway.yaml
in Solution/Lab2/server/nested_templates
749 -
apigateway.yaml
in Lab2/server/nested_templates
749 -
apigateway.yaml
in Solution/Lab3/server/nested_templates
745 -
apigateway.yaml
in Solution/Lab4/server/nested_templates
745 -
apigateway.yaml
in Lab3/server/nested_templates
745 -
apigateway.yaml
in Lab4/server/nested_templates
745 -
lambdafunctions.yaml
in Solution/Lab6/server/nested_templates
721 -
lambdafunctions.yaml
in Lab6/server/nested_templates
721 -
lambdafunctions.yaml
in Solution/Lab5/server/nested_templates
702 -
lambdafunctions.yaml
in Lab5/server/nested_templates
702 -
lambdafunctions.yaml
in Solution/Lab4/server/nested_templates
509 -
lambdafunctions.yaml
in Lab4/server/nested_templates
509 -
lambdafunctions.yaml
in Solution/Lab3/server/nested_templates
476 -
lambdafunctions.yaml
in Lab3/server/nested_templates
476 -
lambdafunctions.yaml
in Solution/Lab2/server/nested_templates
474 -
lambdafunctions.yaml
in Lab2/server/nested_templates
474 -
user-management.py
in Solution/Lab5/server/TenantManagementService
435 17
user-management.py
in Solution/Lab6/server/TenantManagementService
435 17
user-management.py
in Lab6/server/TenantManagementService
435 17
prereq-sam-template.yaml
in Cloud9Setup
431 -
user-management.py
in Lab5/server/TenantManagementService
428 17
user-management.py
in Solution/Lab4/server/TenantManagementService
304 14
user-management.py
in Lab4/server/TenantManagementService
304 14
landing.component.scss
in Solution/Lab5/client/Landing/src/app/landing
299 -
landing.component.scss
in Solution/Lab3/client/Landing/src/app/landing
299 -
landing.component.scss
in Solution/Lab2/client/Landing/src/app/landing
299 -
landing.component.scss
in Solution/Lab4/client/Landing/src/app/landing
299 -
landing.component.scss
in Solution/Lab6/client/Landing/src/app/landing
299 -
tenant-management.py
in Solution/Lab6/server/TenantManagementService
299 14
landing.component.scss
in Lab5/client/Landing/src/app/landing
299 -
landing.component.scss
in Lab3/client/Landing/src/app/landing
299 -
landing.component.scss
in Lab2/client/Landing/src/app/landing
299 -
landing.component.scss
in Lab4/client/Landing/src/app/landing
299 -
landing.component.scss
in Lab6/client/Landing/src/app/landing
299 -
Files With Most Units (Top 20)
File# lines# units
user-management.py
in Solution/Lab5/server/TenantManagementService
435 17
lambda-deploy-tenant-stack.py
in Solution/Lab5/server/TenantPipeline/resources
159 17
user-management.py
in Solution/Lab6/server/TenantManagementService
435 17
lambda-deploy-tenant-stack.py
in Solution/Lab6/server/TenantPipeline/resources
159 17
user-management.py
in Lab5/server/TenantManagementService
428 17
lambda-deploy-tenant-stack.py
in Lab5/server/TenantPipeline/resources
159 17
user-management.py
in Lab6/server/TenantManagementService
435 17
lambda-deploy-tenant-stack.py
in Lab6/server/TenantPipeline/resources
159 17
tenant_authorizer.py
in Solution/Lab5/server/Resources
213 14
user-management.py
in Solution/Lab3/server/TenantManagementService
291 14
user-management.py
in Solution/Lab2/server/TenantManagementService
222 14
user-management.py
in Solution/Lab4/server/TenantManagementService
304 14
tenant_authorizer.py
in Solution/Lab6/server/Resources
218 14
tenant-management.py
in Solution/Lab6/server/TenantManagementService
299 14
tenant_authorizer.py
in Lab5/server/Resources
213 14
user-management.py
in Lab3/server/TenantManagementService
291 14
user-management.py
in Lab2/server/TenantManagementService
194 14
user-management.py
in Lab4/server/TenantManagementService
304 14
tenant_authorizer.py
in Lab6/server/Resources
216 14
tenant-management.py
in Lab6/server/TenantManagementService
298 14
Files With Long Lines (Top 20)

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

File# lines# units# long lines
apigateway_lambdapermissions.yaml
in Solution/Lab5/server/nested_templates
183 - 19
apigateway_lambdapermissions.yaml
in Solution/Lab6/server/nested_templates
183 - 19
apigateway_lambdapermissions.yaml
in Lab5/server/nested_templates
183 - 19
apigateway_lambdapermissions.yaml
in Lab6/server/nested_templates
183 - 19
apigateway.yaml
in Solution/Lab5/server/nested_templates
928 - 17
apigateway.yaml
in Solution/Lab6/server/nested_templates
1107 - 17
apigateway.yaml
in Lab5/server/nested_templates
928 - 17
apigateway.yaml
in Lab6/server/nested_templates
1107 - 17
apigateway_lambdapermissions.yaml
in Solution/Lab3/server/nested_templates
156 - 16
apigateway_lambdapermissions.yaml
in Solution/Lab2/server/nested_templates
156 - 16
apigateway_lambdapermissions.yaml
in Solution/Lab4/server/nested_templates
156 - 16
apigateway_lambdapermissions.yaml
in Lab3/server/nested_templates
156 - 16
apigateway_lambdapermissions.yaml
in Lab2/server/nested_templates
156 - 16
apigateway_lambdapermissions.yaml
in Lab4/server/nested_templates
156 - 16
apigateway.yaml
in Solution/Lab3/server/nested_templates
745 - 13
apigateway.yaml
in Solution/Lab2/server/nested_templates
749 - 13
apigateway.yaml
in Solution/Lab4/server/nested_templates
745 - 13
apigateway.yaml
in Lab3/server/nested_templates
745 - 13
apigateway.yaml
in Lab2/server/nested_templates
749 - 13
apigateway.yaml
in Lab4/server/nested_templates
745 - 13