aws-samples / amazon-ec2-image-builder-samples
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 20 files with 2,065 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 3 medium size files (895 lines of codeclsfd_ftr_w_mp_ins)
    • 4 small files (515 lines of code)
    • 13 very small files (655 lines of code)
0% | 0% | 43% | 24% | 31%
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
yml0% | 0% | 48% | 27% | 23%
yaml0% | 0% | 0% | 0% | 100%
py0% | 0% | 0% | 0% | 100%
rb0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
CloudFormation/Windows/cascading-images-with-dotnet-web-application0% | 0% | 100% | 0% | 0%
CloudFormation/Docker/ubuntu-dotnet-web-application0% | 0% | 100% | 0% | 0%
CloudFormation/Docker/amazon-linux-2-with-helloworld0% | 0% | 0% | 100% | 0%
CloudFormation/Windows/windows-server-2016-with-vscode0% | 0% | 0% | 100% | 0%
CloudFormation/Linux/ubuntu-with-net60% | 0% | 0% | 100% | 0%
CloudFormation/Windows/windows-server-with-latest-ssm-agent0% | 0% | 0% | 100% | 0%
Components/Linux/ansible-playbook-execution-amazon-linux-20% | 0% | 0% | 0% | 100%
lambda/latest_image_tracker0% | 0% | 0% | 0% | 100%
CloudFormation/Linux/ubuntu-2004-with-latest-ssm-agent0% | 0% | 0% | 0% | 100%
CloudFormation/Linux/amazon-linux-2-with-latest-ssm-agent0% | 0% | 0% | 0% | 100%
Components/Windows/configure-wsus-server0% | 0% | 0% | 0% | 100%
Components/Windows/create-local-user0% | 0% | 0% | 0% | 100%
Components/Linux/chef-recipe-execution-linux0% | 0% | 0% | 0% | 100%
Components/Windows/chef-recipe-execution-windows0% | 0% | 0% | 0% | 100%
Longest Files (Top 20)
File# lines# units
windows-dotnet-application-stack.yml
in CloudFormation/Windows/cascading-images-with-dotnet-web-application
452 -
ubuntu-dotnet-web-application-pipeline.yml
in CloudFormation/Docker/ubuntu-dotnet-web-application
234 -
windows-baseline-stack.yml
in CloudFormation/Windows/cascading-images-with-dotnet-web-application
209 -
amazon-linux-2-container-image.yml
in CloudFormation/Docker/amazon-linux-2-with-helloworld
166 -
windows-server-2016-with-vscode.yml
in CloudFormation/Windows/windows-server-2016-with-vscode
136 -
ubuntuserver20-with-.net6.yml
in CloudFormation/Linux/ubuntu-with-net6
110 -
windows-server-with-latest-ssm-agent.yml
in CloudFormation/Windows/windows-server-with-latest-ssm-agent
103 -
ubuntu-2004-with-latest-ssm-agent.yml
in CloudFormation/Linux/ubuntu-2004-with-latest-ssm-agent
96 -
amazon-linux-2-with-latest-ssm-agent.yml
in CloudFormation/Linux/amazon-linux-2-with-latest-ssm-agent
94 -
configure-wsus-server.yaml
in Components/Windows/configure-wsus-server
76 -
create-local-user.yaml
in Components/Windows/create-local-user
62 -
image-builder-lambda-update-ssm.py
in lambda/latest_image_tracker
61 2
component.yml
in Components/Linux/chef-recipe-execution-linux
57 -
cloudformation.yml
in Components/Linux/ansible-playbook-execution-amazon-linux-2
51 -
component.yml
in Components/Windows/chef-recipe-execution-windows
48 -
template.yml
in lambda/latest_image_tracker
44 -
component.yml
in Components/Linux/ansible-playbook-execution-amazon-linux-2
41 -
playbook.yml
in Components/Linux/ansible-playbook-execution-amazon-linux-2
14 -
recipe.rb
in Components/Windows/chef-recipe-execution-windows
7 -
recipe.rb
in Components/Linux/chef-recipe-execution-linux
4 -
Files With Most Units (Top 1)
File# lines# units
image-builder-lambda-update-ssm.py
in lambda/latest_image_tracker
61 2
Files With Long Lines (Top 14)

There are 14 files with lines longer than 120 characters. In total, there are 59 long lines.

File# lines# units# long lines
windows-dotnet-application-stack.yml
in CloudFormation/Windows/cascading-images-with-dotnet-web-application
452 - 17
ubuntu-dotnet-web-application-pipeline.yml
in CloudFormation/Docker/ubuntu-dotnet-web-application
234 - 11
windows-baseline-stack.yml
in CloudFormation/Windows/cascading-images-with-dotnet-web-application
209 - 9
amazon-linux-2-container-image.yml
in CloudFormation/Docker/amazon-linux-2-with-helloworld
166 - 7
ubuntuserver20-with-.net6.yml
in CloudFormation/Linux/ubuntu-with-net6
110 - 3
windows-server-2016-with-vscode.yml
in CloudFormation/Windows/windows-server-2016-with-vscode
136 - 2
windows-server-with-latest-ssm-agent.yml
in CloudFormation/Windows/windows-server-with-latest-ssm-agent
103 - 2
cloudformation.yml
in Components/Linux/ansible-playbook-execution-amazon-linux-2
51 - 2
amazon-linux-2-with-latest-ssm-agent.yml
in CloudFormation/Linux/amazon-linux-2-with-latest-ssm-agent
94 - 1
component.yml
in Components/Linux/ansible-playbook-execution-amazon-linux-2
41 - 1
component.yml
in Components/Linux/chef-recipe-execution-linux
57 - 1
create-local-user.yaml
in Components/Windows/create-local-user
62 - 1
configure-wsus-server.yaml
in Components/Windows/configure-wsus-server
76 - 1
component.yml
in Components/Windows/chef-recipe-execution-windows
48 - 1