aws-samples / amazon-location-service-geotrack-vuejs
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 80 units with 1,043 lines of code in units (23.0% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 18 medium size units (580 lines of code)
    • 17 small units (266 lines of code)
    • 45 very small units (197 lines of code)
0% | 0% | 55% | 25% | 18%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
js0% | 0% | 57% | 20% | 22%
py0% | 0% | 49% | 46% | 3%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/graphql0% | 0% | 50% | 25% | 24%
src/store0% | 0% | 73% | 7% | 19%
lambdas/simulation0% | 0% | 54% | 41% | 4%
lambdas/eventbridge0% | 0% | 69% | 26% | 4%
lambdas/iot0% | 0% | 0% | 100% | 0%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
export function saveGeoFence()
in src/store/general/actions.js
39 3 4
onCreateDeliveryInfo()
in src/graphql/subscriptions.js
38 1 1
onUpdateDeliveryInfo()
in src/graphql/subscriptions.js
38 1 1
onDeleteDeliveryInfo()
in src/graphql/subscriptions.js
38 1 1
createDeliveryInfo()
in src/graphql/mutations.js
38 1 2
updateDeliveryInfo()
in src/graphql/mutations.js
38 1 2
deleteDeliveryInfo()
in src/graphql/mutations.js
38 1 2
getDeliveryInfo()
in src/graphql/queries.js
38 1 1
export function fetchGeoFenceItems()
in src/store/general/actions.js
37 7 2
export function calculateRoute()
in src/store/general/actions.js
36 2 4
def handler()
in lambdas/eventbridge/index.py
34 3 2
listDeliveryInfos()
in src/graphql/queries.js
33 1 3
def publish_location()
in lambdas/simulation/pushVehiclePosition/index.py
28 6 3
export async function fetchDevicesIdsInRoute()
in src/store/general/actions.js
23 3 1
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 handler()
in lambdas/simulation/pushVehiclePosition/index.py
21 6 2
def handler()
in lambdas/simulation/launchDeliveryFleet/index.py
21 3 2
listDeliveryAgents()
in src/graphql/queries.js
20 1 3
def handler()
in lambdas/iot/index.py
19 1 2