aws-quickstart / connect-integration-ecs-uk-rocketcx
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 5 units with 171 lines of code in units (17.9% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (74 lines of code)
    • 3 medium size units (84 lines of code)
    • 1 small units (13 lines of code)
    • 0 very small units (0 lines of code)
0% | 43% | 49% | 7% | 0%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 43% | 49% | 7% | 0%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
functions/source0% | 43% | 49% | 7% | 0%
Alternative Visuals
Longest Units
Top 5 longest units
Unit# linesMcCabe index# params
def lambda_handler()
in functions/source/search_record.py
74 10 2
def lambda_handler()
in functions/source/get_records.py
35 4 2
def lambda_handler()
in functions/source/get_caller.py
25 6 2
def lambda_handler()
in functions/source/survey_feedback.py
24 2 2
def check_record()
in functions/source/search_record.py
13 4 4