aws-quickstart / quickstart-iot-device-connectivity
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 2,086 lines of code in units (39.5% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 5 medium complex units (275 lines of code)
    • 6 simple units (621 lines of code)
    • 69 very simple units (1,190 lines of code)
0% | 0% | 13% | 29% | 57%
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% | 20% | 14% | 65%
ts0% | 0% | 0% | 58% | 41%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
iot-onboarding-service/src/cloudrack-lambda-core0% | 0% | 19% | 16% | 64%
iot-onboarding-service/src/main0% | 0% | 51% | 12% | 37%
iot-onboarding-infra/lib0% | 0% | 0% | 100% | 0%
iot-onboarding-code-pipelines/lib0% | 0% | 0% | 0% | 100%
iot-onboarding-service/src/cloudrack-lambda-fn0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
func()
in iot-onboarding-service/src/cloudrack-lambda-core/db/db.go
58 12 1
func HandleRequest()
in iot-onboarding-service/src/main/main.go
51 12 2
func()
in iot-onboarding-service/src/cloudrack-lambda-core/db/db.go
47 11 1
func()
in iot-onboarding-service/src/cloudrack-lambda-core/db/db.go
47 11 1
func()
in iot-onboarding-service/src/cloudrack-lambda-core/db/db.go
72 11 1
constructor()
in iot-onboarding-infra/lib/iot-onboarding-infra-stack.ts
417 10 3
func()
in iot-onboarding-service/src/cloudrack-lambda-core/iot/iot.go
53 7 1
func()
in iot-onboarding-service/src/cloudrack-lambda-core/iot/iot.go
74 7 1
func()
in iot-onboarding-service/src/cloudrack-lambda-core/s3/s3.go
37 7 1
func identifyUseCase()
in iot-onboarding-service/src/main/main.go
12 7 2
func()
in iot-onboarding-service/src/cloudrack-lambda-core/core/utils.go
28 6 1
func()
in iot-onboarding-service/src/cloudrack-lambda-core/db/db.go
32 5 1
func builCaracterLength()
in iot-onboarding-service/src/cloudrack-lambda-core/core/utils.go
16 5 1
func()
in iot-onboarding-service/src/cloudrack-lambda-core/core/utils.go
29 5 1
func ParseBody()
in iot-onboarding-service/src/cloudrack-lambda-core/core/utils.go
16 5 2
func Create()
in iot-onboarding-service/src/cloudrack-lambda-fn/usecase/usercase.go
22 4 4
func isErrorForDelete()
in iot-onboarding-service/src/cloudrack-lambda-core/iot/iot.go
10 4 1
func()
in iot-onboarding-service/src/cloudrack-lambda-core/s3/s3.go
31 4 1
func()
in iot-onboarding-service/src/cloudrack-lambda-core/s3/s3.go
36 4 1
func()
in iot-onboarding-service/src/cloudrack-lambda-core/db/db.go
21 4 1