aws-samples / terraform-sample-workshop
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 63 files with 1,346 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 1 medium size files (209 lines of codeclsfd_ftr_w_mp_ins)
    • 2 small files (208 lines of code)
    • 60 very small files (929 lines of code)
0% | 0% | 15% | 15% | 69%
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
tf0% | 0% | 15% | 15% | 69%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
module_1/one_file_tf/simple_nginx_stack0% | 0% | 79% | 0% | 20%
module_2/modularized_tf/modules/providers/aws/vpc0% | 0% | 0% | 67% | 32%
module_3/modularized_tf/base_modules/providers/aws/vpc0% | 0% | 0% | 67% | 32%
module_2/modularized_tf/environments/providers/aws/prd0% | 0% | 0% | 0% | 100%
module_2/modularized_tf/modules/providers/aws/asg0% | 0% | 0% | 0% | 100%
module_3/modularized_tf/base_modules/providers/aws/asg0% | 0% | 0% | 0% | 100%
module_3/modularized_tf/component_modules/nginx-webserver-stack0% | 0% | 0% | 0% | 100%
module_3/modularized_tf/environments/providers/aws/prd0% | 0% | 0% | 0% | 100%
module_2/modularized_tf/modules/providers/aws/elb0% | 0% | 0% | 0% | 100%
module_3/modularized_tf/base_modules/providers/aws/elb0% | 0% | 0% | 0% | 100%
module_2/modularized_tf/modules/providers/aws/security_group0% | 0% | 0% | 0% | 100%
module_3/modularized_tf/base_modules/providers/aws/security_group0% | 0% | 0% | 0% | 100%
module_2/modularized_tf/modules/providers/aws/launch_config0% | 0% | 0% | 0% | 100%
module_3/modularized_tf/base_modules/providers/aws/launch_config0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
main.tf
in module_1/one_file_tf/simple_nginx_stack
209 -
main.tf
in module_2/modularized_tf/modules/providers/aws/vpc
104 -
main.tf
in module_3/modularized_tf/base_modules/providers/aws/vpc
104 -
main.tf
in module_2/modularized_tf/modules/providers/aws/asg
70 -
main.tf
in module_3/modularized_tf/base_modules/providers/aws/asg
70 -
main.tf
in module_2/modularized_tf/environments/providers/aws/prd/applications/nginx-sample-stack
66 -
main.tf
in module_3/modularized_tf/component_modules/nginx-webserver-stack
51 -
vars.tf
in module_1/one_file_tf/simple_nginx_stack
49 -
vars.tf
in module_3/modularized_tf/component_modules/nginx-webserver-stack
37 -
vars.tf
in module_2/modularized_tf/environments/providers/aws/prd/applications/nginx-sample-stack
33 -
vars.tf
in module_3/modularized_tf/environments/providers/aws/prd/applications/nginx-sample-stack
33 -
vars.tf
in module_2/modularized_tf/modules/providers/aws/asg
28 -
vars.tf
in module_3/modularized_tf/base_modules/providers/aws/asg
28 -
vars.tf
in module_2/modularized_tf/modules/providers/aws/vpc
26 -
vars.tf
in module_3/modularized_tf/base_modules/providers/aws/vpc
26 -
output.tf
in module_2/modularized_tf/modules/providers/aws/vpc
24 -
output.tf
in module_3/modularized_tf/base_modules/providers/aws/vpc
24 -
vars.tf
in module_2/modularized_tf/modules/providers/aws/elb
23 -
vars.tf
in module_3/modularized_tf/base_modules/providers/aws/elb
23 -
main.tf
in module_2/modularized_tf/modules/providers/aws/elb
22 -
main.tf
in module_3/modularized_tf/environments/providers/aws/prd/applications/nginx-sample-stack
22 -
main.tf
in module_3/modularized_tf/base_modules/providers/aws/elb
22 -
main.tf
in module_2/modularized_tf/environments/providers/aws/prd/infraestructure/vpc
21 -
main.tf
in module_2/modularized_tf/modules/providers/aws/launch_config
19 -
main.tf
in module_3/modularized_tf/base_modules/providers/aws/launch_config
19 -
vars.tf
in module_2/modularized_tf/modules/providers/aws/launch_config
12 -
vars.tf
in module_3/modularized_tf/base_modules/providers/aws/launch_config
12 -
main.tf
in module_2/modularized_tf/modules/providers/aws/security_group/create_sg
11 -
main.tf
in module_3/modularized_tf/base_modules/providers/aws/security_group/create_sg
11 -
outputs.tf
in module_2/modularized_tf/environments/providers/aws/prd/infraestructure/vpc
9 -
environment.tf
in module_2/modularized_tf/environments/providers/aws/prd
9 -
data.tf
in module_2/modularized_tf/environments/providers/aws/prd/applications/nginx-sample-stack
9 -
environment.tf
in module_3/modularized_tf/environments/providers/aws/prd
9 -
data.tf
in module_3/modularized_tf/environments/providers/aws/prd/applications/nginx-sample-stack
9 -
vars.tf
in module_2/modularized_tf/modules/providers/aws/security_group/create_sg_rule
8 -
main.tf
in module_2/modularized_tf/modules/providers/aws/security_group/create_sg_rule
8 -
vars.tf
in module_3/modularized_tf/base_modules/providers/aws/security_group/create_sg_rule
8 -
main.tf
in module_3/modularized_tf/base_modules/providers/aws/security_group/create_sg_rule
8 -
vars.tf
in module_2/modularized_tf/environments/providers/aws/prd/infraestructure/vpc
6 -
outputs.tf
in module_2/modularized_tf/modules/providers/aws/elb
6 -
outputs.tf
in module_3/modularized_tf/base_modules/providers/aws/elb
6 -
main.tf
in module_2/modularized_tf/modules/providers/aws/security_group/attach_sg_ec2
4 -
main.tf
in module_3/modularized_tf/base_modules/providers/aws/security_group/attach_sg_ec2
4 -
outputs.tf
in module_2/modularized_tf/environments/providers/aws/prd/applications/nginx-sample-stack
3 -
outputs.tf
in module_2/modularized_tf/modules/providers/aws/asg
3 -
outputs.tf
in module_2/modularized_tf/modules/providers/aws/launch_config
3 -
outputs.tf
in module_2/modularized_tf/modules/providers/aws/security_group/create_sg
3 -
outputs.tf
in module_3/modularized_tf/environments/providers/aws/prd/applications/nginx-sample-stack
3 -
outputs.tf
in module_3/modularized_tf/component_modules/nginx-webserver-stack
3 -
outputs.tf
in module_3/modularized_tf/base_modules/providers/aws/asg
3 -
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 3 long lines.

File# lines# units# long lines
main.tf
in module_2/modularized_tf/modules/providers/aws/vpc
104 - 1
main.tf
in module_3/modularized_tf/base_modules/providers/aws/vpc
104 - 1
main.tf
in module_1/one_file_tf/simple_nginx_stack
209 - 1