microsoft / fabrikate
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 117 units with 1,626 lines of code in units (76.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 7 medium complex units (427 lines of code)
    • 10 simple units (253 lines of code)
    • 100 very simple units (946 lines of code)
0% | 0% | 26% | 15% | 58%
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% | 26% | 15% | 58%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
internal/generators0% | 0% | 44% | 36% | 18%
internal/cmd0% | 0% | 27% | 10% | 61%
internal/git0% | 0% | 52% | 0% | 48%
internal/core0% | 0% | 15% | 25% | 59%
internal/helm0% | 0% | 44% | 0% | 55%
internal/logger0% | 0% | 0% | 0% | 100%
util0% | 0% | 0% | 0% | 100%
internal/url0% | 0% | 0% | 0% | 100%
cmd/fab0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
func()
in internal/generators/helm.go
49 16 1
func()
in internal/generators/helm.go
63 15 1
func DependencyUpdate()
in internal/helm/dependency.go
70 15 1
func Install()
in internal/cmd/install.go
46 12 1
func Set()
in internal/cmd/set.go
46 12 5
func WalkComponentTree()
in internal/core/component.go
75 12 4
func()
in internal/git/core.go
78 11 1
func Generate()
in internal/cmd/generate.go
36 9 3
func()
in internal/generators/static.go
37 9 1
func()
in internal/core/component.go
21 7 1
func()
in internal/core/component.go
19 7 1
func()
in internal/core/component.go
21 7 1
func addNamespaceToManifests()
in internal/generators/helm.go
40 7 2
func()
in internal/core/component.go
22 6 1
func()
in internal/core/component.go
25 6 1
func()
in internal/core/component.go
17 6 1
func()
in internal/generators/helm.go
15 6 1
func FindComponent()
in internal/cmd/find.go
19 5 1
func GetFabrikateComponents()
in internal/cmd/find.go
20 5 1
func()
in internal/core/component.go
19 5 1