aws-samples / amazon-eks-kubeflow-multitenancy
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 10 units with 273 lines of code in units (19.5% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (53 lines of code)
    • 6 medium size units (195 lines of code)
    • 1 small units (13 lines of code)
    • 2 very small units (12 lines of code)
0% | 19% | 71% | 4% | 4%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 19% | 71% | 4% | 4%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
lambdas/kf_profile_manager0% | 19% | 71% | 4% | 4%
Alternative Visuals
Longest Units
Top 10 longest units
Unit# linesMcCabe index# params
def apply_servicerolebinding()
in lambdas/kf_profile_manager/index.py
53 6 3
def apply_rolebinding()
in lambdas/kf_profile_manager/index.py
49 6 3
def lambda_handler()
in lambdas/kf_profile_manager/index.py
43 9 2
def create_profile()
in lambdas/kf_profile_manager/index.py
31 1 3
def remove_rolebinding()
in lambdas/kf_profile_manager/index.py
25 6 2
def remove_servicerolebinding()
in lambdas/kf_profile_manager/index.py
25 6 2
def create_profile_ns()
in lambdas/kf_profile_manager/index.py
22 1 3
def profile_exists()
in lambdas/kf_profile_manager/index.py
13 3 2
def get_ns()
in lambdas/kf_profile_manager/index.py
9 3 0
def is_port_open()
in lambdas/kf_profile_manager/index.py
3 1 2