aws-samples / cloudfront-authorization-at-edge
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 37 files with 4,297 lines of code.
    • 1 very long files (1,114 lines of code)
    • 1 long files (514 lines of code)
    • 3 medium size files (883 lines of codeclsfd_ftr_w_mp_ins)
    • 4 small files (614 lines of code)
    • 28 very small files (1,172 lines of code)
25% | 11% | 20% | 14% | 27%
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
yaml82% | 0% | 0% | 9% | 7%
ts0% | 18% | 31% | 17% | 32%
html0% | 0% | 0% | 0% | 100%
css0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ROOT100% | 0% | 0% | 0% | 0%
src/lambda-edge/shared0% | 80% | 0% | 0% | 19%
src/cfn-custom-resources/us-east-1-lambda-stack0% | 0% | 84% | 0% | 15%
src/lambda-edge/parse-auth0% | 0% | 100% | 0% | 0%
src/cfn-custom-resources/user-pool-client0% | 0% | 84% | 0% | 15%
src/lambda-edge/check-auth0% | 0% | 0% | 100% | 0%
src/lambda-edge/refresh-auth0% | 0% | 0% | 100% | 0%
example-serverless-app-reuse0% | 0% | 0% | 50% | 49%
src/cfn-custom-resources/react-app0% | 0% | 0% | 52% | 47%
src/cfn-custom-resources/lambda-code-update0% | 0% | 0% | 0% | 100%
src/cfn-custom-resources/static-site0% | 0% | 0% | 0% | 100%
src/cfn-custom-resources/user-pool-domain0% | 0% | 0% | 0% | 100%
src/cfn-custom-resources/client-secret-retrieval0% | 0% | 0% | 0% | 100%
src/cfn-custom-resources/generate-secret0% | 0% | 0% | 0% | 100%
src/lambda-edge/sign-out0% | 0% | 0% | 0% | 100%
src/lambda-edge/rewrite-trailing-slash0% | 0% | 0% | 0% | 100%
src/lambda-edge/http-headers0% | 0% | 0% | 0% | 100%
Longest Files (Top 37)
File# lines# units
template.yaml
in root
1114 -
shared.ts
in src/lambda-edge/shared
514 26
index.ts
in src/cfn-custom-resources/us-east-1-lambda-stack
409 6
index.ts
in src/lambda-edge/parse-auth
259 2
index.ts
in src/cfn-custom-resources/user-pool-client
215 12
index.ts
in src/lambda-edge/check-auth
184 4
index.ts
in src/lambda-edge/refresh-auth
169 2
reuse-auth-only.yaml
in example-serverless-app-reuse
135 -
index.ts
in src/cfn-custom-resources/react-app
126 5
index.ts
in src/cfn-custom-resources/lambda-code-update
93 2
reuse-with-existing-user-pool.yaml
in example-serverless-app-reuse
81 -
index.ts
in src/lambda-edge/sign-out
76 1
template.html
in src/lambda-edge/shared/error-page
71 -
index.ts
in src/cfn-custom-resources/user-pool-domain
65 2
index.ts
in src/cfn-custom-resources/static-site
63 3
index.ts
in src/cfn-custom-resources/client-secret-retrieval
62 2
https.ts
in src/lambda-edge/shared
54 2
App.css
in src/cfn-custom-resources/react-app/react-app/src
52 -
index.ts
in src/cfn-custom-resources/generate-secret
45 1
cfn-response.ts
in src/cfn-custom-resources/user-pool-domain
40 1
cfn-response.ts
in src/cfn-custom-resources/client-secret-retrieval
40 1
cfn-response.ts
in src/cfn-custom-resources/static-site
40 1
cfn-response.ts
in src/cfn-custom-resources/generate-secret
40 1
cfn-response.ts
in src/cfn-custom-resources/lambda-code-update
40 1
cfn-response.ts
in src/cfn-custom-resources/react-app
40 1
cfn-response.ts
in src/cfn-custom-resources/user-pool-client
40 1
cfn-response.ts
in src/cfn-custom-resources/us-east-1-lambda-stack
40 1
https.ts
in src/cfn-custom-resources/lambda-code-update
37 2
https.ts
in src/cfn-custom-resources/us-east-1-lambda-stack
37 2
reuse-complete-cdk.ts
in example-serverless-app-reuse
25 -
reuse-complete.yaml
in example-serverless-app-reuse
25 -
index.html
in src/cfn-custom-resources/react-app/react-app/public
14 -
index.ts
in src/lambda-edge/rewrite-trailing-slash
13 -
index.ts
in src/lambda-edge/http-headers
11 -
styles.css
in src/cfn-custom-resources/static-site/pages
11 -
index.css
in src/cfn-custom-resources/react-app/react-app/src
9 -
index.html
in src/cfn-custom-resources/static-site/pages
8 -
Files With Most Units (Top 20)
File# lines# units
shared.ts
in src/lambda-edge/shared
514 26
index.ts
in src/cfn-custom-resources/user-pool-client
215 12
index.ts
in src/cfn-custom-resources/us-east-1-lambda-stack
409 6
index.ts
in src/cfn-custom-resources/react-app
126 5
index.ts
in src/lambda-edge/check-auth
184 4
index.ts
in src/cfn-custom-resources/static-site
63 3
index.ts
in src/lambda-edge/refresh-auth
169 2
index.ts
in src/lambda-edge/parse-auth
259 2
https.ts
in src/lambda-edge/shared
54 2
index.ts
in src/cfn-custom-resources/user-pool-domain
65 2
index.ts
in src/cfn-custom-resources/client-secret-retrieval
62 2
index.ts
in src/cfn-custom-resources/lambda-code-update
93 2
https.ts
in src/cfn-custom-resources/lambda-code-update
37 2
https.ts
in src/cfn-custom-resources/us-east-1-lambda-stack
37 2
index.ts
in src/lambda-edge/sign-out
76 1
cfn-response.ts
in src/cfn-custom-resources/user-pool-domain
40 1
cfn-response.ts
in src/cfn-custom-resources/client-secret-retrieval
40 1
cfn-response.ts
in src/cfn-custom-resources/static-site
40 1
index.ts
in src/cfn-custom-resources/generate-secret
45 1
cfn-response.ts
in src/cfn-custom-resources/generate-secret
40 1
Files With Long Lines (Top 5)

There are 5 files with lines longer than 120 characters. In total, there are 35 long lines.

File# lines# units# long lines
template.yaml
in root
1114 - 24
reuse-auth-only.yaml
in example-serverless-app-reuse
135 - 6
index.ts
in src/lambda-edge/check-auth
184 4 2
reuse-with-existing-user-pool.yaml
in example-serverless-app-reuse
81 - 2
index.ts
in src/lambda-edge/parse-auth
259 2 1