aws / aws-sagemaker-edge-quick-device-setup
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 39 units with 872 lines of code in units (79.9% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (174 lines of code)
    • 3 simple units (82 lines of code)
    • 32 very simple units (616 lines of code)
0% | 0% | 19% | 9% | 70%
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% | 19% | 9% | 70%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
common0% | 0% | 46% | 30% | 23%
cli0% | 0% | 82% | 0% | 17%
aws0% | 0% | 0% | 4% | 95%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
func()
in cli/cli_args.go
15 15 1
func ParseArgs()
in cli/cli_args.go
72 15 1
func untar()
in common/utils.go
49 13 2
func GetAgentRelease()
in common/utils.go
38 12 3
func DownloadAgent()
in common/utils.go
22 10 2
func unzip()
in common/utils.go
35 9 2
25 6 3
20 5 3
92 5 2
func CreateDeviceFleet()
in aws/sagemaker.go
20 4 4
45 4 2
17 4 5
16 3 4
func RegisterDevice()
in aws/sagemaker.go
34 3 5
14 3 3
13 3 2
21 3 2
func GetIotThing()
in aws/iot.go
14 3 2
22 3 3
25 3 4