aws / aws-k8s-tester
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 2,188 units with 69,299 lines of code in units (79.4% of code).
    • 13 very complex units (4,875 lines of code)
    • 42 complex units (8,404 lines of code)
    • 173 medium complex units (14,939 lines of code)
    • 290 simple units (11,911 lines of code)
    • 1,670 very simple units (29,170 lines of code)
7% | 12% | 21% | 17% | 42%
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
go7% | 12% | 21% | 17% | 42%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
eks7% | 14% | 23% | 17% | 37%
eksconfig24% | 27% | 17% | 3% | 26%
pkg9% | 10% | 17% | 28% | 34%
k8s-tester3% | 2% | 13% | 14% | 66%
ec2config20% | 17% | 18% | 12% | 31%
ec20% | 21% | 29% | 21% | 27%
cmd0% | 4% | 48% | 14% | 32%
utils0% | 7% | 35% | 15% | 42%
client0% | 7% | 7% | 24% | 60%
ssh0% | 0% | 65% | 22% | 12%
version0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
func()
in pkg/k8s-client/eks-deprecate.go
665 152 1
func()
in eksconfig/env.go
555 137 1
func()
in eks/eks.go
532 103 1
func()
in k8s-tester/config.go
161 91 1
func()
in eks/stresser/remote/stresser.go
558 89 1
func()
in eks/secrets/remote/secrets.go
554 87 1
func()
in eksconfig/config.go
248 84 1
func()
in k8s-tester/config.go
358 83 1
func()
in eksconfig/add-on-managed-node-groups.go
218 76 1
func()
in eksconfig/add-on-node-groups.go
189 71 1
func()
in ec2config/validate-defaults.go
158 56 1
func New()
in eks/eks.go
406 53 1
func()
in eks/cluster-loader/cluster-loader.go
273 51 1
func()
in eksconfig/config.go
151 50 1
func()
in eks/ng/logs.go
350 49 1
func()
in eks/mng/logs.go
350 49 1
func()
in pkg/k8s-client/eks.go
216 48 1
func ConvertExtensionsV1beta1ToPolicyV1beta1PodSecurityPolicy()
in pkg/k8s-client/eks-deprecate/deprecate.go
187 47 1
func()
in eksconfig/add-on-secrets-remote.go
194 47 1
func()
in ec2config/validate-defaults.go
131 46 1