aws / eks-distro-prow-jobs
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 23 units with 466 lines of code in units (6.9% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (94 lines of code)
    • 6 simple units (189 lines of code)
    • 16 very simple units (183 lines of code)
0% | 0% | 20% | 40% | 39%
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% | 20% | 40% | 39%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
linter0% | 0% | 33% | 25% | 40%
templater0% | 0% | 0% | 55% | 44%
templater/jobs/utils0% | 0% | 0% | 56% | 43%
templater/jobs0% | 0% | 0% | 100% | 0%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
func main()
in linter/main.go
94 21 0
func UnmarshalJobs()
in templater/jobs/utils/utils.go
45 10 1
26 9 1
28 9 1
func getFilesChanged()
in linter/main.go
17 8 3
func GetJobList()
in templater/jobs/jobs.go
27 7 1
func main()
in templater/main.go
46 7 0
17 4 1
func GenerateProwjob()
in templater/main.go
17 4 3
func useTemplate()
in templater/main.go
12 4 1
func()
in linter/main.go
17 3 1
func findLineNumber()
in linter/main.go
9 3 2
func GetJobsByType()
in templater/jobs/utils/utils.go
12 3 2
func ExecuteTemplate()
in templater/jobs/utils/utils.go
22 3 2
func AlwaysRunCheck()
in linter/main.go
8 2 0
func SkipReportCheck()
in linter/main.go
8 2 0
8 2 1
8 2 1
8 2 1
8 2 1