aws / secrets-store-csi-driver-provider-aws
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 33 units with 598 lines of code in units (63.2% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 3 medium complex units (163 lines of code)
    • 6 simple units (232 lines of code)
    • 24 very simple units (203 lines of code)
0% | 0% | 27% | 38% | 33%
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% | 27% | 38% | 33%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
provider0% | 0% | 25% | 45% | 29%
server0% | 0% | 51% | 23% | 25%
ROOT0% | 0% | 0% | 100% | 0%
auth0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
func()
in provider/secret_descriptor.go
46 22 1
func()
in server/server.go
71 16 1
func NewSecretDescriptorList()
in provider/secret_descriptor.go
46 13 3
func()
in provider/parameter_store_provider.go
58 10 1
func()
in provider/secrets_manager_provider.go
43 8 1
func()
in provider/secrets_manager_provider.go
27 7 1
func()
in provider/secret_value.go
32 7 1
func()
in server/server.go
32 7 1
func main()
in main.go
40 6 0
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 auth/auth.go
20 3 1
func()
in provider/secret_descriptor.go
12 3 1
func()
in auth/auth.go
11 2 1
func NewAuth()
in auth/auth.go
21 2 5
func min()
in provider/parameter_store_provider.go
6 2 2
func()
in provider/secrets_manager_provider.go
7 2 1
func()
in provider/secret_descriptor.go
7 2 1
func NewParameterStoreProviderWithClient()
in provider/parameter_store_provider.go
5 1 1