aws-samples / aws-saas-factory-eks-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 212 files with 6,765 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 3 medium size files (700 lines of codeclsfd_ftr_w_mp_ins)
    • 9 small files (1,269 lines of code)
    • 200 very small files (4,796 lines of code)
0% | 0% | 10% | 18% | 70%
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
ts0% | 0% | 9% | 22% | 67%
yaml0% | 0% | 29% | 0% | 70%
html0% | 0% | 0% | 18% | 81%
scss0% | 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
scripts/templates0% | 0% | 92% | 0% | 7%
client/web/admin0% | 0% | 14% | 7% | 78%
cdk/root/lib0% | 0% | 41% | 24% | 33%
cdk/eks/lib0% | 0% | 0% | 100% | 0%
client/web/application0% | 0% | 0% | 13% | 86%
services/application/apps0% | 0% | 0% | 32% | 67%
services/shared/apps0% | 0% | 0% | 21% | 78%
services/application/libs0% | 0% | 0% | 0% | 100%
services/shared/libs0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
scripts0% | 0% | 0% | 0% | 100%
scripts/policy0% | 0% | 0% | 0% | 100%
cdk/eks0% | 0% | 0% | 0% | 100%
cdk/root0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
ee-template.yaml
in scripts/templates
252 -
dashboard.component.ts
in client/web/admin/src/app/views/dashboard
226 6
tenant-infra-stack.ts
in cdk/root/lib/tenant-infra
222 5
node-role-policy-doc.ts
in cdk/eks/lib
193 -
dashboard.component.ts
in client/web/application/src/app/views/dashboard
177 8
idp.service.ts
in services/shared/apps/tenant-registration/src/idp-service
164 7
products.service.ts
in services/application/apps/product/src/products
135 6
baseline-infra-stack.ts
in cdk/root/lib/baseline-infra
133 1
eks-stack.ts
in cdk/eks/lib
125 1
orders-detail.component.html
in client/web/application/src/app/orders/orders-detail
117 -
create.component.html
in client/web/admin/src/app/tenants
115 -
orders.service.ts
in services/application/apps/order/src/orders
110 5
registration.service.ts
in services/shared/apps/tenant-registration/src/registration
93 4
default-layout.component.html
in client/web/application/src/app/containers/default-layout
92 -
users.service.ts
in services/application/apps/user/src/users
92 5
app.module.ts
in client/web/application/src/app
90 1
orders-create.component.ts
in client/web/application/src/app/orders/orders-create
89 4
tenants.service.ts
in services/shared/apps/tenant-management/src/tenants
79 6
product-edit.component.html
in client/web/application/src/app/products/product-edit
78 -
user-create.component.html
in client/web/admin/src/app/users/user-create
75 -
user-create.component.html
in client/web/application/src/app/users/user-create
75 -
create.component.ts
in client/web/admin/src/app/tenants
74 6
orders-create.component.html
in client/web/application/src/app/orders/orders-create
72 -
template.yaml
in services/shared/apps/tenant-registration/k8s
72 -
buildspec.yaml
in root
70 -
admin-stack.ts
in cdk/root/lib/admin
69 1
app-routing.module.ts
in client/web/admin/src/app
68 -
template.yaml
in services/shared/apps/tenant-management/k8s
68 -
template.yaml
in services/application/apps/product/k8s
68 -
template.yaml
in services/application/apps/order/k8s
68 -
product-edit.component.ts
in client/web/application/src/app/products/product-edit
66 3
app.module.ts
in client/web/admin/src/app
65 -
orders-detail.component.scss
in client/web/application/src/app/orders/orders-detail
65 -
root-stack.ts
in cdk/root/lib
63 1
template.yaml
in services/application/apps/user/k8s
63 -
app.routing.ts
in client/web/application/src/app
62 -
product-create.component.html
in client/web/application/src/app/products/product-create
59 -
template.yaml
in client/web/admin/k8s
55 -
template.yaml
in client/web/application/k8s
55 -
products.controller.ts
in services/application/apps/product/src/products
53 3
login-info.component.html
in client/web/admin/src/app/views/auth/login-info
49 -
dashboard.component.html
in client/web/admin/src/app/views/dashboard
48 -
dashboard.component.html
in client/web/application/src/app/views/dashboard
48 -
orders-detail.component.ts
in client/web/application/src/app/orders/orders-detail
48 8
login-info.component.html
in client/web/application/src/app/views/auth/login-info
47 -
product-create.component.ts
in client/web/application/src/app/products/product-create
47 4
default-layout.component.html
in client/web/admin/src/app/containers/default-layout
46 -
tenant-list.component.html
in client/web/admin/src/app/tenants
45 -
tenant-routing.module.ts
in client/web/admin/src/app/tenants
45 -
users.controller.ts
in services/application/apps/user/src/users
45 5
Files With Most Units (Top 20)
File# lines# units
dashboard.component.ts
in client/web/application/src/app/views/dashboard
177 8
orders-detail.component.ts
in client/web/application/src/app/orders/orders-detail
48 8
idp.service.ts
in services/shared/apps/tenant-registration/src/idp-service
164 7
dashboard.component.ts
in client/web/admin/src/app/views/dashboard
226 6
create.component.ts
in client/web/admin/src/app/tenants
74 6
user-create.component.ts
in client/web/admin/src/app/users/user-create
42 6
user-create.component.ts
in client/web/application/src/app/users/user-create
42 6
tenants.service.ts
in services/shared/apps/tenant-management/src/tenants
79 6
products.service.ts
in services/application/apps/product/src/products
135 6
tenant-infra-stack.ts
in cdk/root/lib/tenant-infra
222 5
tenants.controller.ts
in services/shared/apps/tenant-management/src/tenants
36 5
orders.service.ts
in services/application/apps/order/src/orders
110 5
users.service.ts
in services/application/apps/user/src/users
92 5
users.controller.ts
in services/application/apps/user/src/users
45 5
product-list.component.ts
in client/web/application/src/app/products/product-list
31 4
product-create.component.ts
in client/web/application/src/app/products/product-create
47 4
orders-create.component.ts
in client/web/application/src/app/orders/orders-create
89 4
registration.service.ts
in services/shared/apps/tenant-registration/src/registration
93 4
jwt.strategy.ts
in services/shared/libs/auth/src
25 4
jwt.strategy.ts
in services/application/libs/auth/src
33 4
Files With Long Lines (Top 9)

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

File# lines# units# long lines
buildspec.yaml
in root
70 - 13
ee-template.yaml
in scripts/templates
252 - 7
default-layout.component.html
in client/web/admin/src/app/containers/default-layout
46 - 5
tenant-infra-stack.ts
in cdk/root/lib/tenant-infra
222 5 1
dashboard.component.html
in client/web/admin/src/app/views/dashboard
48 - 1
dashboard.component.html
in client/web/application/src/app/views/dashboard
48 - 1
idp.service.ts
in services/shared/apps/tenant-registration/src/idp-service
164 7 1
auth.config.ts
in services/shared/libs/auth/src
8 - 1
auth-config.ts
in services/application/libs/auth/src
8 - 1