aws-quickstart / quickstart-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 135 units with 2,942 lines of code in units (75.2% of code).
    • 2 very long units (207 lines of code)
    • 12 long units (804 lines of code)
    • 33 medium size units (1,054 lines of code)
    • 41 small units (600 lines of code)
    • 47 very small units (277 lines of code)
7% | 27% | 35% | 20% | 9%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
go7% | 27% | 35% | 20% | 9%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
cmd/resource7% | 28% | 34% | 21% | 8%
vpc0% | 0% | 94% | 0% | 6%
cmd0% | 0% | 60% | 0% | 39%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
func()
in cmd/resource/kube.go
104 34 1
func initialize()
in cmd/resource/action.go
103 27 3
func testDynamicResources()
in cmd/resource/testing.go
100 1 0
func()
in cmd/resource/utils.go
91 20 1
func()
in cmd/resource/helm.go
87 20 1
func addHelmRepoUpdate()
in cmd/resource/helm.go
74 19 7
func()
in cmd/resource/helm.go
67 18 1
func checkReleaseStatus()
in cmd/resource/action.go
61 14 3
func invokeLambda()
in cmd/resource/lambda.go
56 10 3
func()
in cmd/resource/kube.go
55 12 1
func()
in cmd/resource/action.go
54 14 1
func createKubeConfig()
in cmd/resource/kube.go
54 12 6
53 10 2
func downloadOCI()
in cmd/resource/utils.go
52 7 5
func Read()
in cmd/resource/resource.go
50 13 3
func HandleRequest()
in vpc/main.go
47 11 2
func newFakeBuilder()
in cmd/resource/testing.go
47 17 1
func()
in cmd/resource/utils.go
43 12 1
func updateFunction()
in cmd/resource/lambda.go
41 7 2
func roughlyEqual()
in cmd/resource/utils.go
40 17 2