kubernetes / node-api
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 71 units with 522 lines of code in units (61.5% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 1 simple units (20 lines of code)
    • 70 very simple units (502 lines of code)
0% | 0% | 0% | 3% | 96%
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% | 0% | 3% | 96%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
pkg/client/clientset/versioned0% | 0% | 0% | 48% | 51%
pkg/client/clientset/versioned/typed0% | 0% | 0% | 0% | 100%
pkg/client/informers/externalversions0% | 0% | 0% | 0% | 100%
pkg/apis/node/v1alpha10% | 0% | 0% | 0% | 100%
pkg/client/informers/externalversions/node0% | 0% | 0% | 0% | 100%
pkg/client/clientset/versioned/fake0% | 0% | 0% | 0% | 100%
pkg/client/listers/node/v1alpha10% | 0% | 0% | 0% | 100%
pkg/client/clientset/versioned/scheme0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
func NewForConfig()
in pkg/client/clientset/versioned/clientset.go
20 6 1
func()
in pkg/client/clientset/versioned/typed/node/v1alpha1/fake/fake_runtimeclass.go
18 5 1
func()
in pkg/client/informers/externalversions/factory.go
18 4 1
func NewSimpleClientset()
in pkg/client/clientset/versioned/fake/clientset_generated.go
21 4 1
func NewFilteredRuntimeClassInformer()
in pkg/client/informers/externalversions/node/v1alpha1/runtimeclass.go
21 3 4
func()
in pkg/client/informers/externalversions/factory.go
10 3 1
func()
in pkg/client/informers/externalversions/factory.go
16 3 1
func NewForConfig()
in pkg/client/clientset/versioned/typed/node/v1alpha1/node_client.go
11 3 1
func()
in pkg/client/listers/node/v1alpha1/runtimeclass.go
10 3 1
func()
in pkg/apis/node/v1alpha1/zz_generated.deepcopy.go
13 3 1
func()
in pkg/client/informers/externalversions/generic.go
7 2 1
func WithCustomResyncConfig()
in pkg/client/informers/externalversions/factory.go
8 2 1
func NewSharedInformerFactoryWithOptions()
in pkg/client/informers/externalversions/factory.go
14 2 3
func()
in pkg/client/clientset/versioned/clientset.go
6 2 1
func NewForConfigOrDie()
in pkg/client/clientset/versioned/typed/node/v1alpha1/node_client.go
7 2 1
func setConfigDefaults()
in pkg/client/clientset/versioned/typed/node/v1alpha1/node_client.go
10 2 1
func()
in pkg/client/clientset/versioned/typed/node/v1alpha1/node_client.go
6 2 1
func()
in pkg/client/clientset/versioned/typed/node/v1alpha1/fake/fake_runtimeclass.go
8 2 1
func()
in pkg/client/clientset/versioned/typed/node/v1alpha1/fake/fake_runtimeclass.go
8 2 1
func()
in pkg/client/clientset/versioned/typed/node/v1alpha1/fake/fake_runtimeclass.go
8 2 1