aws-samples / aws-ecs-devops-using-aws-cdk
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 24 files with 1,542 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 1 medium size files (230 lines of codeclsfd_ftr_w_mp_ins)
    • 3 small files (396 lines of code)
    • 20 very small files (916 lines of code)
0% | 0% | 14% | 25% | 59%
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% | 16% | 28% | 55%
py0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
lib/template/pattern0% | 0% | 72% | 0% | 27%
infra/ecs-service/construct0% | 0% | 0% | 70% | 29%
lib/template0% | 0% | 0% | 91% | 8%
infra/ecs-service0% | 0% | 0% | 0% | 100%
lib/template/stack0% | 0% | 0% | 0% | 100%
lib/template/common0% | 0% | 0% | 0% | 100%
codes/sample-backend-fastapi/app0% | 0% | 0% | 0% | 100%
lib/template/construct0% | 0% | 0% | 0% | 100%
codes/sample-frontend-flask/app0% | 0% | 0% | 0% | 100%
infra/common-infra0% | 0% | 0% | 0% | 100%
infra0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 24)
File# lines# units
cloudwatch-pattern.ts
in lib/template/pattern
230 17
ecs-infra-const.ts
in infra/ecs-service/construct
143 4
ecs-cicd-const.ts
in infra/ecs-service/construct
139 2
app-context.ts
in lib/template
114 10
ecs-monitor-const.ts
in infra/ecs-service/construct
96 4
lambda-pattern.ts
in lib/template/pattern
88 4
ecs-alb-service-stack.ts
in infra/ecs-service
74 2
base-stack.ts
in lib/template/stack/base
64 4
common-helper.ts
in lib/template/common
62 7
base-construct.ts
in lib/template/construct/base
62 3
ecs-base-stack.ts
in infra/ecs-service
57 7
vpc-infra-stack.ts
in infra/common-infra
53 4
vpc-base-stack.ts
in lib/template/stack/vpc
52 3
ecs-common-service-stack.ts
in infra/ecs-service
49 2
main.py
in codes/sample-frontend-flask/app
43 2
main.py
in codes/sample-backend-fastapi/app
37 3
common-guardian.ts
in lib/template/common
37 1
cfn-include-stack.ts
in lib/template/stack/cfn
34 2
ddb_handler.py
in codes/sample-backend-fastapi/app
30 3
ecs-repo-const.ts
in infra/ecs-service/construct
24 1
index.html
in codes/sample-frontend-flask/app/templates
18 -
app-main.ts
in infra
18 -
app-config.ts
in lib/template
11 -
jest.config.js
in root
7 -
Files With Most Units (Top 20)
File# lines# units
cloudwatch-pattern.ts
in lib/template/pattern
230 17
app-context.ts
in lib/template
114 10
common-helper.ts
in lib/template/common
62 7
ecs-base-stack.ts
in infra/ecs-service
57 7
lambda-pattern.ts
in lib/template/pattern
88 4
base-stack.ts
in lib/template/stack/base
64 4
vpc-infra-stack.ts
in infra/common-infra
53 4
ecs-monitor-const.ts
in infra/ecs-service/construct
96 4
ecs-infra-const.ts
in infra/ecs-service/construct
143 4
ddb_handler.py
in codes/sample-backend-fastapi/app
30 3
main.py
in codes/sample-backend-fastapi/app
37 3
base-construct.ts
in lib/template/construct/base
62 3
vpc-base-stack.ts
in lib/template/stack/vpc
52 3
main.py
in codes/sample-frontend-flask/app
43 2
cfn-include-stack.ts
in lib/template/stack/cfn
34 2
ecs-common-service-stack.ts
in infra/ecs-service
49 2
ecs-alb-service-stack.ts
in infra/ecs-service
74 2
ecs-cicd-const.ts
in infra/ecs-service/construct
139 2
common-guardian.ts
in lib/template/common
37 1
ecs-repo-const.ts
in infra/ecs-service/construct
24 1
Files With Long Lines (Top 8)

There are 8 files with lines longer than 120 characters. In total, there are 27 long lines.

File# lines# units# long lines
cloudwatch-pattern.ts
in lib/template/pattern
230 17 13
ecs-monitor-const.ts
in infra/ecs-service/construct
96 4 5
index.html
in codes/sample-frontend-flask/app/templates
18 - 2
ecs-common-service-stack.ts
in infra/ecs-service
49 2 2
ecs-infra-const.ts
in infra/ecs-service/construct
143 4 2
lambda-pattern.ts
in lib/template/pattern
88 4 1
app-context.ts
in lib/template
114 10 1
ecs-cicd-const.ts
in infra/ecs-service/construct
139 2 1