aws-samples / eks-automated-ipmgmt-multus-pods
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 9 units with 154 lines of code in units (93.3% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (79 lines of code)
    • 0 medium size units (0 lines of code)
    • 2 small units (36 lines of code)
    • 6 very small units (39 lines of code)
0% | 51% | 0% | 23% | 25%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 51% | 0% | 23% | 25%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
code0% | 51% | 0% | 23% | 25%
Alternative Visuals
Longest Units
Top 9 longest units
Unit# linesMcCabe index# params
def main()
in code/assign-ip-new-ip6-parallel.py
79 37 0
def release_ipv6()
in code/assign-ip-new-ip6-parallel.py
20 3 3
def get_instance_id()
in code/assign-ip-new-ip6-parallel.py
16 2 0
def get_instanceDetails()
in code/assign-ip-new-ip6-parallel.py
10 4 3
def get_subnet_cidr()
in code/assign-ip-new-ip6-parallel.py
9 2 2
def assign_ip_to_nic()
in code/assign-ip-new-ip6-parallel.py
7 1 3
def assign_ip6_to_nic()
in code/assign-ip-new-ip6-parallel.py
6 1 3
def shell_run_cmd()
in code/assign-ip-new-ip6-parallel.py
5 1 2
def tprint()
in code/assign-ip-new-ip6-parallel.py
2 1 1