aws / aws-secretsmanager-caching-go
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 33 units with 349 lines of code in units (73.5% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 3 medium size units (70 lines of code)
    • 12 small units (183 lines of code)
    • 18 very small units (96 lines of code)
0% | 0% | 20% | 52% | 27%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
go0% | 0% | 20% | 52% | 27%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
secretcache0% | 0% | 20% | 52% | 27%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
func()
in secretcache/cacheItem.go
26 4 1
func()
in secretcache/cacheItem.go
23 7 1
func New()
in secretcache/cache.go
21 4 1
func()
in secretcache/cacheVersion.go
19 3 1
func()
in secretcache/cacheItem.go
19 3 1
func()
in secretcache/lruCache.go
18 3 1
func()
in secretcache/cacheItem.go
17 6 1
func()
in secretcache/cache.go
15 3 1
func()
in secretcache/cache.go
15 3 1
func()
in secretcache/cacheItem.go
14 3 1
func()
in secretcache/lruCache.go
14 4 1
func()
in secretcache/lruCache.go
14 5 1
func()
in secretcache/cacheVersion.go
13 3 1
func()
in secretcache/cacheItem.go
13 3 1
func()
in secretcache/cacheObject.go
12 4 1
func()
in secretcache/cache.go
10 2 1
func()
in secretcache/lruCache.go
10 2 1
func()
in secretcache/cacheVersion.go
7 1 1
func()
in secretcache/cacheVersion.go
7 2 1
func newSecretCacheItem()
in secretcache/cacheItem.go
7 1 3