aws / aws-sigv4-auth-cassandra-gocql-driver-plugin
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 14 units with 103 lines of code in units (75.7% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 0 medium size units (0 lines of code)
    • 3 small units (37 lines of code)
    • 11 very small units (66 lines of code)
0% | 0% | 0% | 35% | 64%
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% | 0% | 35% | 64%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
sigv4/internal0% | 0% | 0% | 37% | 62%
sigv40% | 0% | 0% | 34% | 65%
Alternative Visuals
Longest Units
Top 14 longest units
Unit# linesMcCabe index# params
func()
in sigv4/sigv4.go
15 3 1
func formCanonicalRequest()
in sigv4/internal/crypt.go
11 1 4
func BuildSignedResponse()
in sigv4/internal/crypt.go
11 2 6
func()
in sigv4/sigv4.go
9 1 1
func ExtractNonce()
in sigv4/internal/crypt.go
8 2 1
func computeScope()
in sigv4/internal/crypt.go
8 1 2
func deriveSigningKey()
in sigv4/internal/crypt.go
8 1 3
7 2 0
7 1 0
func applyHmac()
in sigv4/internal/crypt.go
5 1 2
func createSignature()
in sigv4/internal/crypt.go
5 1 4
func()
in sigv4/sigv4.go
3 1 1
func()
in sigv4/sigv4.go
3 1 1
func toCredDateStamp()
in sigv4/internal/crypt.go
3 1 1