aws-quickstart / quickstart-git2s3
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 149 units with 1,284 lines of code in units (52.7% of code).
    • 1 very long units (162 lines of code)
    • 1 long units (69 lines of code)
    • 13 medium size units (361 lines of code)
    • 19 small units (261 lines of code)
    • 115 very small units (431 lines of code)
12% | 5% | 28% | 20% | 33%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py12% | 5% | 28% | 20% | 33%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
functions/source/GitPullS313% | 5% | 21% | 22% | 36%
functions/source/CreateSSHKey0% | 0% | 100% | 0% | 0%
functions/source/DeleteBucketContents0% | 0% | 100% | 0% | 0%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def lambda_handler()
in functions/source/GitPullS3/lambda_function.py
162 44 2
def _ip_int_from_string()
in functions/source/GitPullS3/ipaddress.py
69 19 2
def __init__()
in functions/source/GitPullS3/ipaddress.py
37 6 3
def __init__()
in functions/source/GitPullS3/ipaddress.py
37 12 3
def lambda_handler()
in functions/source/CreateSSHKey/lambda_function.py
34 2 2
def address_exclude()
in functions/source/GitPullS3/ipaddress.py
32 7 2
def lambda_handler()
in functions/source/DeleteBucketContents/lambda_function.py
29 13 2
def collapse_addresses()
in functions/source/GitPullS3/ipaddress.py
28 16 1
def summarize_address_range()
in functions/source/GitPullS3/ipaddress.py
26 9 2
def _compress_hextets()
in functions/source/GitPullS3/ipaddress.py
25 8 2
def send()
in functions/source/DeleteBucketContents/cfnresponse.py
23 3 6
def send()
in functions/source/CreateSSHKey/cfnresponse.py
23 3 6
def subnets()
in functions/source/GitPullS3/ipaddress.py
23 8 3
def __init__()
in functions/source/GitPullS3/ipaddress.py
22 4 2
def __init__()
in functions/source/GitPullS3/ipaddress.py
22 4 2
def _collapse_addresses_internal()
in functions/source/GitPullS3/ipaddress.py
19 7 1
def supernet()
in functions/source/GitPullS3/ipaddress.py
18 6 3
def ip_address()
in functions/source/GitPullS3/ipaddress.py
16 4 1
def ip_network()
in functions/source/GitPullS3/ipaddress.py
16 4 2
def _parse_octet()
in functions/source/GitPullS3/ipaddress.py
16 7 2