aws-ia / terraform-aws-globalnetwork
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 17 files with 5,415 lines of code.
    • 1 very long files (2,094 lines of code)
    • 3 long files (1,972 lines of code)
    • 2 medium size files (803 lines of codeclsfd_ftr_w_mp_ins)
    • 1 small files (179 lines of code)
    • 10 very small files (367 lines of code)
38% | 36% | 14% | 3% | 6%
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
tf43% | 29% | 16% | 3% | 7%
tfvars0% | 100% | 0% | 0% | 0%
py0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ROOT64% | 21% | 9% | 0% | 3%
deploy0% | 95% | 0% | 0% | 4%
create_transit_gateway0% | 0% | 69% | 26% | 3%
peer_transit_gateways0% | 0% | 0% | 0% | 100%
setup_workspace0% | 0% | 0% | 0% | 100%
Longest Files (Top 17)
File# lines# units
main.tf
in root
2094 -
variables.tf
in deploy
708 -
variables.tf
in root
708 -
terraform.tfvars
in deploy
556 -
variables.tf
in create_transit_gateway
479 -
outputs.tf
in root
324 -
main.tf
in create_transit_gateway
179 -
provider.tf
in root
92 -
variables.tf
in peer_transit_gateways
66 -
main.tf
in deploy
60 -
workspace.tf
in setup_workspace
42 -
variables.tf
in setup_workspace
29 -
outputs.tf
in create_transit_gateway
27 -
main.tf
in peer_transit_gateways
21 -
lambda_function.py
in root
19 1
versions.tf
in root
8 -
outputs.tf
in peer_transit_gateways
3 -
Files With Most Units (Top 1)
File# lines# units
lambda_function.py
in root
19 1
Files With Long Lines (Top 7)

There are 7 files with lines longer than 120 characters. In total, there are 360 long lines.

File# lines# units# long lines
main.tf
in root
2094 - 162
variables.tf
in create_transit_gateway
479 - 129
variables.tf
in deploy
708 - 20
variables.tf
in root
708 - 20
main.tf
in create_transit_gateway
179 - 15
terraform.tfvars
in deploy
556 - 13
lambda_function.py
in root
19 1 1