aws-quickstart / quickstart-helm-resource-provider
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 135 units with 2,942 lines of code in units (75.2% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (207 lines of code)
    • 15 medium complex units (842 lines of code)
    • 23 simple units (709 lines of code)
    • 95 very simple units (1,184 lines of code)
0% | 7% | 28% | 24% | 40%
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% | 7% | 28% | 24% | 40%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
cmd/resource0% | 7% | 27% | 23% | 40%
vpc0% | 0% | 94% | 0% | 6%
cmd0% | 0% | 0% | 60% | 39%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
func()
in cmd/resource/kube.go
104 34 1
func initialize()
in cmd/resource/action.go
103 27 3
func()
in cmd/resource/utils.go
91 20 1
func()
in cmd/resource/helm.go
87 20 1
func addHelmRepoUpdate()
in cmd/resource/helm.go
74 19 7
func()
in cmd/resource/helm.go
67 18 1
func roughlyEqual()
in cmd/resource/utils.go
40 17 2
func newFakeBuilder()
in cmd/resource/testing.go
47 17 1
func isZero()
in cmd/resource/utils.go
38 15 1
func checkReleaseStatus()
in cmd/resource/action.go
61 14 3
func()
in cmd/resource/action.go
54 14 1
func Read()
in cmd/resource/resource.go
50 13 3
func()
in cmd/resource/utils.go
43 12 1
func createKubeConfig()
in cmd/resource/kube.go
54 12 6
func()
in cmd/resource/kube.go
55 12 1
func HandleRequest()
in vpc/main.go
47 11 2
func structToMap()
in cmd/resource/utils.go
34 11 1
func generateID()
in cmd/resource/utils.go
28 10 4
func()
in cmd/resource/utils.go
39 10 1
53 10 2