aws-samples / aws-cdk-examples-proserve
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 29 files with 2,495 lines of code.
    • 1 very long files (1,255 lines of code)
    • 0 long files (0 lines of code)
    • 0 medium size files (0 lines of codeclsfd_ftr_w_mp_ins)
    • 4 small files (510 lines of code)
    • 24 very small files (730 lines of code)
50% | 0% | 0% | 20% | 29%
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
yml100% | 0% | 0% | 0% | 0%
ts0% | 0% | 0% | 75% | 25%
py0% | 0% | 0% | 0% | 100%
ps10% | 0% | 0% | 0% | 100%
yaml0% | 0% | 0% | 0% | 100%
go0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
iis-smbshare-sqlserver/typescript99% | 0% | 0% | 0% | <1%
iis-smbshare-sqlserver/typescript/lib0% | 0% | 0% | 63% | 36%
python/elasticache/config0% | 0% | 0% | 0% | 100%
typescript/api-swagger-lambda/swagger0% | 0% | 0% | 0% | 100%
python/api-swagger-lambda/swagger0% | 0% | 0% | 0% | 100%
hello-world/go0% | 0% | 0% | 0% | 100%
python/elasticache0% | 0% | 0% | 0% | 100%
typescript/api-swagger-lambda0% | 0% | 0% | 0% | 100%
python/api-swagger-lambda0% | 0% | 0% | 0% | 100%
typescript/api-swagger-lambda/lambda0% | 0% | 0% | 0% | 100%
python/api-swagger-lambda/lambda0% | 0% | 0% | 0% | 100%
Longest Files (Top 29)
File# lines# units
template.yml
in iis-smbshare-sqlserver/typescript
1255 -
windows-autoscaling-stack.ts
in iis-smbshare-sqlserver/typescript/lib/constructs
158 1
sql-stack.ts
in iis-smbshare-sqlserver/typescript/lib/constructs
126 -
cdk-iis-smbshare-fileshare-sqlserver.ts
in iis-smbshare-sqlserver/typescript/lib
120 1
ad-fsx-smbshare-stack.ts
in iis-smbshare-sqlserver/typescript/lib/constructs
106 1
alb-stack.ts
in iis-smbshare-sqlserver/typescript/lib/constructs
67 2
swagger.yaml
in typescript/api-swagger-lambda/swagger
64 -
swagger.yaml
in python/api-swagger-lambda/swagger
64 -
config_util.py
in python/elasticache/config
61 23
bastion-stack.ts
in iis-smbshare-sqlserver/typescript/lib/constructs
58 1
config.py
in python/elasticache/config
52 -
hello-world.go
in hello-world/go
51 3
8-create-webapp-set-apppool.ps1
in iis-smbshare-sqlserver/typescript/lib/scripts
47 -
setup.py
in python/elasticache
33 -
index.ts
in typescript/api-swagger-lambda
32 1
app.py
in python/api-swagger-lambda
31 1
1-setup-website.ps1
in iis-smbshare-sqlserver/typescript/lib/scripts
30 -
6-create-add-AD-user.ps1
in iis-smbshare-sqlserver/typescript/lib/scripts
22 -
7-import-certificate-from-s3.ps1
in iis-smbshare-sqlserver/typescript/lib/scripts
20 -
default.py
in python/elasticache/config
19 -
9-install-configure-cloudwatch-agent.ps1
in iis-smbshare-sqlserver/typescript/lib/scripts
13 -
3-add-machine-to-domain-map-network-drive.ps1
in iis-smbshare-sqlserver/typescript/lib/scripts
13 -
index.ts
in typescript/api-swagger-lambda/lambda
9 -
index.py
in python/api-swagger-lambda/lambda
9 1
app.py
in python/elasticache
9 -
jest.config.js
in iis-smbshare-sqlserver/typescript
8 -
90-install-website-from-buildoutput.ps1
in iis-smbshare-sqlserver/typescript/lib/scripts
7 -
2-install-softwares.ps1
in iis-smbshare-sqlserver/typescript/lib/scripts
7 -
tag-interface.ts
in iis-smbshare-sqlserver/typescript/lib
4 -
Files With Most Units (Top 10)
File# lines# units
config_util.py
in python/elasticache/config
61 23
hello-world.go
in hello-world/go
51 3
alb-stack.ts
in iis-smbshare-sqlserver/typescript/lib/constructs
67 2
index.ts
in typescript/api-swagger-lambda
32 1
app.py
in python/api-swagger-lambda
31 1
index.py
in python/api-swagger-lambda/lambda
9 1
windows-autoscaling-stack.ts
in iis-smbshare-sqlserver/typescript/lib/constructs
158 1
ad-fsx-smbshare-stack.ts
in iis-smbshare-sqlserver/typescript/lib/constructs
106 1
bastion-stack.ts
in iis-smbshare-sqlserver/typescript/lib/constructs
58 1
cdk-iis-smbshare-fileshare-sqlserver.ts
in iis-smbshare-sqlserver/typescript/lib
120 1
Files With Long Lines (Top 9)

There are 9 files with lines longer than 120 characters. In total, there are 53 long lines.

File# lines# units# long lines
template.yml
in iis-smbshare-sqlserver/typescript
1255 - 27
windows-autoscaling-stack.ts
in iis-smbshare-sqlserver/typescript/lib/constructs
158 1 14
8-create-webapp-set-apppool.ps1
in iis-smbshare-sqlserver/typescript/lib/scripts
47 - 4
2-install-softwares.ps1
in iis-smbshare-sqlserver/typescript/lib/scripts
7 - 2
3-add-machine-to-domain-map-network-drive.ps1
in iis-smbshare-sqlserver/typescript/lib/scripts
13 - 2
ad-fsx-smbshare-stack.ts
in iis-smbshare-sqlserver/typescript/lib/constructs
106 1 1
cdk-iis-smbshare-fileshare-sqlserver.ts
in iis-smbshare-sqlserver/typescript/lib
120 1 1
9-install-configure-cloudwatch-agent.ps1
in iis-smbshare-sqlserver/typescript/lib/scripts
13 - 1
6-create-add-AD-user.ps1
in iis-smbshare-sqlserver/typescript/lib/scripts
22 - 1