aws-samples / cdk-microservices-labs
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 149 files with 25,427 lines of code.
    • 3 very long files (21,216 lines of code)
    • 0 long files (0 lines of code)
    • 2 medium size files (484 lines of codeclsfd_ftr_w_mp_ins)
    • 6 small files (769 lines of code)
    • 138 very small files (2,958 lines of code)
83% | 0% | 1% | 3% | 11%
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
css100% | 0% | 0% | 0% | 0%
py0% | 0% | 13% | 36% | 49%
graphql0% | 0% | 100% | 0% | 0%
html0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
tsx0% | 0% | 0% | 0% | 100%
java0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
4-serverless-cicd-stack/static-service-cicd91% | 0% | 0% | 1% | 7%
5-serverless-xray-stack/spring-petclinic-static92% | 0% | 0% | 0% | 7%
3-serverless-microservice-stack/spring-petclinic-static92% | 0% | 0% | 0% | 7%
6-serverless-graphql-stack/backend0% | 0% | 79% | 0% | 20%
5-serverless-xray-stack/fagate_serverless0% | 0% | 0% | 99% | <1%
4-serverless-cicd-stack/customer-service-cicd0% | 0% | 0% | 42% | 57%
4-serverless-cicd-stack/vet-service-cicd0% | 0% | 0% | 42% | 57%
4-serverless-cicd-stack/visit-service-cicd0% | 0% | 0% | 42% | 57%
3-serverless-microservice-stack/serverless0% | 0% | 0% | 99% | <1%
6-serverless-graphql-stack0% | 0% | 0% | 0% | 100%
5-serverless-xray-stack/custom-resource-code0% | 0% | 0% | 0% | 100%
3-serverless-microservice-stack/custom-resource-code0% | 0% | 0% | 0% | 100%
2-ecs-microservice-stack/ecs_microservice0% | 0% | 0% | 0% | 100%
2-ecs-microservice-stack/work0% | 0% | 0% | 0% | 100%
1-ecs-monolith-stack/ecs_monolith0% | 0% | 0% | 0% | 100%
5-serverless-xray-stack0% | 0% | 0% | 0% | 100%
1-ecs-monolith-stack0% | 0% | 0% | 0% | 100%
3-serverless-microservice-stack0% | 0% | 0% | 0% | 100%
2-ecs-microservice-stack0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
petclinic.css
in 4-serverless-cicd-stack/static-service-cicd/static-resource/css
7072 -
petclinic.css
in 5-serverless-xray-stack/spring-petclinic-static/css
7072 -
petclinic.css
in 3-serverless-microservice-stack/spring-petclinic-static/css
7072 -
app_sync_cdk_stack.py
in 6-serverless-graphql-stack/backend/app_sync_cdk
281 1
petclinic.graphql
in 6-serverless-graphql-stack/backend/definition
203 -
fagate_serverless_stack.py
in 5-serverless-xray-stack/fagate_serverless
169 1
serverless_cicd_stack.py
in 4-serverless-cicd-stack/customer-service-cicd/serverless_cicd
127 1
serverless_cicd_stack.py
in 4-serverless-cicd-stack/vet-service-cicd/serverless_cicd
127 1
serverless_cicd_stack.py
in 4-serverless-cicd-stack/visit-service-cicd/serverless_cicd
127 1
serverless_stack.py
in 3-serverless-microservice-stack/serverless
115 2
static_cicd_stack.py
in 4-serverless-cicd-stack/static-service-cicd/static_cicd
104 2
init.py
in 5-serverless-xray-stack/custom-resource-code
99 4
init.py
in 3-serverless-microservice-stack/custom-resource-code
99 4
index.py
in 6-serverless-graphql-stack/backend/custom-resource-code
94 4
ecs_microservice_stack.py
in 2-ecs-microservice-stack/ecs_microservice
94 1
serverless_lambda_stack.py
in 4-serverless-cicd-stack/customer-service-cicd/serverless_lambda
68 1
serverless_lambda_stack.py
in 4-serverless-cicd-stack/vet-service-cicd/serverless_lambda
68 1
serverless_lambda_stack.py
in 4-serverless-cicd-stack/visit-service-cicd/serverless_lambda
68 1
owner-details.template.html
in 4-serverless-cicd-stack/static-service-cicd/static-resource/scripts/owner-details
64 -
owner-details.template.html
in 5-serverless-xray-stack/spring-petclinic-static/scripts/owner-details
64 -
owner-details.template.html
in 3-serverless-microservice-stack/spring-petclinic-static/scripts/owner-details
64 -
ecs_monolith_stack.py
in 1-ecs-monolith-stack/ecs_monolith
61 1
AddPetPage.tsx
in 6-serverless-graphql-stack
54 -
pet-form.controller.js
in 4-serverless-cicd-stack/static-service-cicd/static-resource/scripts/pet-form
48 2
pet-form.controller.js
in 5-serverless-xray-stack/spring-petclinic-static/scripts/pet-form
48 2
pet-form.controller.js
in 3-serverless-microservice-stack/spring-petclinic-static/scripts/pet-form
48 2
index.html
in 4-serverless-cicd-stack/static-service-cicd/static-resource
46 -
index.html
in 5-serverless-xray-stack/spring-petclinic-static
46 -
index.html
in 3-serverless-microservice-stack/spring-petclinic-static
46 -
Footer.tsx
in 6-serverless-graphql-stack
45 -
UpdatePetPage.tsx
in 6-serverless-graphql-stack
43 -
DateInput.tsx
in 6-serverless-graphql-stack
42 -
index.py
in 4-serverless-cicd-stack/customer-service-cicd/custom-resource-code
38 4
index.py
in 4-serverless-cicd-stack/vet-service-cicd/custom-resource-code
38 4
index.py
in 4-serverless-cicd-stack/visit-service-cicd/custom-resource-code
38 4
pet-form.template.html
in 4-serverless-cicd-stack/static-service-cicd/static-resource/scripts/pet-form
38 -
pet-form.template.html
in 5-serverless-xray-stack/spring-petclinic-static/scripts/pet-form
38 -
pet-form.template.html
in 3-serverless-microservice-stack/spring-petclinic-static/scripts/pet-form
38 -
nav.html
in 4-serverless-cicd-stack/static-service-cicd/static-resource/scripts/fragments
36 -
nav.html
in 5-serverless-xray-stack/spring-petclinic-static/scripts/fragments
36 -
nav.html
in 3-serverless-microservice-stack/spring-petclinic-static/scripts/fragments
36 -
owner-form.template.html
in 4-serverless-cicd-stack/static-service-cicd/static-resource/scripts/owner-form
31 -
owner-form.template.html
in 5-serverless-xray-stack/spring-petclinic-static/scripts/owner-form
31 -
owner-form.template.html
in 3-serverless-microservice-stack/spring-petclinic-static/scripts/owner-form
31 -
setup.py
in 4-serverless-cicd-stack/customer-service-cicd
30 -
setup.py
in 4-serverless-cicd-stack/vet-service-cicd
30 -
setup.py
in 4-serverless-cicd-stack/visit-service-cicd
30 -
owner-form.controller.js
in 4-serverless-cicd-stack/static-service-cicd/static-resource/scripts/owner-form
30 2
owner-form.controller.js
in 5-serverless-xray-stack/spring-petclinic-static/scripts/owner-form
30 2
owner-form.controller.js
in 3-serverless-microservice-stack/spring-petclinic-static/scripts/owner-form
30 2
Files With Most Units (Top 20)
File# lines# units
index.py
in 6-serverless-graphql-stack/backend/custom-resource-code
94 4
index.py
in 4-serverless-cicd-stack/customer-service-cicd/custom-resource-code
38 4
index.py
in 4-serverless-cicd-stack/vet-service-cicd/custom-resource-code
38 4
index.py
in 4-serverless-cicd-stack/visit-service-cicd/custom-resource-code
38 4
init.py
in 5-serverless-xray-stack/custom-resource-code
99 4
init.py
in 3-serverless-microservice-stack/custom-resource-code
99 4
visits.controller.js
in 4-serverless-cicd-stack/static-service-cicd/static-resource/scripts/visits
26 3
visits.controller.js
in 5-serverless-xray-stack/spring-petclinic-static/scripts/visits
26 3
visits.controller.js
in 3-serverless-microservice-stack/spring-petclinic-static/scripts/visits
26 3
static_cicd_stack.py
in 4-serverless-cicd-stack/static-service-cicd/static_cicd
104 2
pet-form.controller.js
in 4-serverless-cicd-stack/static-service-cicd/static-resource/scripts/pet-form
48 2
owner-form.controller.js
in 4-serverless-cicd-stack/static-service-cicd/static-resource/scripts/owner-form
30 2
pet-form.controller.js
in 5-serverless-xray-stack/spring-petclinic-static/scripts/pet-form
48 2
owner-form.controller.js
in 5-serverless-xray-stack/spring-petclinic-static/scripts/owner-form
30 2
serverless_stack.py
in 3-serverless-microservice-stack/serverless
115 2
pet-form.controller.js
in 3-serverless-microservice-stack/spring-petclinic-static/scripts/pet-form
48 2
owner-form.controller.js
in 3-serverless-microservice-stack/spring-petclinic-static/scripts/owner-form
30 2
ApiGatewayApplication.java
in 2-ecs-microservice-stack/work/source/code
28 2
createGraphQLClient.tsx
in 6-serverless-graphql-stack
19 1
cfnresponse.py
in 6-serverless-graphql-stack/backend/custom-resource-code
29 1
Files With Long Lines (Top 20)

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

File# lines# units# long lines
petclinic.css
in 4-serverless-cicd-stack/static-service-cicd/static-resource/css
7072 - 25
petclinic.css
in 5-serverless-xray-stack/spring-petclinic-static/css
7072 - 25
petclinic.css
in 3-serverless-microservice-stack/spring-petclinic-static/css
7072 - 25
serverless_stack.py
in 3-serverless-microservice-stack/serverless
115 2 4
static_cicd_stack.py
in 4-serverless-cicd-stack/static-service-cicd/static_cicd
104 2 3
nav.html
in 4-serverless-cicd-stack/static-service-cicd/static-resource/scripts/fragments
36 - 2
nav.html
in 5-serverless-xray-stack/spring-petclinic-static/scripts/fragments
36 - 2
nav.html
in 3-serverless-microservice-stack/spring-petclinic-static/scripts/fragments
36 - 2
DateInput.tsx
in 6-serverless-graphql-stack
42 - 1
UpdatePetPage.tsx
in 6-serverless-graphql-stack
43 - 1
app_sync_cdk_stack.py
in 6-serverless-graphql-stack/backend/app_sync_cdk
281 1 1
app.py
in 4-serverless-cicd-stack/customer-service-cicd
7 - 1
serverless_cicd_stack.py
in 4-serverless-cicd-stack/customer-service-cicd/serverless_cicd
127 1 1
app.py
in 4-serverless-cicd-stack/vet-service-cicd
7 - 1
serverless_cicd_stack.py
in 4-serverless-cicd-stack/vet-service-cicd/serverless_cicd
127 1 1
app.py
in 4-serverless-cicd-stack/visit-service-cicd
7 - 1
serverless_cicd_stack.py
in 4-serverless-cicd-stack/visit-service-cicd/serverless_cicd
127 1 1
visits.controller.js
in 4-serverless-cicd-stack/static-service-cicd/static-resource/scripts/visits
26 3 1
fagate_serverless_stack.py
in 5-serverless-xray-stack/fagate_serverless
169 1 1
visits.controller.js
in 5-serverless-xray-stack/spring-petclinic-static/scripts/visits
26 3 1