awslabs / automated-account-configuration
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 12 units with 384 lines of code in units (73.0% of code).
    • 0 very long units (0 lines of code)
    • 3 long units (191 lines of code)
    • 5 medium size units (163 lines of code)
    • 1 small units (13 lines of code)
    • 3 very small units (17 lines of code)
0% | 49% | 42% | 3% | 4%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 49% | 42% | 3% | 4%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
source0% | 55% | 40% | 3% | 0%
source/python0% | 0% | 59% | 0% | 40%
Alternative Visuals
Longest Units
Top 12 longest units
Unit# linesMcCabe index# params
def lambda_handler()
in source/customer_managed_backup.py
68 5 2
def lambda_handler()
in source/Create_RFC.py
64 10 2
def lambda_handler()
in source/customer_managed_patch.py
59 4 2
def lambda_handler()
in source/Create_SR.py
42 8 2
def lambda_handler()
in source/Check_Status_RFC.py
34 10 2
def process_ct_list()
in source/Main_Orchestrator.py
33 20 3
def lambda_handler()
in source/Main_Orchestrator.py
29 18 2
def get_session_with_arn()
in source/python/get_auth.py
25 4 4
def process_step_function()
in source/Main_Orchestrator.py
13 3 6
def validate_config_input()
in source/python/Utilities.py
10 7 4
def get_session()
in source/python/get_auth.py
5 1 4
def handle_session_name_length()
in source/python/get_auth.py
2 1 1