awslabs / data-transfer-hub
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 86 files with 10,817 lines of code.
    • 0 very long files (0 lines of code)
    • 3 long files (2,125 lines of code)
    • 13 medium size files (4,109 lines of codeclsfd_ftr_w_mp_ins)
    • 16 small files (2,324 lines of code)
    • 54 very small files (2,259 lines of code)
0% | 19% | 37% | 21% | 20%
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
tsx0% | 33% | 36% | 13% | 16%
ts0% | 0% | 41% | 34% | 24%
scss0% | 0% | 42% | 23% | 34%
js0% | 0% | 41% | 33% | 24%
graphql0% | 0% | 0% | 100% | 0%
py0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
source/portal/src/pages0% | 35% | 44% | 14% | 5%
source/constructs/lib0% | 0% | 83% | 11% | 5%
source/custom-resource0% | 0% | 100% | 0% | 0%
source/portal/src0% | 0% | 30% | 60% | 9%
source/custom-resource/lib0% | 0% | 0% | 100% | 0%
source/constructs/lambda/api0% | 0% | 0% | 82% | 17%
source/portal/src/assets0% | 0% | 0% | 100% | 0%
source/portal/src/common0% | 0% | 0% | 9% | 90%
source/constructs/lambda/cdk0% | 0% | 0% | 100% | 0%
source/schema0% | 0% | 0% | 100% | 0%
source/portal/src/graphql0% | 0% | 0% | 0% | 100%
source/portal/src/store0% | 0% | 0% | 0% | 100%
deployment/cdk-solution-helper0% | 0% | 0% | 0% | 100%
source/constructs/lambda0% | 0% | 0% | 0% | 100%
source/custom-resource/lib/usage-metrics0% | 0% | 0% | 0% | 100%
source/constructs/lambda/custom-resource0% | 0% | 0% | 0% | 100%
source/portal/public0% | 0% | 0% | 0% | 100%
source/constructs0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
TaskList.tsx
in source/portal/src/pages/list
815 3
DetailS3.tsx
in source/portal/src/pages/detail
671 3
StepTwoECR.tsx
in source/portal/src/pages/creation/ecr
639 -
StepThreeS3.tsx
in source/portal/src/pages/creation/s3
476 1
cfn-step-functions.ts
in source/constructs/lib
420 1
DetailECR.tsx
in source/portal/src/pages/detail
394 3
SourceSettings.tsx
in source/portal/src/pages/creation/s3/comps
359 -
api-stack.ts
in source/constructs/lib
350 1
DestSettings.tsx
in source/portal/src/pages/creation/s3/comps
328 -
StepThreeECR.tsx
in source/portal/src/pages/creation/ecr
326 1
Creation.scss
in source/portal/src/pages/creation
318 -
index.js
in source/custom-resource
236 9
StepTwoS3.tsx
in source/portal/src/pages/creation/s3
234 -
EC2Config.tsx
in source/portal/src/pages/creation/s3/comps
233 -
index.scss
in source/portal/src
219 -
portal-stack.ts
in source/constructs/lib
216 3
s3-helper.js
in source/custom-resource/lib
191 10
API.ts
in source/portal/src
185 -
StepOne.tsx
in source/portal/src/pages/creation
176 -
Home.tsx
in source/portal/src/pages/home
165 -
TaskList.scss
in source/portal/src/pages/list
156 -
App.tsx
in source/portal/src
155 -
Home.scss
in source/portal/src/pages/home
148 -
api-task.ts
in source/constructs/lambda/api
144 4
LambdaConfig.tsx
in source/portal/src/pages/creation/s3/comps
140 -
index.ts
in source/portal/src/assets/types
135 -
constructs-stack.ts
in source/constructs/lib
134 2
cfn-task.ts
in source/constructs/lambda/cdk
129 -
DrhCredential.tsx
in source/portal/src/common/comp/form
129 1
schema.graphql
in source/schema
129 -
MoreSettings.tsx
in source/portal/src/pages/creation/s3/comps
106 -
serviceWorker.ts
in source/portal/src
102 4
CredentialInfo.tsx
in source/portal/src/common/info
99 -
Detail.scss
in source/portal/src/pages/detail
98 -
InfoBar.tsx
in source/portal/src/common
96 -
index.js
in deployment/cdk-solution-helper
88 -
Bottom.tsx
in source/portal/src/common
87 -
DrhInput.tsx
in source/portal/src/common/comp/form
73 -
common.ts
in source/constructs/lambda
69 3
Reducer.ts
in source/portal/src/store
68 1
DrhRegion.tsx
in source/portal/src/common/comp/form
67 -
DrhSelect.tsx
in source/portal/src/common/comp/form
67 -
task-cluster.ts
in source/constructs/lib
64 1
Bottom.scss
in source/portal/src/common
63 -
LeftMenu.tsx
in source/portal/src/common
62 -
queries.ts
in source/portal/src/graphql
61 4
LeftMenu.scss
in source/portal/src/common
55 -
TopBar.tsx
in source/portal/src/common
53 -
Store.ts
in source/portal/src/store
52 1
mutations.ts
in source/portal/src/graphql
50 4
Files With Most Units (Top 20)
File# lines# units
s3-helper.js
in source/custom-resource/lib
191 10
index.js
in source/custom-resource
236 9
api-task.ts
in source/constructs/lambda/api
144 4
queries.ts
in source/portal/src/graphql
61 4
mutations.ts
in source/portal/src/graphql
50 4
serviceWorker.ts
in source/portal/src
102 4
portal-stack.ts
in source/constructs/lib
216 3
common.ts
in source/constructs/lambda
69 3
TaskList.tsx
in source/portal/src/pages/list
815 3
DetailS3.tsx
in source/portal/src/pages/detail
671 3
DetailECR.tsx
in source/portal/src/pages/detail
394 3
constructs-stack.ts
in source/constructs/lib
134 2
metrics.common.js
in source/custom-resource/lib/usage-metrics
40 2
cfn-step-functions.ts
in source/constructs/lib
420 1
task-cluster.ts
in source/constructs/lib
64 1
api-stack.ts
in source/constructs/lib
350 1
crete_service_linked_role.py
in source/constructs/lambda/custom-resource
24 1
Reducer.ts
in source/portal/src/store
68 1
Store.ts
in source/portal/src/store
52 1
ProgressBar.tsx
in source/portal/src/common/comp
32 1
Files With Long Lines (Top 7)

There are 7 files with lines longer than 120 characters. In total, there are 21 long lines.

File# lines# units# long lines
index.js
in source/custom-resource
236 9 6
api-stack.ts
in source/constructs/lib
350 1 5
cfn-step-functions.ts
in source/constructs/lib
420 1 4
portal-stack.ts
in source/constructs/lib
216 3 3
constructs-stack.ts
in source/constructs/lib
134 2 1
common.ts
in source/constructs/lambda
69 3 1
s3-helper.js
in source/custom-resource/lib
191 10 1