aws-solutions / amazon-virtual-andon
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 66 files with 15,207 lines of code.
    • 2 very long files (2,487 lines of code)
    • 5 long files (2,928 lines of code)
    • 19 medium size files (6,965 lines of codeclsfd_ftr_w_mp_ins)
    • 12 small files (1,900 lines of code)
    • 28 very small files (927 lines of code)
16% | 19% | 45% | 12% | 6%
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
tsx24% | 28% | 35% | 7% | 3%
ts0% | 0% | 62% | 28% | 9%
js0% | 0% | 78% | 0% | 21%
graphql0% | 0% | 100% | 0% | 0%
scss0% | 0% | 100% | 0% | 0%
py0% | 0% | 0% | 70% | 29%
html0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
console/src22% | 26% | 40% | 7% | 3%
cdk-infrastructure/lib0% | 0% | 67% | 30% | 1%
external-integrations-handler0% | 0% | 96% | 0% | 3%
solution-helper0% | 0% | 86% | 0% | 13%
appsync-lambda-resolver0% | 0% | 95% | 0% | 4%
glue-job-scripts0% | 0% | 0% | 70% | 29%
ava-issue-handler0% | 0% | 0% | 92% | 7%
solution-helper/lib0% | 0% | 0% | 100% | 0%
solution-utils0% | 0% | 0% | 0% | 100%
appsync-lambda-resolver/lib0% | 0% | 0% | 0% | 100%
cdk-infrastructure/utils0% | 0% | 0% | 0% | 100%
external-integrations-handler/lib0% | 0% | 0% | 0% | 100%
cognito-trigger0% | 0% | 0% | 0% | 100%
console/public0% | 0% | 0% | 0% | 100%
cognito-trigger/lib0% | 0% | 0% | 0% | 100%
cdk-infrastructure0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
Client.tsx
in source/console/src/views
1302 28
AddEditEvent.tsx
in source/console/src/views
1185 47
User.tsx
in source/console/src/views
683 19
PermissionSetting.tsx
in source/console/src/views
611 14
DataTable.tsx
in source/console/src/components
582 17
Observer.tsx
in source/console/src/views
531 20
RootCause.tsx
in source/console/src/views
521 15
Event.tsx
in source/console/src/views
476 11
Device.tsx
in source/console/src/views
449 14
queries.js
in source/console/src/graphql
435 19
Permission.tsx
in source/console/src/views
416 14
Station.tsx
in source/console/src/views
409 13
Process.tsx
in source/console/src/views
407 13
Area.tsx
in source/console/src/views
406 13
appsync-api-construct.ts
in source/cdk-infrastructure/lib/back-end/appsync-api
405 4
data-analysis-construct.ts
in source/cdk-infrastructure/lib/back-end/data-analysis
401 3
Site.tsx
in source/console/src/views
380 13
schema.graphql
in source/cdk-infrastructure/lib/back-end/appsync-api
379 -
front-end-construct.ts
in source/cdk-infrastructure/lib/front-end
357 3
IssuesReport.tsx
in source/console/src/views
343 11
index.ts
in source/external-integrations-handler
327 16
CognitoController.tsx
in source/console/src/util
325 11
index.ts
in source/solution-helper
295 10
style.scss
in source/console/src/assets/css
274 -
index.ts
in source/appsync-lambda-resolver
260 8
mutations.js
in source/console/src/graphql
221 16
amazon-virtual-andon-stack.ts
in source/cdk-infrastructure/lib
185 2
solution-helper-construct.ts
in source/cdk-infrastructure/lib/common-resources/solution-helper
184 4
CustomUtil.tsx
in source/console/src/util
181 15
back-end-construct.ts
in source/cdk-infrastructure/lib/back-end
177 1
Routes.tsx
in source/console/src/components
176 -
etl-data-export.py
in source/glue-job-scripts
166 3
Interfaces.tsx
in source/console/src/components
157 -
GraphQLCommon.tsx
in source/console/src/util
145 22
App.tsx
in source/console/src
144 7
external-integrations-construct.ts
in source/cdk-infrastructure/lib/back-end/external-integrations
144 1
index.ts
in source/ava-issue-handler
140 7
utils.ts
in source/solution-helper/lib
101 -
subscriptions.js
in source/console/src/graphql
96 -
Footer.tsx
in source/console/src/components
85 4
Main.tsx
in source/console/src/views
80 1
index.tsx
in source/console/src
78 -
etl-cleanup.py
in source/glue-job-scripts
68 2
metrics.ts
in source/solution-utils
46 2
utils.ts
in source/appsync-lambda-resolver/lib
46 -
utils.ts
in source/cdk-infrastructure/utils
43 1
logger.ts
in source/solution-utils
41 3
common-resources-construct.ts
in source/cdk-infrastructure/lib/common-resources
40 1
generate-solution-constants.ts
in source/solution-helper
34 2
utils.ts
in source/external-integrations-handler/lib
32 -
Files With Most Units (Top 20)
File# lines# units
AddEditEvent.tsx
in source/console/src/views
1185 47
Client.tsx
in source/console/src/views
1302 28
GraphQLCommon.tsx
in source/console/src/util
145 22
Observer.tsx
in source/console/src/views
531 20
User.tsx
in source/console/src/views
683 19
queries.js
in source/console/src/graphql
435 19
DataTable.tsx
in source/console/src/components
582 17
index.ts
in source/external-integrations-handler
327 16
mutations.js
in source/console/src/graphql
221 16
RootCause.tsx
in source/console/src/views
521 15
CustomUtil.tsx
in source/console/src/util
181 15
Device.tsx
in source/console/src/views
449 14
PermissionSetting.tsx
in source/console/src/views
611 14
Permission.tsx
in source/console/src/views
416 14
Area.tsx
in source/console/src/views
406 13
Site.tsx
in source/console/src/views
380 13
Process.tsx
in source/console/src/views
407 13
Station.tsx
in source/console/src/views
409 13
IssuesReport.tsx
in source/console/src/views
343 11
Event.tsx
in source/console/src/views
476 11
Files With Long Lines (Top 20)

There are 42 files with lines longer than 120 characters. In total, there are 464 long lines.

File# lines# units# long lines
appsync-api-construct.ts
in source/cdk-infrastructure/lib/back-end/appsync-api
405 4 63
AddEditEvent.tsx
in source/console/src/views
1185 47 47
PermissionSetting.tsx
in source/console/src/views
611 14 23
User.tsx
in source/console/src/views
683 19 23
Client.tsx
in source/console/src/views
1302 28 22
DataTable.tsx
in source/console/src/components
582 17 22
schema.graphql
in source/cdk-infrastructure/lib/back-end/appsync-api
379 - 22
index.ts
in source/solution-helper
295 10 15
index.ts
in source/appsync-lambda-resolver
260 8 15
front-end-construct.ts
in source/cdk-infrastructure/lib/front-end
357 3 15
IssuesReport.tsx
in source/console/src/views
343 11 14
RootCause.tsx
in source/console/src/views
521 15 13
Area.tsx
in source/console/src/views
406 13 13
Device.tsx
in source/console/src/views
449 14 12
Site.tsx
in source/console/src/views
380 13 12
Process.tsx
in source/console/src/views
407 13 12
Station.tsx
in source/console/src/views
409 13 12
amazon-virtual-andon-stack.ts
in source/cdk-infrastructure/lib
185 2 12
Observer.tsx
in source/console/src/views
531 20 11
external-integrations-construct.ts
in source/cdk-infrastructure/lib/back-end/external-integrations
144 1 11