aws-samples / aws-control-tower-terraform-modules
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 27 files with 2,924 lines of code.
    • 1 very long files (1,576 lines of code)
    • 0 long files (0 lines of code)
    • 2 medium size files (512 lines of codeclsfd_ftr_w_mp_ins)
    • 1 small files (191 lines of code)
    • 23 very small files (645 lines of code)
53% | 0% | 17% | 6% | 22%
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
tf55% | 0% | 18% | 6% | 19%
tfvars0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
modules/config100% | 0% | 0% | 0% | 0%
modules/network0% | 0% | 98% | 0% | 1%
accounts/sandbox0% | 0% | 87% | 0% | 12%
modules/prod0% | 0% | 0% | 100% | 0%
accounts/security0% | 0% | 0% | 0% | 100%
accounts/prod0% | 0% | 0% | 0% | 100%
accounts/network0% | 0% | 0% | 0% | 100%
accounts/ct-master0% | 0% | 0% | 0% | 100%
accounts/log-archive0% | 0% | 0% | 0% | 100%
accounts/audit0% | 0% | 0% | 0% | 100%
Longest Files (Top 27)
File# lines# units
main.tf
in modules/config
1576 -
main.tf
in modules/network
297 -
main.tf
in accounts/sandbox
215 -
main.tf
in modules/prod
191 -
main.tf
in accounts/network
76 -
main.tf
in accounts/security
75 -
variables.tf
in accounts/security
67 -
main.tf
in accounts/prod
64 -
main.tf
in accounts/ct-master
56 -
main.tf
in accounts/log-archive
50 -
main.tf
in accounts/audit
50 -
variables.tf
in accounts/prod
41 -
variables.tf
in accounts/network
27 -
terraform.tfvars
in accounts/sandbox
20 -
terraform.tfvars
in accounts/security
19 -
variables.tf
in accounts/sandbox
11 -
prod1.tfvars
in accounts/prod
11 -
Prod3.tfvars
in accounts/prod
11 -
prod2.tfvars
in accounts/prod
11 -
terraform.tfvars
in accounts/network
11 -
terraform.tfvars
in accounts/ct-master
7 -
terraform.tfvars
in accounts/log-archive
7 -
terraform.tfvars
in accounts/audit
7 -
outputs.tf
in modules/network
6 -
variables.tf
in accounts/ct-master
6 -
variables.tf
in accounts/log-archive
6 -
variables.tf
in accounts/audit
6 -
Files With Most Units (Top 0)
File# lines# units
Files With Long Lines (Top 3)

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

File# lines# units# long lines
main.tf
in modules/config
1576 - 3
variables.tf
in accounts/security
67 - 1
variables.tf
in accounts/prod
41 - 1