awslabs / amazon-qldb-driver-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 57 units with 607 lines of code in units (76.0% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (59 lines of code)
    • 5 medium size units (161 lines of code)
    • 12 small units (168 lines of code)
    • 39 very small units (219 lines of code)
0% | 9% | 26% | 27% | 36%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
go0% | 9% | 26% | 27% | 36%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
qldbdriver0% | 9% | 26% | 27% | 36%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
func()
in qldbdriver/qldbdriver.go
59 16 1
func()
in qldbdriver/session.go
44 6 1
func()
in qldbdriver/transaction.go
39 9 1
func()
in qldbdriver/qldbdriver.go
29 6 1
func New()
in qldbdriver/qldbdriver.go
28 5 3
func hashComparator()
in qldbdriver/qldbhash.go
21 7 2
func joinHashesPairwise()
in qldbdriver/qldbhash.go
19 5 2
func toQLDBHash()
in qldbdriver/qldbhash.go
18 5 1
func()
in qldbdriver/result.go
17 4 1
func()
in qldbdriver/session.go
15 4 1
func()
in qldbdriver/qldbdriver.go
15 4 1
func()
in qldbdriver/qldbdriver.go
13 3 1
func()
in qldbdriver/communicator.go
13 2 1
func()
in qldbdriver/transaction.go
12 3 1
func()
in qldbdriver/logger.go
12 4 1
func()
in qldbdriver/logger.go
12 4 1
func()
in qldbdriver/result.go
11 2 1
func()
in qldbdriver/session.go
11 3 1
func()
in qldbdriver/transaction.go
10 3 1
func()
in qldbdriver/result.go
9 3 1