aws / aws-dax-go
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 584 units with 8,395 lines of code in units (89.9% of code).
    • 1 very complex units (244 lines of code)
    • 11 complex units (1,234 lines of code)
    • 35 medium complex units (1,839 lines of code)
    • 58 simple units (1,572 lines of code)
    • 479 very simple units (3,506 lines of code)
2% | 14% | 21% | 18% | 41%
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
go2% | 14% | 21% | 18% | 41%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
dax/internal/client4% | 14% | 25% | 22% | 32%
dax/internal/cbor0% | 32% | 21% | 16% | 29%
dax/internal/parser0% | 0% | 11% | 13% | 75%
dax/internal/proxy0% | 0% | 77% | 0% | 22%
dax/internal/lru0% | 0% | 56% | 0% | 43%
dax0% | 0% | 0% | 2% | 97%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
func encodeTransactWriteItemsInput()
in dax/internal/client/request.go
244 58 6
func DecodeAttributeValue()
in dax/internal/cbor/attrval.go
142 40 1
func decodeBatchGetItemOutput()
in dax/internal/client/response.go
135 39 6
func decodeError()
in dax/internal/client/error.go
119 39 1
func encodeScanQueryOptionalParams()
in dax/internal/client/request.go
114 39 14
func GetEncodedItemKey()
in dax/internal/cbor/item.go
112 34 2
func()
in dax/internal/client/single.go
132 32 1
func EncodeAttributeValue()
in dax/internal/cbor/attrval.go
79 32 2
func()
in dax/internal/client/single.go
113 31 1
func encode()
in dax/internal/cbor/lexdecimal.go
113 30 3
func decodeBatchWriteItemOutput()
in dax/internal/client/response.go
103 29 5
func encodeItemOperationOptionalParamsWithToken()
in dax/internal/client/request.go
72 27 11
func convertDaxError()
in dax/internal/client/error.go
102 25 1
func DecodeItemKey()
in dax/internal/cbor/item.go
94 24 2
func encodeTransactGetItemsInput()
in dax/internal/client/request.go
88 22 5
func encodeBatchGetItemInput()
in dax/internal/client/request.go
68 21 4
func appendComparisonCondition()
in dax/internal/client/legacy.go
59 20 7
func decode()
in dax/internal/cbor/lexdecimal.go
104 20 2
func encodeBatchWriteItemInput()
in dax/internal/client/request.go
62 19 5
func()
in dax/internal/client/cluster.go
61 18 1