aws-quickstart / quickstart-amazon-eks-cluster-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 76 units with 1,202 lines of code in units (68.5% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (180 lines of code)
    • 15 simple units (412 lines of code)
    • 57 very simple units (610 lines of code)
0% | 0% | 14% | 34% | 50%
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% | 14% | 34% | 50%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
cmd/resource0% | 0% | 11% | 34% | 53%
vpc0% | 0% | 94% | 0% | 5%
cmd0% | 0% | 0% | 60% | 39%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
func updateCluster()
in cmd/resource/eks_handlers.go
53 15 2
func HandleRequest()
in vpc/main.go
49 14 2
func deleteCluster()
in cmd/resource/eks_handlers.go
26 11 3
func describeClusterToModel()
in cmd/resource/eks.go
52 11 2
func()
in cmd/resource/k8sauth.go
33 9 1
func vpcChanged()
in cmd/resource/eks.go
26 9 2
func Update()
in cmd/resource/resource.go
25 8 3
func isPrivate()
in cmd/resource/eks.go
20 8 1
func errorEvent()
in cmd/resource/events.go
26 8 2
func Create()
in cmd/resource/resource.go
27 7 3
func()
in cmd/resource/k8sauth.go
35 7 1
func putFunction()
in cmd/resource/lambda.go
33 7 3
func invokeLambda()
in cmd/resource/lambda.go
44 7 5
func getDisabledLoggingTypes()
in cmd/resource/eks.go
21 7 1
func stabilize()
in cmd/resource/stabilize.go
19 6 3
func updateIamAuth()
in cmd/resource/k8sauth.go
25 6 3
func deleteFunction()
in cmd/resource/lambda.go
17 6 3
func makeCreateClusterInput()
in cmd/resource/eks.go
33 6 1
func wrap()
in cmd/main.go
28 6 2
func()
in cmd/resource/k8sauth.go
13 5 1