aws-quickstart / quickstart-trend-micro-cloudone-helm-resource-provider
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 15 units with 126 lines of code in units (20.8% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 2 medium size units (75 lines of code)
    • 1 small units (11 lines of code)
    • 12 very small units (40 lines of code)
0% | 0% | 59% | 8% | 31%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
go0% | 0% | 59% | 8% | 31%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
vpc0% | 0% | 94% | 0% | 6%
cmd0% | 0% | 60% | 0% | 39%
cmd/resource0% | 0% | 0% | 36% | 63%
Alternative Visuals
Longest Units
Top 15 longest units
Unit# linesMcCabe index# params
func HandleRequest()
in vpc/main.go
47 11 2
func wrap()
in cmd/main.go
28 6 2
func transformModel()
in cmd/resource/action.go
11 3 2
func Create()
in cmd/resource/resource.go
4 1 3
func Read()
in cmd/resource/resource.go
4 1 3
func Update()
in cmd/resource/resource.go
4 1 3
func Delete()
in cmd/resource/resource.go
4 1 3
func main()
in vpc/main.go
3 1 0
func List()
in cmd/resource/resource.go
3 1 3
func()
in cmd/main.go
3 1 1
func()
in cmd/main.go
3 1 1
func()
in cmd/main.go
3 1 1
func()
in cmd/main.go
3 1 1
func()
in cmd/main.go
3 1 1
func main()
in cmd/main.go
3 1 0