aws-solutions / aws-control-tower-customizations
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 46 files with 4,132 lines of code.
    • 0 very long files (0 lines of code)
    • 2 long files (1,325 lines of code)
    • 3 medium size files (790 lines of codeclsfd_ftr_w_mp_ins)
    • 5 small files (748 lines of code)
    • 36 very small files (1,269 lines of code)
0% | 32% | 19% | 18% | 30%
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
py0% | 33% | 20% | 18% | 27%
yaml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
source0% | 62% | 0% | 28% | 8%
source/manifest0% | 41% | 38% | 9% | 9%
source/aws/services0% | 0% | 31% | 26% | 41%
source/utils0% | 0% | 0% | 0% | 100%
source/validation0% | 0% | 0% | 0% | 100%
source/aws/utils0% | 0% | 0% | 0% | 100%
deployment/custom_control_tower_configuration/example-configuration0% | 0% | 0% | 0% | 100%
source/metrics0% | 0% | 0% | 0% | 100%
source/aws0% | 0% | 0% | 0% | 100%
Longest Files (Top 46)
File# lines# units
state_machine_handler.py
in source
806 43
manifest_parser.py
in source/manifest
519 32
cloudformation.py
in source/aws/services
303 16
sm_execution_manager.py
in source/manifest
263 11
cfn_params_handler.py
in source/manifest
224 14
config_deployer.py
in source
198 13
state_machine_router.py
in source
170 5
scp.py
in source/aws/services
131 10
ssm.py
in source/aws/services
126 8
manifest.py
in source/manifest
123 16
organizations.py
in source/aws/services
90 7
kms.py
in source/aws/services
87 8
sm_input_builder.py
in source/manifest
87 12
boto3_session.py
in source/aws/utils
85 3
s3.py
in source/aws/services
80 8
crhelper.py
in source/utils
76 3
manifest-v2.schema.yaml
in source/validation
73 -
state_machine_trigger.py
in source
70 4
manifest.schema.yaml
in source/validation
68 -
sts.py
in source/aws/services
53 6
logger.py
in source/utils
47 11
state_machine.py
in source/aws/services
44 3
manifest.yaml
in deployment/custom_control_tower_configuration/example-configuration
42 -
string_manipulation.py
in source/utils
41 10
solution_metrics.py
in source/metrics
37 3
lifecycle_event_handler.py
in source
36 2
os_util.py
in source/utils
36 2
ec2.py
in source/aws/services
32 3
stage_to_s3.py
in source/manifest
32 4
url_conversion.py
in source/aws/utils
27 3
retry_decorator.py
in source/utils
25 1
code_pipeline.py
in source/aws/services
18 2
parameter_manipulation.py
in source/utils
15 2
get_partition.py
in source/aws/utils
14 1
password_generator.py
in source/utils
12 1
list_comparision.py
in source/utils
11 1
decimal_encoder.py
in source/utils
10 1
datetime_encoder.py
in source/utils
8 1
get_regions.py
in source/aws/utils
4 1
custom_validation.py
in source/validation
3 -
__init__.py
in source/aws
1 -
__init__.py
in source/aws/utils
1 -
__init__.py
in source/aws/services
1 -
__init__.py
in source/manifest
1 -
__init__.py
in source/utils
1 -
__init__.py
in source/metrics
1 -
Files With Most Units (Top 20)
File# lines# units
state_machine_handler.py
in source
806 43
manifest_parser.py
in source/manifest
519 32
cloudformation.py
in source/aws/services
303 16
manifest.py
in source/manifest
123 16
cfn_params_handler.py
in source/manifest
224 14
config_deployer.py
in source
198 13
sm_input_builder.py
in source/manifest
87 12
sm_execution_manager.py
in source/manifest
263 11
logger.py
in source/utils
47 11
scp.py
in source/aws/services
131 10
string_manipulation.py
in source/utils
41 10
kms.py
in source/aws/services
87 8
s3.py
in source/aws/services
80 8
ssm.py
in source/aws/services
126 8
organizations.py
in source/aws/services
90 7
sts.py
in source/aws/services
53 6
state_machine_router.py
in source
170 5
state_machine_trigger.py
in source
70 4
stage_to_s3.py
in source/manifest
32 4
url_conversion.py
in source/aws/utils
27 3
Files With Long Lines (Top 1)

There is only one file with lines longer than 120 characters. In total, there are 6 long lines.

File# lines# units# long lines
manifest_parser.py
in source/manifest
519 32 6