aws / secrets-store-csi-driver-provider-aws
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 598 lines of code in units (63.2% of code).
    • 0 very long units (0 lines of code)
    • 2 long units (129 lines of code)
    • 8 medium size units (287 lines of code)
    • 7 small units (104 lines of code)
    • 16 very small units (78 lines of code)
0% | 21% | 47% | 17% | 13%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
go0% | 21% | 47% | 17% | 13%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
server0% | 51% | 23% | 20% | 5%
provider0% | 16% | 54% | 9% | 20%
ROOT0% | 0% | 100% | 0% | 0%
auth0% | 0% | 32% | 67% | 0%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
func()
in server/server.go
71 16 1
func()
in provider/parameter_store_provider.go
58 10 1
func()
in provider/secret_descriptor.go
46 22 1
func NewSecretDescriptorList()
in provider/secret_descriptor.go
46 13 3
func()
in provider/secrets_manager_provider.go
43 8 1
func main()
in main.go
40 6 0
func()
in provider/secret_value.go
32 7 1
func()
in server/server.go
32 7 1
func()
in provider/secrets_manager_provider.go
27 7 1
func NewAuth()
in auth/auth.go
21 2 5
func()
in auth/auth.go
20 3 1
func()
in provider/secrets_manager_provider.go
20 5 1
func()
in server/server.go
17 4 1
func()
in auth/auth.go
13 3 1
func()
in provider/secret_descriptor.go
12 3 1
func()
in auth/auth.go
11 2 1
func NewServer()
in server/server.go
11 1 3
func()
in provider/secret_descriptor.go
8 1 1
func NewSecretProviderFactory()
in provider/secret_provider.go
8 1 2
func()
in provider/secrets_manager_provider.go
7 2 1