aws / aws-lambda-runtime-interface-emulator
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 587 units with 5,149 lines of code in units (73.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 6 medium complex units (398 lines of code)
    • 28 simple units (926 lines of code)
    • 553 very simple units (3,825 lines of code)
0% | 0% | 7% | 17% | 74%
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
go0% | 0% | 7% | 17% | 74%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
lambda/rapid0% | 0% | 29% | 34% | 36%
lambda/rapidcore0% | 0% | 7% | 17% | 75%
cmd/aws-lambda-rie0% | 0% | 36% | 15% | 48%
lambda/rapi0% | 0% | 0% | 27% | 72%
lambda/core0% | 0% | 0% | 3% | 96%
lambda/appctx0% | 0% | 0% | 20% | 79%
lambda/telemetry0% | 0% | 0% | 27% | 72%
lambda/logging0% | 0% | 0% | 0% | 100%
lambda/agents0% | 0% | 0% | 0% | 100%
lambda/metering0% | 0% | 0% | 0% | 100%
lambda/runtimecmd0% | 0% | 0% | 0% | 100%
lambda/interop0% | 0% | 0% | 0% | 100%
lambda/extensions0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
func InvokeHandler()
in cmd/aws-lambda-rie/handlers.go
82 18 3
func doInvoke()
in lambda/rapid/start.go
82 16 5
func shutdownAgents()
in lambda/rapid/graceful_shutdown.go
63 16 8
func doInit()
in lambda/rapid/start.go
72 15 3
func()
in lambda/rapidcore/server.go
57 14 1
func()
in lambda/rapidcore/server.go
42 11 1
func()
in lambda/rapi/handler/invocationresponse.go
44 10 1
func Execute()
in lambda/rapidcore/standalone/executeHandler.go
38 10 3
func InvokeHandler()
in lambda/rapidcore/standalone/invokeHandler.go
40 10 3
func handleReset()
in lambda/rapid/start.go
42 10 3
func()
in lambda/rapi/handler/runtimelogs.go
46 9 1
func CustomerEnvironmentVariables()
in lambda/rapidcore/env/customer.go
27 9 0
func handleStart()
in lambda/rapid/start.go
45 9 4
func start()
in lambda/rapid/start.go
30 9 2
func()
in lambda/rapi/handler/agentregister.go
35 8 1
func()
in lambda/rapi/handler/invocationerror.go
49 8 1
func DirectInvokeHandler()
in lambda/rapidcore/standalone/directInvokeHandler.go
25 8 3
func doInitExtensions()
in lambda/rapid/start.go
34 8 2
func handleInvoke()
in lambda/rapid/start.go
45 8 4
func getBootstrap()
in cmd/aws-lambda-rie/main.go
35 8 2