kubernetes / mount-utils
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 104 units with 1,329 lines of code in units (87.0% of code).
    • 0 very long units (0 lines of code)
    • 3 long units (193 lines of code)
    • 21 medium size units (553 lines of code)
    • 20 small units (298 lines of code)
    • 60 very small units (285 lines of code)
0% | 14% | 41% | 22% | 21%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
go0% | 14% | 41% | 22% | 21%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
ROOT0% | 14% | 41% | 22% | 21%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
func()
in mount_linux.go
69 18 1
func()
in mount_windows.go
65 15 1
func ParseMountInfo()
in mount_helper_unix.go
59 13 1
func getDiskFormat()
in mount_linux.go
37 10 2
func()
in resizefs_linux.go
35 8 1
func SearchMountPoints()
in mount_linux.go
32 13 2
func parseProcMounts()
in mount_linux.go
31 6 1
func()
in mount_windows.go
29 6 1
28 9 2
28 8 2
func CleanupMountWithForce()
in mount_helper_common.go
28 10 4
func()
in mount_linux.go
26 7 1
func()
in fake_mounter.go
26 6 1
func()
in resizefs_linux.go
25 7 1
func IsCorruptedMnt()
in mount_helper_windows.go
25 9 1
24 7 2
24 5 6
func()
in fake_mounter.go
24 6 1
func()
in fake_mounter.go
24 6 1
22 8 2