aws-quickstart / quickstart-amazon-eks-cluster-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 76 units with 1,202 lines of code in units (68.5% of code).
    • 0 very long units (0 lines of code)
    • 3 long units (159 lines of code)
    • 19 medium size units (565 lines of code)
    • 18 small units (261 lines of code)
    • 36 very small units (217 lines of code)
0% | 13% | 47% | 21% | 18%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
go0% | 13% | 47% | 21% | 18%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
cmd/resource0% | 14% | 44% | 23% | 17%
vpc0% | 0% | 94% | 0% | 5%
cmd0% | 0% | 60% | 0% | 39%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
func putAwsAuthAdminRole()
in cmd/resource/k8sauth.go
54 5 1
func updateCluster()
in cmd/resource/eks_handlers.go
53 15 2
func describeClusterToModel()
in cmd/resource/eks.go
52 11 2
func HandleRequest()
in vpc/main.go
49 14 2
func invokeLambda()
in cmd/resource/lambda.go
44 7 5
func()
in cmd/resource/k8sauth.go
35 7 1
func updateFunction()
in cmd/resource/lambda.go
34 5 4
func()
in cmd/resource/k8sauth.go
33 9 1
func putFunction()
in cmd/resource/lambda.go
33 7 3
func makeCreateClusterInput()
in cmd/resource/eks.go
33 6 1
func createFunction()
in cmd/resource/lambda.go
30 4 4
func()
in cmd/resource/k8sauth.go
28 3 1
func wrap()
in cmd/main.go
28 6 2
func Create()
in cmd/resource/resource.go
27 7 3
func deleteCluster()
in cmd/resource/eks_handlers.go
26 11 3
func vpcChanged()
in cmd/resource/eks.go
26 9 2
func errorEvent()
in cmd/resource/events.go
26 8 2
func Update()
in cmd/resource/resource.go
25 8 3
func updateIamAuth()
in cmd/resource/k8sauth.go
25 6 3
func createIamAuth()
in cmd/resource/k8sauth.go
21 5 3