aws-samples / aws-lambda-sample-applications
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 105 files with 2,788 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (804 lines of code)
    • 0 medium size files (0 lines of codeclsfd_ftr_w_mp_ins)
    • 0 small files (0 lines of code)
    • 104 very small files (1,984 lines of code)
0% | 28% | 0% | 0% | 71%
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
yml0% | 45% | 0% | 0% | 54%
ts0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
CICD-toolchain-for-serverless-applications0% | 100% | 0% | 0% | 0%
nodejs10.x/serverless-api-backend0% | 0% | 0% | 0% | 100%
nodejs14.x/serverless-api-backend0% | 0% | 0% | 0% | 100%
nodejs10.x/file-processing0% | 0% | 0% | 0% | 100%
nodejs14.x/file-processing0% | 0% | 0% | 0% | 100%
nodejs10.x/queue-processing0% | 0% | 0% | 0% | 100%
nodejs14.x/queue-processing0% | 0% | 0% | 0% | 100%
nodejs10.x/notifications-processing0% | 0% | 0% | 0% | 100%
nodejs14.x/notifications-processing0% | 0% | 0% | 0% | 100%
nodejs10.x/scheduled-job0% | 0% | 0% | 0% | 100%
nodejs14.x/scheduled-job0% | 0% | 0% | 0% | 100%
nodejs10.x/author-from-scratch0% | 0% | 0% | 0% | 100%
nodejs14.x/author-from-scratch0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
toolchain.yml
in CICD-toolchain-for-serverless-applications
804 -
template.yml
in nodejs10.x/serverless-api-backend/sam
83 -
template.yml
in nodejs14.x/serverless-api-backend/sam
83 -
cdk-stack.ts
in nodejs10.x/serverless-api-backend/cdk/cdk/lib
51 1
cdk-stack.ts
in nodejs14.x/serverless-api-backend/cdk/cdk/lib
51 1
template.yml
in nodejs10.x/file-processing/sam
38 -
template.yml
in nodejs14.x/file-processing/sam
38 -
cdk-stack.ts
in nodejs10.x/file-processing/cdk/cdk/lib
32 1
cdk-stack.ts
in nodejs14.x/file-processing/cdk/cdk/lib
32 1
template.yml
in nodejs10.x/queue-processing/sam
29 -
template.yml
in nodejs10.x/notifications-processing/sam
29 -
template.yml
in nodejs14.x/queue-processing/sam
29 -
template.yml
in nodejs14.x/notifications-processing/sam
29 -
template.yml
in nodejs10.x/scheduled-job/sam
27 -
template.yml
in nodejs14.x/scheduled-job/sam
27 -
cdk-stack.ts
in nodejs10.x/scheduled-job/cdk/cdk/lib
26 1
cdk-stack.ts
in nodejs14.x/scheduled-job/cdk/cdk/lib
26 1
buildspec.yml
in nodejs10.x/scheduled-job/cdk
25 -
buildspec.yml
in nodejs10.x/file-processing/cdk
25 -
buildspec.yml
in nodejs10.x/author-from-scratch/cdk
25 -
buildspec.yml
in nodejs10.x/serverless-api-backend/cdk
25 -
buildspec.yml
in nodejs10.x/queue-processing/cdk
25 -
cdk-stack.ts
in nodejs10.x/queue-processing/cdk/cdk/lib
25 1
buildspec.yml
in nodejs10.x/notifications-processing/cdk
25 -
buildspec.yml
in nodejs14.x/scheduled-job/cdk
25 -
buildspec.yml
in nodejs14.x/file-processing/cdk
25 -
buildspec.yml
in nodejs14.x/author-from-scratch/cdk
25 -
buildspec.yml
in nodejs14.x/serverless-api-backend/cdk
25 -
buildspec.yml
in nodejs14.x/queue-processing/cdk
25 -
cdk-stack.ts
in nodejs14.x/queue-processing/cdk/cdk/lib
25 1
buildspec.yml
in nodejs14.x/notifications-processing/cdk
25 -
cdk-stack.ts
in nodejs10.x/notifications-processing/cdk/cdk/lib
24 1
cdk-stack.ts
in nodejs14.x/notifications-processing/cdk/cdk/lib
24 1
template.yml
in nodejs10.x/author-from-scratch/sam
22 -
put-item.js
in nodejs10.x/serverless-api-backend/sam/src/handlers
22 -
get-by-id.js
in nodejs10.x/serverless-api-backend/sam/src/handlers
22 -
put-item.js
in nodejs10.x/serverless-api-backend/cdk/src/handlers
22 -
get-by-id.js
in nodejs10.x/serverless-api-backend/cdk/src/handlers
22 -
template.yml
in nodejs14.x/author-from-scratch/sam
22 -
put-item.js
in nodejs14.x/serverless-api-backend/sam/src/handlers
22 -
get-by-id.js
in nodejs14.x/serverless-api-backend/sam/src/handlers
22 -
put-item.js
in nodejs14.x/serverless-api-backend/cdk/src/handlers
22 -
get-by-id.js
in nodejs14.x/serverless-api-backend/cdk/src/handlers
22 -
cdk-stack.ts
in nodejs10.x/author-from-scratch/cdk/cdk/lib
20 1
cdk-stack.ts
in nodejs14.x/author-from-scratch/cdk/cdk/lib
20 1
s3-json-logger.js
in nodejs10.x/file-processing/sam/src/handlers
18 -
s3-json-logger.js
in nodejs10.x/file-processing/cdk/src/handlers
18 -
get-all-items.js
in nodejs10.x/serverless-api-backend/sam/src/handlers
18 -
get-all-items.js
in nodejs10.x/serverless-api-backend/cdk/src/handlers
18 -
s3-json-logger.js
in nodejs14.x/file-processing/sam/src/handlers
18 -
Files With Most Units (Top 20)
File# lines# units
permissions-boundary-aspect.ts
in nodejs10.x/scheduled-job/cdk/cdk/lib
14 2
permissions-boundary-aspect.ts
in nodejs10.x/file-processing/cdk/cdk/lib
14 2
permissions-boundary-aspect.ts
in nodejs10.x/author-from-scratch/cdk/cdk/lib
14 2
permissions-boundary-aspect.ts
in nodejs10.x/serverless-api-backend/cdk/cdk/lib
14 2
permissions-boundary-aspect.ts
in nodejs10.x/queue-processing/cdk/cdk/lib
14 2
permissions-boundary-aspect.ts
in nodejs10.x/notifications-processing/cdk/cdk/lib
14 2
permissions-boundary-aspect.ts
in nodejs14.x/scheduled-job/cdk/cdk/lib
14 2
permissions-boundary-aspect.ts
in nodejs14.x/file-processing/cdk/cdk/lib
14 2
permissions-boundary-aspect.ts
in nodejs14.x/author-from-scratch/cdk/cdk/lib
14 2
permissions-boundary-aspect.ts
in nodejs14.x/serverless-api-backend/cdk/cdk/lib
14 2
permissions-boundary-aspect.ts
in nodejs14.x/queue-processing/cdk/cdk/lib
14 2
permissions-boundary-aspect.ts
in nodejs14.x/notifications-processing/cdk/cdk/lib
14 2
cdk-stack.ts
in nodejs10.x/scheduled-job/cdk/cdk/lib
26 1
cdk-stack.ts
in nodejs10.x/file-processing/cdk/cdk/lib
32 1
cdk-stack.ts
in nodejs10.x/author-from-scratch/cdk/cdk/lib
20 1
cdk-stack.ts
in nodejs10.x/serverless-api-backend/cdk/cdk/lib
51 1
cdk-stack.ts
in nodejs10.x/queue-processing/cdk/cdk/lib
25 1
cdk-stack.ts
in nodejs10.x/notifications-processing/cdk/cdk/lib
24 1
cdk-stack.ts
in nodejs14.x/scheduled-job/cdk/cdk/lib
26 1
cdk-stack.ts
in nodejs14.x/file-processing/cdk/cdk/lib
32 1
Files With Long Lines (Top 13)

There are 13 files with lines longer than 120 characters. In total, there are 16 long lines.

File# lines# units# long lines
toolchain.yml
in CICD-toolchain-for-serverless-applications
804 - 4
template.yml
in nodejs10.x/scheduled-job/sam
27 - 1
template.yml
in nodejs10.x/file-processing/sam
38 - 1
template.yml
in nodejs10.x/author-from-scratch/sam
22 - 1
template.yml
in nodejs10.x/serverless-api-backend/sam
83 - 1
template.yml
in nodejs10.x/queue-processing/sam
29 - 1
template.yml
in nodejs10.x/notifications-processing/sam
29 - 1
template.yml
in nodejs14.x/scheduled-job/sam
27 - 1
template.yml
in nodejs14.x/file-processing/sam
38 - 1
template.yml
in nodejs14.x/author-from-scratch/sam
22 - 1
template.yml
in nodejs14.x/serverless-api-backend/sam
83 - 1
template.yml
in nodejs14.x/queue-processing/sam
29 - 1
template.yml
in nodejs14.x/notifications-processing/sam
29 - 1