aws-samples / aws-secure-environment-accelerator
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 668 files with 86,163 lines of code.
    • 4 very long files (28,832 lines of code)
    • 10 long files (6,559 lines of code)
    • 62 medium size files (18,680 lines of codeclsfd_ftr_w_mp_ins)
    • 88 small files (12,027 lines of code)
    • 504 very small files (20,065 lines of code)
33% | 7% | 21% | 13% | 23%
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
yaml99% | 0% | 0% | 0% | <1%
ts13% | 7% | 29% | 19% | 30%
py0% | 94% | 0% | 0% | 5%
tsx0% | 18% | 29% | 21% | 29%
yml0% | 0% | 80% | 0% | 19%
psm10% | 0% | 100% | 0% | 0%
hbs0% | 0% | 0% | 54% | 45%
js0% | 0% | 0% | 0% | 100%
ps10% | 0% | 0% | 0% | 100%
scss0% | 0% | 0% | 0% | 100%
css0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ROOT99% | 0% | 0% | 0% | <1%
src/lib24% | 6% | 17% | 16% | 36%
src/core10% | 6% | 42% | 21% | 19%
reference-artifacts/Custom-Scripts0% | 89% | 0% | 0% | 10%
src/deployments0% | 6% | 40% | 22% | 29%
src/ui0% | 17% | 31% | 20% | 30%
src/installer0% | 73% | 0% | 0% | 26%
reference-artifacts/scripts0% | 0% | 56% | 0% | 43%
reference-artifacts/config-rules0% | 0% | 0% | 0% | 100%
reference-artifacts/ssm-documents0% | 0% | 0% | 0% | 100%
deployment/cdk-solution-helper0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
pnpm-lock.yaml
in root
21231 -
en.ts
in src/lib/config-i18n/src
3411 -
fr.ts
in src/lib/config-i18n/src
3150 -
initial-setup.ts
in src/core/cdk/src
1040 11
config.v2.ts
in src/lib/config/src
928 -
aws-sea-cleanup.py
in reference-artifacts/Custom-Scripts/SEA-uninstall
834 33
config.ts
in src/lib/config/src
804 72
vpc.ts
in src/deployments/cdk/src/common
661 6
ou-validation.ts
in src/core/runtime/src
614 10
update.py
in reference-artifacts/Custom-Scripts/Update-Scripts/v1.3.8_to_v1.5.0
584 2
index.ts
in src/installer/cdk/src
569 2
step-1.ts
in src/deployments/cdk/src/deployments/alb
526 16
organizational-unit-table.tsx
in src/ui/src/pages/wizards/components
525 5
account-table.tsx
in src/ui/src/pages/wizards/components
514 5
get-baseline-step.ts
in src/core/runtime/src
493 10
phase-1.ts
in src/deployments/cdk/src/apps
474 1
network-outputs.ts
in src/core/runtime/src/save-outputs-to-ssm
452 5
operations-cdk-bucket.yml
in src/core/cdk/src/assets
449 -
create.ts
in src/deployments/cdk/src/deployments/config
420 6
step-2.ts
in src/deployments/cdk/src/deployments/opensearch-siem
417 4
validate.ts
in src/lib/common-config/src/compare
414 19
move-account-organization.ts
in src/deployments/runtime/src/ou-validation-events
403 7
cidr-pool-table.tsx
in src/ui/src/pages/wizards/components
399 1
vpc-table.tsx
in src/ui/src/pages/wizards/components
395 5
step-1.ts
in src/deployments/cdk/src/deployments/defaults
391 6
phase-2.ts
in src/deployments/cdk/src/apps
385 2
get-or-create-config.ts
in src/core/runtime/src
375 5
step-4.ts
in src/deployments/cdk/src/deployments/firewall/cluster
362 8
create.ts
in src/core/runtime/src/create-config-recorder
361 7
step-2.ts
in src/deployments/cdk/src/deployments/central-endpoints
360 6
load-organizations-config.ts
in src/core/runtime/src/configuration
358 2
index.ts
in src/lib/custom-resources/cdk-resource-cleanup/runtime/src
348 25
iam-utils.ts
in src/core/runtime/src/save-outputs-to-ssm
345 6
step-3.ts
in src/deployments/cdk/src/deployments/firewall/cluster
335 5
select-security-services.tsx
in src/ui/src/pages/wizards/steps
327 4
configure-global-settings.tsx
in src/ui/src/pages/wizards/steps
324 9
alb-target-record-monitor.ts
in src/deployments/runtime/src/alb-to-alb-target
319 1
index.ts
in src/lib/common/src/scp
317 9
index.ts
in src/lib/common-config/src
315 6
index.ts
in src/lib/custom-resources/cdk-opensearch-siem-configure/runtime/src
310 9
ad-users-groups.ts
in src/deployments/cdk/src/common
306 3
policy-changes.ts
in src/deployments/runtime/src/ou-validation-events
306 3
AWSQuickStart.psm1
in reference-artifacts/scripts
292 -
translations.ts
in src/lib/config-i18n/src
290 7
toolkit.ts
in src/deployments/cdk
289 13
organizations.ts
in src/lib/common/src/aws
287 33
elb-outputs.ts
in src/core/runtime/src/save-outputs-to-ssm
286 5
common.ts
in src/lib/common/src/util
284 21
index.ts
in src/lib/custom-resources/cdk-associate-hosted-zones/runtime/src
284 8
iam-assets.ts
in src/deployments/cdk/src/common
280 2
Files With Most Units (Top 20)
File# lines# units
config.ts
in src/lib/config/src
804 72
aws-sea-cleanup.py
in reference-artifacts/Custom-Scripts/SEA-uninstall
834 33
organizations.ts
in src/lib/common/src/aws
287 33
index.ts
in src/lib/custom-resources/cdk-resource-cleanup/runtime/src
348 25
common.ts
in src/lib/common/src/util
284 21
validate.ts
in src/lib/common-config/src/compare
414 19
cloudformation.ts
in src/lib/common/src/aws
153 17
configservice.ts
in src/lib/common/src/aws
97 16
index.ts
in src/lib/custom-resources/cdk-s3-copy-files/runtime/src
187 16
index.ts
in src/lib/custom-resources/cdk-guardduty-admin-setup/runtime/src
258 16
step-1.ts
in src/deployments/cdk/src/deployments/alb
526 16
common.ts
in src/lib/common-config/src/compare
224 14
ec2.ts
in src/lib/common/src/aws
112 14
index.ts
in src/lib/custom-resources/cdk-ec2-keypair/runtime/src
124 14
index.ts
in src/lib/custom-resources/cdk-iam-create-role/runtime/src
147 14
index.ts
in src/lib/custom-resources/logs-add-subscription-filter/runtime/src
187 14
index.ts
in src/lib/custom-resources/cdk-s3-update-logarchive-bucket-policy/runtime/src
192 14
index.ts
in src/lib/custom-resources/cdk-cloud-trail/runtime/src
217 13
content.tsx
in src/ui/src/pages/wizards
97 13
toolkit.ts
in src/deployments/cdk
289 13
Files With Long Lines (Top 20)

There are 61 files with lines longer than 120 characters. In total, there are 2474 long lines.

File# lines# units# long lines
pnpm-lock.yaml
in root
21231 - 2100
en.ts
in src/lib/config-i18n/src
3411 - 196
update.py
in reference-artifacts/Custom-Scripts/Update-Scripts/v1.3.8_to_v1.5.0
584 2 26
aws-sea-cleanup.py
in reference-artifacts/Custom-Scripts/SEA-uninstall
834 33 24
fr.ts
in src/lib/config-i18n/src
3150 - 23
ad-users-groups.ts
in src/deployments/cdk/src/common
306 3 13
vpc-table.tsx
in src/ui/src/pages/wizards/components
395 5 10
AWSQuickStart.psm1
in reference-artifacts/scripts
292 - 5
account-table.tsx
in src/ui/src/pages/wizards/components
514 5 5
alb-target-record-monitor.ts
in src/deployments/runtime/src/alb-to-alb-target
319 1 4
Initialize-RDGW.ps1
in reference-artifacts/scripts
52 - 3
load-organizations-config.ts
in src/core/runtime/src/configuration
358 2 3
select-guardrails.tsx
in src/ui/src/pages/wizards/steps
88 - 3
organizational-unit-table.tsx
in src/ui/src/pages/wizards/components
525 5 3
cidr-pool-table.tsx
in src/ui/src/pages/wizards/components
399 1 3
Configure-password-policy.ps1
in reference-artifacts/scripts
36 - 2
hbs
header.hbs
in src/lib/docs-gen/src/typedoc-theme/partials
151 - 2
get-baseline-step.ts
in src/core/runtime/src
493 10 2
toolkit.ts
in src/deployments/cdk
289 13 2
account-stacks.ts
in src/deployments/cdk/src/common
157 7 2