aws-quickstart / quickstart-tableau-server-healthcare
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 26 units with 531 lines of code in units (10.9% of code).
    • 1 very long units (102 lines of code)
    • 0 long units (0 lines of code)
    • 8 medium size units (224 lines of code)
    • 10 small units (170 lines of code)
    • 7 very small units (35 lines of code)
19% | 0% | 42% | 32% | 6%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py19% | 0% | 42% | 32% | 6%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
functions/source/ACMCert79% | 0% | 20% | 0% | 0%
scripts0% | 0% | 49% | 42% | 8%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def handler()
in functions/source/ACMCert/lambda_function.py
102 29 2
def evaluate_compliance()
in scripts/config_enabled.py
38 7 1
def evaluate_compliance()
in scripts/elb_is_secure.py
32 7 2
def evaluate_compliance()
in scripts/confirm_log_bucket_archival.py
31 11 1
def evaluate_compliance()
in scripts/confirm_log_buckets_nodelete.py
29 13 1
def send()
in functions/source/ACMCert/cfnresponse.py
27 4 6
def evaluate_compliance()
in scripts/cloudtrail_log_bucket.py
25 8 1
def lambda_handler()
in scripts/elb_is_secure.py
21 2 2
def evaluate_compliance()
in scripts/s3_log_bucket.py
21 5 1
def main()
in scripts/sign_cert.py
20 3 0
def lambda_handler()
in scripts/confirm_log_buckets_nodelete.py
18 2 2
def evaluate_compliance()
in scripts/security_group_is_secure.py
18 5 2
def lambda_handler()
in scripts/security_group_is_secure.py
18 2 2
def lambda_handler()
in scripts/config_enabled.py
17 2 2
def lambda_handler()
in scripts/confirm_log_bucket_archival.py
17 2 2
def lambda_handler()
in scripts/s3_log_bucket.py
17 2 2
def lambda_handler()
in scripts/cloudtrail_log_bucket.py
17 2 2
def validate_deny_delete_object()
in scripts/confirm_log_buckets_nodelete.py
14 10 2
def validate_deny_delete_bucket()
in scripts/confirm_log_buckets_nodelete.py
14 10 2
def sort_rules()
in scripts/confirm_log_bucket_archival.py
10 7 1