aws-samples / sessions-with-aws-sam
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 107 files with 6,226 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (784 lines of code)
    • 2 medium size files (777 lines of codeclsfd_ftr_w_mp_ins)
    • 12 small files (1,686 lines of code)
    • 92 very small files (2,979 lines of code)
0% | 12% | 12% | 27% | 47%
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
js0% | 44% | 0% | 16% | 38%
yaml0% | 0% | 21% | 26% | 52%
vue0% | 0% | 0% | 63% | 36%
ts0% | 0% | 0% | 69% | 30%
swift0% | 0% | 0% | 0% | 100%
go0% | 0% | 0% | 0% | 100%
cs0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
css0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
s12d0% | 31% | 31% | 23% | 13%
sam-or-cdk0% | 0% | 0% | 71% | 28%
kinesis-firehose0% | 0% | 0% | 73% | 26%
appconfig-lambda-extensions0% | 0% | 0% | 85% | 14%
http-api0% | 0% | 0% | 99% | <1%
cognito0% | 0% | 0% | 90% | 9%
safe-deploy0% | 0% | 0% | 62% | 37%
custom-domains0% | 0% | 0% | 33% | 66%
governance0% | 0% | 0% | 0% | 100%
multi-level-mapping0% | 0% | 0% | 0% | 100%
http-api-direct-integration0% | 0% | 0% | 0% | 100%
eventbridge0% | 0% | 0% | 0% | 100%
lambda-layers0% | 0% | 0% | 0% | 100%
eventbridge-dlq-retry0% | 0% | 0% | 0% | 100%
starter-templates0% | 0% | 0% | 0% | 100%
api-enhanced-observability-variables0% | 0% | 0% | 0% | 100%
step-functions0% | 0% | 0% | 0% | 100%
dotnet-api0% | 0% | 0% | 0% | 100%
swift-custom-runtime0% | 0% | 0% | 0% | 100%
sam-containers-demo-app0% | 0% | 0% | 0% | 100%
http-api-integrations-blog-example0% | 0% | 0% | 0% | 100%
go-al20% | 0% | 0% | 0% | 100%
secrets0% | 0% | 0% | 0% | 100%
SQS0% | 0% | 0% | 0% | 100%
node-webpack-custom-build0% | 0% | 0% | 0% | 100%
http-api-logging0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
tailwind.config.js
in s12d/client
784 1
api.yaml
in s12d/server
405 -
template.yaml
in s12d/server
372 -
template.yaml
in kinesis-firehose
190 -
template.yaml
in sam-or-cdk/sam
189 -
links.js
in s12d/client/src/store
185 16
template.yaml
in appconfig-lambda-extensions
157 -
App.vue
in s12d/client/src
152 -
signedurl-stack.ts
in sam-or-cdk/cdk/lib
149 1
Details.vue
in s12d/client/src/views
120 -
template.yaml
in http-api
115 -
auth.js
in s12d/client/src/store
112 8
template.yaml
in cognito
111 -
template.yaml
in safe-deploy
105 -
template.yaml
in custom-domains/both-declared
101 -
template.yaml
in step-functions
100 -
template.yaml
in governance/5-reusable-setup-full
96 -
template.yaml
in api-enhanced-observability-variables
92 -
template.yaml
in eventbridge-dlq-retry
91 -
generic-by-params.js
in governance/3-custom-rules/src
88 7
template.yaml
in custom-domains/both-implied
87 -
template.yaml
in http-api-direct-integration
86 -
template.yaml
in governance/4-reusable-setup
86 -
Dashboard.vue
in s12d/client/src/views
81 -
Create.vue
in s12d/client/src/views
76 -
template.yaml
in eventbridge
74 -
template.yaml
in governance/3-custom-rules
68 -
template.yaml
in dotnet-api
65 -
template.yaml
in governance/1-initial-setup
64 -
template.yaml
in SQS
62 -
template.yaml
in custom-domains/rest
61 -
template.yaml
in starter-templates/web-app
61 -
template.yaml
in lambda-layers/layers-repo
56 -
template.yaml
in custom-domains/http
54 -
api.yaml
in http-api-direct-integration
54 -
template.yaml
in http-api-integrations-blog-example
53 -
template.yaml
in sam-containers-demo-app
50 -
template.yaml
in multi-level-mapping
50 -
reportingv1.yaml
in multi-level-mapping
47 -
template.yaml
in secrets/create-secrets
46 -
template.yaml
in lambda-layers/demo-app
41 -
dadjokes.yaml
in multi-level-mapping
39 -
admin.yaml
in multi-level-mapping
38 -
template.yaml
in go-al2
37 -
main.go
in go-al2/hello-world
37 2
template.yaml
in http-api-logging
37 -
basepre.js
in safe-deploy/src/hooks
37 -
reportingv2.yaml
in multi-level-mapping
36 -
app.js
in s12d/server/src/analytics
36 -
process.js
in kinesis-firehose/src
35 -
Files With Most Units (Top 8)
File# lines# units
links.js
in s12d/client/src/store
185 16
auth.js
in s12d/client/src/store
112 8
generic-by-params.js
in governance/3-custom-rules/src
88 7
main.go
in go-al2/hello-world
37 2
Function.cs
in dotnet-api/src/SaveUser
34 1
signedurl-stack.ts
in sam-or-cdk/cdk/lib
149 1
app.js
in appconfig-lambda-extensions/src
27 1
tailwind.config.js
in s12d/client
784 1
Files With Long Lines (Top 18)

There are 18 files with lines longer than 120 characters. In total, there are 44 long lines.

File# lines# units# long lines
api.yaml
in s12d/server
405 - 15
Details.vue
in s12d/client/src/views
120 - 5
template.yaml
in appconfig-lambda-extensions
157 - 3
Dashboard.vue
in s12d/client/src/views
81 - 3
template.yaml
in governance/3-custom-rules
68 - 2
template.yaml
in safe-deploy
105 - 2
links.js
in s12d/client/src/store
185 16 2
App.vue
in s12d/client/src
152 - 2
main.swift
in swift-custom-runtime/Sources/SwiftApi
12 - 1
app.js
in cognito/src
11 - 1
Function.cs
in dotnet-api/src/SaveUser
34 1 1
template.yaml
in http-api-logging
37 - 1
signedurl-stack.ts
in sam-or-cdk/cdk/lib
149 1 1
template.yaml
in step-functions
100 - 1
generic-by-params.js
in governance/3-custom-rules/src
88 7 1
app.js
in appconfig-lambda-extensions/src
27 1 1
Create.vue
in s12d/client/src/views
76 - 1
index.html
in s12d/client/public
17 - 1