aws-samples / digav-blueprint
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 18 files with 3,659 lines of code.
    • 2 very long files (2,206 lines of code)
    • 0 long files (0 lines of code)
    • 0 medium size files (0 lines of codeclsfd_ftr_w_mp_ins)
    • 9 small files (1,152 lines of code)
    • 7 very small files (301 lines of code)
60% | 0% | 0% | 31% | 8%
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
yaml86% | 0% | 0% | 11% | 2%
ts0% | 0% | 0% | 89% | 10%
js0% | 0% | 0% | 94% | 5%
py0% | 0% | 0% | 40% | 59%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
config-packs86% | 0% | 0% | 11% | 2%
lib0% | 0% | 0% | 89% | 10%
scripts0% | 0% | 0% | 58% | 41%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 18)
File# lines# units
configpack.nist.csf.bestpractices.yaml
in config-packs
1142 -
configpack.hipaa.bestpractices.yaml
in config-packs
1064 -
configpack.ct.detectiveguardrails.yaml
in config-packs
157 -
aws-region-restriction.ts
in lib
149 2
aws-config-packs.ts
in lib
142 2
configpack.iam.bestpractices.yaml
in config-packs
128 -
aws-vpn.ts
in lib
127 1
aws-vpcs.ts
in lib
123 2
aws-servicecontrolpolicy.ts
in lib
115 2
config-enforcepermissionboundary.js
in scripts
110 7
vpn-endpoint-security-resource-handler.py
in scripts
101 5
configpack.s3.bestpractices.yaml
in config-packs
72 -
enableorgscp-customlambdaresource.py
in scripts
68 3
aws-startup-blueprint-stack.ts
in lib
53 1
applyscp-customlambda-resource.py
in scripts
48 3
cfnresponse.py
in scripts
31 1
aws-dns.ts
in lib
22 1
jest.config.js
in root
7 -
Files With Most Units (Top 12)
File# lines# units
config-enforcepermissionboundary.js
in scripts
110 7
vpn-endpoint-security-resource-handler.py
in scripts
101 5
enableorgscp-customlambdaresource.py
in scripts
68 3
applyscp-customlambda-resource.py
in scripts
48 3
aws-config-packs.ts
in lib
142 2
aws-vpcs.ts
in lib
123 2
aws-region-restriction.ts
in lib
149 2
aws-servicecontrolpolicy.ts
in lib
115 2
aws-vpn.ts
in lib
127 1
aws-dns.ts
in lib
22 1
aws-startup-blueprint-stack.ts
in lib
53 1
cfnresponse.py
in scripts
31 1
Files With Long Lines (Top 10)

There are 10 files with lines longer than 120 characters. In total, there are 62 long lines.

File# lines# units# long lines
configpack.ct.detectiveguardrails.yaml
in config-packs
157 - 14
aws-region-restriction.ts
in lib
149 2 12
aws-vpcs.ts
in lib
123 2 10
aws-startup-blueprint-stack.ts
in lib
53 1 5
aws-vpn.ts
in lib
127 1 4
aws-servicecontrolpolicy.ts
in lib
115 2 4
vpn-endpoint-security-resource-handler.py
in scripts
101 5 4
config-enforcepermissionboundary.js
in scripts
110 7 4
aws-config-packs.ts
in lib
142 2 3
configpack.s3.bestpractices.yaml
in config-packs
72 - 2