aws-samples / aws-reinvent-trivia-game
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 56 files with 3,588 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 3 medium size files (725 lines of codeclsfd_ftr_w_mp_ins)
    • 10 small files (1,286 lines of code)
    • 43 very small files (1,577 lines of code)
0% | 0% | 20% | 35% | 43%
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
ts0% | 0% | 27% | 49% | 23%
css0% | 0% | 100% | 0% | 0%
yaml0% | 0% | 0% | 71% | 28%
js0% | 0% | 0% | 16% | 83%
yml0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
trivia-backend/infra0% | 0% | 36% | 35% | 28%
static-site/app0% | 0% | 44% | 0% | 55%
pipelines/src0% | 0% | 0% | 64% | 35%
chat-bot/bot0% | 0% | 0% | 100% | 0%
chat-bot0% | 0% | 0% | 84% | 15%
canaries0% | 0% | 0% | 51% | 48%
static-site/cdk0% | 0% | 0% | 0% | 100%
trivia-backend/app0% | 0% | 0% | 0% | 100%
chat-bot/lex-model0% | 0% | 0% | 0% | 100%
trivia-backend0% | 0% | 0% | 0% | 100%
chat-bot/hook0% | 0% | 0% | 0% | 100%
alarms0% | 0% | 0% | 0% | 100%
static-site0% | 0% | 0% | 0% | 100%
trivia-backend/base0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
ecs-service-blue-green.ts
in trivia-backend/infra/cdk
297 1
styles.css
in static-site/app/assets/css
221 -
eks-service.ts
in trivia-backend/infra/cdk
207 2
cfn-containers-pipeline.ts
in pipelines/src/common
156 -
infra-setup.ts
in trivia-backend/infra/codedeploy-blue-green
152 1
api-service-codedeploy-pipeline.ts
in pipelines/src
143 2
bot.js
in chat-bot/bot
143 8
reinvent-trivia.ts
in trivia-backend/infra/cdk/eks/kubernetes-resources
136 1
template.yaml
in chat-bot
127 -
template.yaml
in canaries
113 -
alb-ingress-controller-policy.ts
in trivia-backend/infra/cdk/eks
109 1
cfn-pipeline.ts
in pipelines/src/common
106 -
ecs-task-sets.ts
in trivia-backend/infra/cdk
101 1
produce-config.js
in trivia-backend/infra/codedeploy-blue-green
94 -
static-site-pipeline.ts
in pipelines/src
80 2
canary.js
in canaries
77 -
static-site.ts
in static-site/cdk
76 -
app.js
in static-site/app/js
70 6
convert-model.js
in chat-bot/lex-model
68 -
template.yaml
in trivia-backend/infra/codedeploy-lifecycle-event-hooks
65 -
service.js
in trivia-backend/app
60 3
Card.js
in static-site/app/js
54 5
infrastructure.ts
in static-site/cdk
49 2
api-base-image-pipeline.ts
in pipelines/src
49 -
pre-traffic-hook.js
in trivia-backend/infra/codedeploy-lifecycle-event-hooks
49 1
trivia.js
in trivia-backend/app/routes
49 -
pre-traffic-hook.js
in chat-bot/hook
46 -
buildspec.yml
in trivia-backend/infra/codedeploy-blue-green
46 -
ecs-service.ts
in trivia-backend/infra/cdk
46 -
pageNotFound.js
in static-site/app/js
43 5
root-domain-site.ts
in static-site/cdk
40 -
artillery-trivia-api.yml
in trivia-backend
37 -
buildspec.yml
in trivia-backend/infra/cdk
35 -
buildspec-blue-green.yml
in trivia-backend/infra/cdk
35 -
template.yaml
in alarms
32 -
buildspec.yml
in canaries
28 -
request.js
in static-site/app/js
28 -
webpack-errorpage.config.js
in static-site/app
27 -
buildspec.yml
in static-site
25 -
buildspec.yml
in chat-bot
23 -
buildspec.yml
in trivia-backend/infra/codedeploy-lifecycle-event-hooks
21 -
chat-bot-pipeline.ts
in pipelines/src
19 -
api-service-codedeploy-lifecycle-event-hooks-pipeline.ts
in pipelines/src
18 1
canaries-pipeline.ts
in pipelines/src
17 1
healthcheck.js
in trivia-backend/app
17 -
buildspec.yml
in trivia-backend/base
17 -
Headers.js
in static-site/app/js
16 1
Footer.js
in static-site/app/js
15 -
api-service-blue-green-pipeline.ts
in pipelines/src
15 -
api-service-pipeline.ts
in pipelines/src
15 -
Files With Most Units (Top 18)
File# lines# units
bot.js
in chat-bot/bot
143 8
app.js
in static-site/app/js
70 6
pageNotFound.js
in static-site/app/js
43 5
Card.js
in static-site/app/js
54 5
service.js
in trivia-backend/app
60 3
infrastructure.ts
in static-site/cdk
49 2
api-service-codedeploy-pipeline.ts
in pipelines/src
143 2
static-site-pipeline.ts
in pipelines/src
80 2
eks-service.ts
in trivia-backend/infra/cdk
207 2
Headers.js
in static-site/app/js
16 1
canaries-pipeline.ts
in pipelines/src
17 1
api-service-codedeploy-lifecycle-event-hooks-pipeline.ts
in pipelines/src
18 1
pre-traffic-hook.js
in trivia-backend/infra/codedeploy-lifecycle-event-hooks
49 1
infra-setup.ts
in trivia-backend/infra/codedeploy-blue-green
152 1
ecs-task-sets.ts
in trivia-backend/infra/cdk
101 1
ecs-service-blue-green.ts
in trivia-backend/infra/cdk
297 1
reinvent-trivia.ts
in trivia-backend/infra/cdk/eks/kubernetes-resources
136 1
alb-ingress-controller-policy.ts
in trivia-backend/infra/cdk/eks
109 1
Files With Long Lines (Top 19)

There are 19 files with lines longer than 120 characters. In total, there are 28 long lines.

File# lines# units# long lines
produce-config.js
in trivia-backend/infra/codedeploy-blue-green
94 - 4
api-service-codedeploy-pipeline.ts
in pipelines/src
143 2 3
Card.js
in static-site/app/js
54 5 2
api-service-blue-green-pipeline.ts
in pipelines/src
15 - 2
buildspec.yml
in chat-bot
23 - 2
ecs-service-blue-green.ts
in trivia-backend/infra/cdk
297 1 2
template.yaml
in canaries
113 - 1
app.js
in static-site/app/js
70 6 1
Footer.js
in static-site/app/js
15 - 1
Headers.js
in static-site/app/js
16 1 1
cfn-containers-pipeline.ts
in pipelines/src/common
156 - 1
api-service-pipeline.ts
in pipelines/src
15 - 1
template.yaml
in chat-bot
127 - 1
bot.js
in chat-bot/bot
143 8 1
buildspec.yml
in trivia-backend/infra/codedeploy-lifecycle-event-hooks
21 - 1
infra-setup.ts
in trivia-backend/infra/codedeploy-blue-green
152 1 1
ecs-task-sets.ts
in trivia-backend/infra/cdk
101 1 1
eks-service.ts
in trivia-backend/infra/cdk
207 2 1
service.js
in trivia-backend/app
60 3 1