bazelbuild / sandboxfs
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 342 units with 3,523 lines of code in units (73.9% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 3 medium complex units (172 lines of code)
    • 13 simple units (434 lines of code)
    • 326 very simple units (2,917 lines of code)
0% | 0% | 4% | 12% | 82%
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% | 22% | 22% | 55%
rs0% | 0% | 0% | 9% | 90%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
integration/utils0% | 0% | 23% | 13% | 63%
admin/lint0% | 0% | 19% | 43% | 36%
src0% | 0% | 0% | 9% | 90%
src/nodes0% | 0% | 0% | 10% | 89%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
func mountSetupFull()
in integration/utils/exec.go
80 16 5
func main()
in admin/lint/lint.go
45 11 0
func()
in integration/utils/exec.go
47 11 1
fn safe_main()
in src/main.rs
89 10 2
func checkAll()
in admin/lint/checks.go
35 9 2
fn setattr_times()
in src/nodes/mod.rs
32 9 4
fn readdirall()
in src/nodes/dir.rs
59 9 3
func isBlacklisted()
in admin/lint/lint.go
17 8 1
fn register()
in src/reconfig.rs
39 8 2
func checkLineLength()
in admin/lint/checks.go
24 6 3
func checkNoTabs()
in admin/lint/checks.go
24 6 2
func SetConfigFromFlags()
in integration/utils/config.go
27 6 4
func toUnixUser()
in integration/utils/user.go
27 6 1
func LookupUserOtherThan()
in integration/utils/user.go
20 6 1
fn get_or_create()
in src/nodes/caches.rs
23 6 5
fn drop()
in src/concurrent.rs
18 6 1
func DirEquals()
in integration/utils/checks.go
17 5 2
func SetCredential()
in integration/utils/user.go
13 5 2
func wait()
in integration/utils/exec.go
17 5 2
func startBackground()
in integration/utils/exec.go
28 5 5