awslabs / aws-codeseeder
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 67 units with 736 lines of code in units (36.7% of code).
    • 1 very long units (132 lines of code)
    • 0 long units (0 lines of code)
    • 7 medium size units (176 lines of code)
    • 13 small units (190 lines of code)
    • 46 very small units (238 lines of code)
17% | 0% | 23% | 25% | 32%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py17% | 0% | 23% | 25% | 32%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
aws_codeseeder43% | 0% | 14% | 10% | 31%
aws_codeseeder/services0% | 0% | 29% | 35% | 35%
aws_codeseeder/commands0% | 0% | 42% | 45% | 12%
example/my_example0% | 0% | 31% | 21% | 46%
images/code-build-image0% | 0% | 0% | 100% | 0%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def decorator()
in aws_codeseeder/codeseeder.py
132 41 2
def fetch_build_info()
in aws_codeseeder/services/codebuild.py
37 8 1
def deploy_template()
in aws_codeseeder/services/cfn.py
28 5 4
def deploy_modules()
in aws_codeseeder/commands/_module_commands.py
24 8 2
def deploy_test_stack()
in example/my_example/cli.py
22 4 0
def remote_function()
in aws_codeseeder/codeseeder.py
22 1 0
def synth()
in aws_codeseeder/_cfn_seedkit.py
22 4 3
def _create_changeset()
in aws_codeseeder/services/cfn.py
21 4 4
def generate_dir()
in aws_codeseeder/_bundle.py
20 3 3
def list_keys()
in aws_codeseeder/services/s3.py
18 6 1
def wait()
in aws_codeseeder/services/codebuild.py
18 5 1
def _wait_for_changeset()
in aws_codeseeder/services/cfn.py
18 5 2
def remote_hello_world_2()
in example/my_example/cli.py
15 3 1
def deploy_seedkit()
in aws_codeseeder/commands/_seedkit_commands.py
14 2 2
def delete_bucket()
in aws_codeseeder/services/s3.py
13 3 1
def get_stream_name_by_prefix()
in aws_codeseeder/services/cloudwatch.py
13 2 2
def does_stack_exist()
in aws_codeseeder/services/cfn.py
13 6 1
def get_secret()
in images/code-build-image/retrieve_docker_creds.py
12 2 0
def execute()
in aws_codeseeder/__main__.py
12 2 2
def destroy_seedkit()
in aws_codeseeder/commands/_seedkit_commands.py
12 3 1