aws-quickstart / connect-integration-here-location-suite
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 272 lines of code in units (33.0% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 8 medium size units (215 lines of code)
    • 4 small units (57 lines of code)
    • 0 very small units (0 lines of code)
0% | 0% | 79% | 20% | 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% | 0% | 79% | 20% | 0%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
functions/source/here-integration-routing-test0% | 0% | 100% | 0% | 0%
functions/source/here-integration-geocoder-test0% | 0% | 100% | 0% | 0%
functions/source/here-integration-places-test0% | 0% | 100% | 0% | 0%
functions/source/here-integration-places0% | 0% | 70% | 29% | 0%
functions/source/here-integration-geocoder0% | 0% | 71% | 28% | 0%
functions/source/here-integration-routing0% | 0% | 0% | 100% | 0%
Alternative Visuals
Longest Units
Top 12 longest units
Unit# linesMcCabe index# params
def getPlaces()
in functions/source/here-integration-places/places-query.py
36 14 4
def handler()
in functions/source/here-integration-routing-test/main.py
28 5 2
def geocode()
in functions/source/here-integration-geocoder/geocoder-query.py
27 4 3
def handler()
in functions/source/here-integration-geocoder-test/main.py
26 5 2
def handler()
in functions/source/here-integration-places-test/main.py
26 5 2
def send()
in functions/source/here-integration-routing-test/cfnresponse.py
24 3 5
def send()
in functions/source/here-integration-geocoder-test/cfnresponse.py
24 3 5
def send()
in functions/source/here-integration-places-test/cfnresponse.py
24 3 5
def getRoute()
in functions/source/here-integration-routing/routing-query.py
19 3 1
def lambda_handler()
in functions/source/here-integration-places/places-query.py
15 4 2
def lambda_handler()
in functions/source/here-integration-routing/routing-query.py
12 2 2
def lambda_handler()
in functions/source/here-integration-geocoder/geocoder-query.py
11 2 2