aws-samples / amazon-location-service-geotrack-vuejs
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 80 units with 1,043 lines of code in units (23.0% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 3 simple units (86 lines of code)
    • 77 very simple units (957 lines of code)
0% | 0% | 0% | 8% | 91%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
py0% | 0% | 0% | 23% | 76%
js0% | 0% | 0% | 4% | 95%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
lambdas/simulation0% | 0% | 0% | 37% | 62%
src/store0% | 0% | 0% | 15% | 84%
src/graphql0% | 0% | 0% | 0% | 100%
lambdas/eventbridge0% | 0% | 0% | 0% | 100%
lambdas/iot0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
export function fetchGeoFenceItems()
in src/store/general/actions.js
37 7 2
def publish_location()
in lambdas/simulation/pushVehiclePosition/index.py
28 6 3
def handler()
in lambdas/simulation/pushVehiclePosition/index.py
21 6 2
export async function getSession()
in src/store/profile/actions.js
18 4 2
export async function fetchDevicesIdsInRoute()
in src/store/general/actions.js
23 3 1
export function saveGeoFence()
in src/store/general/actions.js
39 3 4
def GetSsmParam()
in lambdas/iot/index.py
13 3 2
def GetSsmParam()
in lambdas/simulation/pushVehiclePosition/index.py
13 3 2
def getSsmParam()
in lambdas/simulation/launchDeliveryFleet/index.py
13 3 2
def setProxyResponse()
in lambdas/simulation/launchDeliveryFleet/index.py
16 3 1
def handler()
in lambdas/simulation/launchDeliveryFleet/index.py
21 3 2
def GetSsmParam()
in lambdas/eventbridge/index.py
13 3 2
def handler()
in lambdas/eventbridge/index.py
34 3 2
export function calculateRoute()
in src/store/general/actions.js
36 2 4
export async function fetchDeliveryAgents()
in src/store/general/actions.js
21 2 1
export async function fetchDeliveryInfoList()
in src/store/general/actions.js
21 2 1
def get_random()
in lambdas/simulation/pushVehiclePosition/index.py
6 2 2
export function setDepCoord()
in src/store/general/actions.js
6 1 2
export function setDestCoord()
in src/store/general/actions.js
6 1 2
export function setRouteSteps()
in src/store/general/actions.js
6 1 2