aws / constructs-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 49 units with 557 lines of code in units (82.3% of code).
    • 1 very long units (138 lines of code)
    • 0 long units (0 lines of code)
    • 0 medium size units (0 lines of code)
    • 2 small units (22 lines of code)
    • 46 very small units (397 lines of code)
24% | 0% | 0% | 3% | 71%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
go24% | 0% | 0% | 3% | 71%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
constructs24% | 0% | 0% | 3% | 71%
constructs/jsii0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
func init()
in constructs/constructs.init.go
138 1 0
func Node_Of()
in constructs/constructs.go
11 1 1
func()
in constructs/constructs.go
11 2 1
func NewConstruct()
in constructs/constructs.go
10 1 3
func()
in constructs/constructs.go
10 1 1
func()
in constructs/constructs.go
10 1 1
10 1 0
10 1 0
10 1 0
10 1 0
func()
in constructs/constructs.go
10 1 1
func()
in constructs/constructs.go
10 1 1
func NewNode()
in constructs/constructs.go
10 1 3
func Node_PATH_SEP()
in constructs/constructs.go
10 1 0
func()
in constructs/constructs.go
10 1 1
func()
in constructs/constructs.go
10 1 1
func()
in constructs/constructs.go
10 1 1
func()
in constructs/constructs.go
10 1 1
func()
in constructs/constructs.go
10 1 1
func()
in constructs/constructs.go
10 1 1