bazelbuild / remote-apis
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 613 units with 4,255 lines of code in units (47.6% of code).
    • 1 very complex units (638 lines of code)
    • 1 complex units (133 lines of code)
    • 0 medium complex units (0 lines of code)
    • 2 simple units (86 lines of code)
    • 609 very simple units (3,398 lines of code)
14% | 3% | 0% | 2% | 79%
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
go14% | 3% | 0% | 2% | 79%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
build/bazel/remote/execution/v219% | 0% | 0% | 0% | 80%
build/bazel/remote/asset/v10% | 18% | 0% | 0% | 81%
build/bazel/remote/logstream/v10% | 0% | 0% | 30% | 69%
build/bazel/semver0% | 0% | 0% | 39% | 60%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
func file_build_bazel_remote_execution_v2_remote_execution_proto_init()
in build/bazel/remote/execution/v2/remote_execution.pb.go
638 156 0
func file_build_bazel_remote_asset_v1_remote_asset_proto_init()
in build/bazel/remote/asset/v1/remote_asset.pb.go
133 30 0
func file_build_bazel_remote_logstream_v1_remote_logstream_proto_init()
in build/bazel/remote/logstream/v1/remote_logstream.pb.go
49 9 0
func file_build_bazel_semver_semver_proto_init()
in build/bazel/semver/semver.pb.go
37 6 0
func()
in build/bazel/semver/semver.pb.go
11 4 1
func()
in build/bazel/remote/execution/v2/remote_execution.pb.go
11 4 1
func()
in build/bazel/remote/execution/v2/remote_execution.pb.go
11 4 1
func()
in build/bazel/remote/execution/v2/remote_execution.pb.go
11 4 1
func()
in build/bazel/remote/execution/v2/remote_execution.pb.go
11 4 1
func()
in build/bazel/remote/execution/v2/remote_execution.pb.go
11 4 1
func()
in build/bazel/remote/execution/v2/remote_execution.pb.go
11 4 1
func()
in build/bazel/remote/execution/v2/remote_execution.pb.go
11 4 1
func()
in build/bazel/remote/execution/v2/remote_execution.pb.go
11 4 1
func()
in build/bazel/remote/execution/v2/remote_execution.pb.go
11 4 1
func()
in build/bazel/remote/execution/v2/remote_execution.pb.go
11 4 1
func()
in build/bazel/remote/execution/v2/remote_execution.pb.go
11 4 1
func()
in build/bazel/remote/execution/v2/remote_execution.pb.go
11 4 1
func()
in build/bazel/remote/execution/v2/remote_execution.pb.go
11 4 1
func()
in build/bazel/remote/execution/v2/remote_execution.pb.go
11 4 1
func()
in build/bazel/remote/execution/v2/remote_execution.pb.go
11 4 1