aws-quickstart / cur-dashboard
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 40 units with 1,132 lines of code in units (52.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 6 medium complex units (393 lines of code)
    • 10 simple units (453 lines of code)
    • 24 very simple units (286 lines of code)
0% | 0% | 34% | 40% | 25%
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% | 34% | 40% | 25%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
scripts/go/analyzeCUR0% | 0% | 58% | 30% | 11%
scripts/go/curconvert0% | 0% | 29% | 30% | 40%
scripts/go/costcli0% | 0% | 25% | 43% | 30%
scripts/go/example/curcli0% | 0% | 0% | 100% | 0%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
func main()
in scripts/go/analyzeCUR/analyzeCUR.go
83 18 0
func sendQuery()
in scripts/go/costcli/costcli.go
72 17 6
func sendQuery()
in scripts/go/analyzeCUR/analyzeCUR.go
68 16 5
func()
in scripts/go/curconvert/curconvert.go
57 13 1
func()
in scripts/go/curconvert/curconvert.go
55 13 1
func sendMetric()
in scripts/go/analyzeCUR/analyzeCUR.go
58 11 7
func processCUR()
in scripts/go/analyzeCUR/analyzeCUR.go
54 10 7
func main()
in scripts/go/costcli/costcli.go
105 8 0
func()
in scripts/go/curconvert/curconvert.go
36 8 1
func main()
in scripts/go/example/curcli/curcli.go
108 8 0
func()
in scripts/go/curconvert/curconvert.go
25 7 1
func findTagMatch()
in scripts/go/costcli/costcli.go
16 6 2
func getInstanceMetadata()
in scripts/go/analyzeCUR/analyzeCUR.go
28 6 1
func getParams()
in scripts/go/analyzeCUR/analyzeCUR.go
26 6 8
func()
in scripts/go/curconvert/curconvert.go
20 6 1
func()
in scripts/go/curconvert/curconvert.go
35 6 1
func getConfig()
in scripts/go/costcli/costcli.go
13 4 2
func findRegex()
in scripts/go/costcli/costcli.go
13 4 2
func processResults()
in scripts/go/costcli/costcli.go
20 4 2
func getConfig()
in scripts/go/analyzeCUR/analyzeCUR.go
13 4 2