aws-samples / aws-saas-factory-bootcamp
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 78 files with 11,345 lines of code.
    • 1 very long files (1,635 lines of code)
    • 3 long files (2,351 lines of code)
    • 11 medium size files (3,741 lines of codeclsfd_ftr_w_mp_ins)
    • 13 small files (2,016 lines of code)
    • 50 very small files (1,602 lines of code)
14% | 20% | 32% | 17% | 14%
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
yml31% | 16% | 49% | 2% | 0%
js0% | 28% | 22% | 31% | 17%
html0% | 0% | 0% | 30% | 69%
css0% | 0% | 0% | 0% | 100%
scss0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
resources31% | 16% | 49% | 2% | 0%
source/user-manager0% | 100% | 0% | 0% | 0%
source/web-client0% | 0% | 26% | 10% | 62%
source/shared-modules0% | 0% | 86% | 0% | 13%
Lab3/Part10% | 0% | 0% | 100% | 0%
Lab3/Part40% | 0% | 0% | 100% | 0%
Lab3/Part50% | 0% | 0% | 100% | 0%
Lab2/Part30% | 0% | 0% | 100% | 0%
source/order-manager0% | 0% | 0% | 100% | 0%
Lab2/Part20% | 0% | 0% | 100% | 0%
source/tenant-registration0% | 0% | 0% | 100% | 0%
source/tenant-manager0% | 0% | 0% | 100% | 0%
Lab2/Part10% | 0% | 0% | 100% | 0%
source/product-manager0% | 0% | 0% | 100% | 0%
source/auth-manager0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
api-gateway.yml
in resources
1635 -
cognito-user.js
in source/user-manager
971 27
baseline.yml
in resources
870 -
server.js
in source/user-manager
510 15
user-service.yml
in resources
410 -
Gruntfile.js
in source/web-client
397 5
workshop.yml
in resources
394 -
product-service.yml
in resources
388 -
order-service.yml
in resources
371 -
tenant-service.yml
in resources
367 -
auth-service.yml
in resources
338 -
registration-service.yml
in resources
337 -
token-manager.js
in source/shared-modules/token-manager
320 21
app.js
in source/web-client/app/scripts
215 9
dynamodb-helper.js
in source/shared-modules/dynamodb-helper
204 12
server.js
in Lab3/Part1/product-manager
170 -
server.js
in Lab3/Part4/product-manager
170 -
server.js
in Lab3/Part5/product-manager
170 -
server.js
in Lab2/Part3/product-manager
170 -
server.js
in source/order-manager
167 -
server.js
in Lab2/Part2/product-manager
164 -
server.js
in source/tenant-registration
156 4
server.js
in source/tenant-manager
156 -
server.js
in Lab2/Part1/product-manager
154 -
server.js
in source/product-manager
154 -
web-client.yml
in resources
141 -
404.html
in source/web-client/app
133 -
main.html
in source/web-client/app/views
111 -
config.js
in source/shared-modules/config-helper
85 1
main.css
in source/web-client/app/styles
85 -
server.js
in source/auth-manager
85 4
index.html
in source/web-client/app
77 -
order-edit.js
in source/web-client/app/scripts/controllers
75 3
main.scss
in source/web-client/app/styles
66 -
order-add.js
in source/web-client/app/scripts/controllers
62 3
orders.html
in source/web-client/app/views
51 -
main.js
in source/web-client/app/scripts/controllers
48 9
user-enable.js
in source/web-client/app/scripts/controllers
44 4
product-add.html
in source/web-client/app/views
42 -
register.html
in source/web-client/app/views
40 -
product-edit.js
in source/web-client/app/scripts/controllers
40 2
users.html
in source/web-client/app/views
39 -
confirm.js
in source/web-client/app/scripts/controllers
39 1
tenant-edit.js
in source/web-client/app/scripts/controllers
37 3
login.js
in source/web-client/app/scripts/controllers
37 1
user-edit.js
in source/web-client/app/scripts/controllers
36 2
products.html
in source/web-client/app/views
35 -
tenant-edit.html
in source/web-client/app/views
35 -
product-add.js
in source/web-client/app/scripts/controllers
34 2
tenants.html
in source/web-client/app/views
32 -
Files With Most Units (Top 20)
File# lines# units
cognito-user.js
in source/user-manager
971 27
token-manager.js
in source/shared-modules/token-manager
320 21
server.js
in source/user-manager
510 15
dynamodb-helper.js
in source/shared-modules/dynamodb-helper
204 12
app.js
in source/web-client/app/scripts
215 9
main.js
in source/web-client/app/scripts/controllers
48 9
Gruntfile.js
in source/web-client
397 5
server.js
in source/tenant-registration
156 4
user-enable.js
in source/web-client/app/scripts/controllers
44 4
server.js
in source/auth-manager
85 4
tenant-edit.js
in source/web-client/app/scripts/controllers
37 3
order-edit.js
in source/web-client/app/scripts/controllers
75 3
order-add.js
in source/web-client/app/scripts/controllers
62 3
product-add.js
in source/web-client/app/scripts/controllers
34 2
order-delete.js
in source/web-client/app/scripts/controllers
28 2
product-edit.js
in source/web-client/app/scripts/controllers
40 2
product-delete.js
in source/web-client/app/scripts/controllers
28 2
user-add.js
in source/web-client/app/scripts/controllers
30 2
user-edit.js
in source/web-client/app/scripts/controllers
36 2
user-delete.js
in source/web-client/app/scripts/controllers
28 2
Files With Long Lines (Top 20)

There are 46 files with lines longer than 120 characters. In total, there are 116 long lines.

File# lines# units# long lines
api-gateway.yml
in resources
1635 - 26
baseline.yml
in resources
870 - 10
workshop.yml
in resources
394 - 8
index.html
in source/web-client/app
77 - 7
main.html
in source/web-client/app/views
111 - 6
server.js
in source/user-manager
510 15 5
product-view.html
in source/web-client/app/views
31 - 4
config.js
in source/shared-modules/config-helper
85 1 3
cognito-user.js
in source/user-manager
971 27 3
confirm.html
in source/web-client/app/views
24 - 3
register.html
in source/web-client/app/views
40 - 2
product-add.html
in source/web-client/app/views
42 - 2
tenant-edit.html
in source/web-client/app/views
35 - 2
users.html
in source/web-client/app/views
39 - 2
app.js
in source/web-client/app/scripts
215 9 2
server.js
in Lab3/Part1/product-manager
170 - 1
server.js
in Lab3/Part4/product-manager
170 - 1
server.js
in Lab3/Part5/product-manager
170 - 1
server.js
in Lab2/Part1/product-manager
154 - 1
server.js
in Lab2/Part2/product-manager
164 - 1