aws-cloudformation / aws-cloudformation-samples
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 15 files with 2,246 lines of code.
    • 0 very long files (0 lines of code)
    • 2 long files (1,275 lines of code)
    • 1 medium size files (219 lines of codeclsfd_ftr_w_mp_ins)
    • 3 small files (441 lines of code)
    • 9 very small files (311 lines of code)
0% | 56% | 9% | 19% | 13%
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
yml0% | 73% | 0% | 19% | 7%
py0% | 87% | 0% | 0% | 12%
ts0% | 0% | 63% | 36% | 0%
yaml0% | 0% | 0% | 47% | 52%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
modules/VpcWizard/src0% | 100% | 0% | 0% | 0%
resource-types/awssamples-ec2-importkeypair/python/src/awssamples_ec2_importkeypair0% | 87% | 0% | 0% | 12%
resource-types/typescript-example-website-monitor/src0% | 0% | 63% | 36% | 0%
modules/ApiGatewayCustomDomain0% | 0% | 0% | 100% | 0%
modules/ACMCertNotifyExpiry0% | 0% | 0% | 90% | 9%
resource-types/typescript-example-website-monitor0% | 0% | 0% | 0% | 100%
modules/S3BucketBlog0% | 0% | 0% | 0% | 100%
resource-types/awssamples-ec2-importkeypair/python0% | 0% | 0% | 0% | 100%
Longest Files (Top 15)
File# lines# units
vpc.yml
in modules/VpcWizard/src
682 -
handlers.py
in resource-types/awssamples-ec2-importkeypair/python/src/awssamples_ec2_importkeypair
593 21
handlers.ts
in resource-types/typescript-example-website-monitor/src
219 5
apigw-hello-world.yml
in modules/ApiGatewayCustomDomain
177 -
base.yaml
in modules/ACMCertNotifyExpiry
139 -
models.ts
in resource-types/typescript-example-website-monitor/src
125 3
models.py
in resource-types/awssamples-ec2-importkeypair/python/src/awssamples_ec2_importkeypair
84 4
firehose.yaml
in modules/S3BucketBlog
77 -
resource-role.yaml
in resource-types/awssamples-ec2-importkeypair/python
34 -
example.yml
in resource-types/typescript-example-website-monitor
31 -
resource-role.yaml
in resource-types/typescript-example-website-monitor
30 -
template.yml
in resource-types/typescript-example-website-monitor
20 -
template.yml
in resource-types/awssamples-ec2-importkeypair/python
20 -
example-usage.yaml
in modules/ACMCertNotifyExpiry
14 -
__init__.py
in resource-types/awssamples-ec2-importkeypair/python/src/awssamples_ec2_importkeypair
1 -
Files With Most Units (Top 4)
File# lines# units
handlers.py
in resource-types/awssamples-ec2-importkeypair/python/src/awssamples_ec2_importkeypair
593 21
handlers.ts
in resource-types/typescript-example-website-monitor/src
219 5
models.py
in resource-types/awssamples-ec2-importkeypair/python/src/awssamples_ec2_importkeypair
84 4
models.ts
in resource-types/typescript-example-website-monitor/src
125 3
Files With Long Lines (Top 5)

There are 5 files with lines longer than 120 characters. In total, there are 15 long lines.

File# lines# units# long lines
vpc.yml
in modules/VpcWizard/src
682 - 10
handlers.ts
in resource-types/typescript-example-website-monitor/src
219 5 2
example-usage.yaml
in modules/ACMCertNotifyExpiry
14 - 1
base.yaml
in modules/ACMCertNotifyExpiry
139 - 1
apigw-hello-world.yml
in modules/ApiGatewayCustomDomain
177 - 1