aws-samples / integrate-amazon-connect-with-smart-on-fhir-backend-services
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 13 units with 251 lines of code in units (73.2% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 6 medium size units (190 lines of code)
    • 2 small units (23 lines of code)
    • 5 very small units (38 lines of code)
0% | 0% | 75% | 9% | 15%
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% | 75% | 9% | 15%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
LambdaFunction0% | 0% | 75% | 9% | 15%
Alternative Visuals
Longest Units
Top 13 longest units
Unit# linesMcCabe index# params
def get_meds()
in LambdaFunction/FHIRClient.py
49 14 2
def get_access_token()
in LambdaFunction/FHIRClient.py
43 2 4
def getMedHelp()
in LambdaFunction/index.py
27 8 1
def getPatientAuth()
in LambdaFunction/index.py
25 4 1
def build_response_card()
in LambdaFunction/index.py
24 3 3
def get_patient()
in LambdaFunction/FHIRClient.py
22 3 2
def elicit_slot()
in LambdaFunction/index.py
12 1 6
def confirm_intent()
in LambdaFunction/index.py
11 1 5
def close()
in LambdaFunction/index.py
10 1 3
def dispatch()
in LambdaFunction/index.py
10 1 1
def delegate()
in LambdaFunction/index.py
8 1 2
def __init__()
in LambdaFunction/FHIRClient.py
5 1 5
def lambda_handler()
in LambdaFunction/index.py
5 1 2