aws / aws-elastic-beanstalk-cli
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 1,422 units with 13,307 lines of code in units (70.3% of code).
    • 1 very long units (128 lines of code)
    • 22 long units (1,315 lines of code)
    • 123 medium size units (3,694 lines of code)
    • 238 small units (3,400 lines of code)
    • 1,038 very small units (4,770 lines of code)
<1% | 9% | 27% | 25% | 35%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py<1% | 9% | 27% | 25% | 35%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
ebcli/controllers7% | 11% | 33% | 22% | 24%
ebcli/operations0% | 8% | 31% | 30% | 30%
ebcli/bundled0% | 28% | 23% | 14% | 33%
ebcli/objects0% | 14% | 21% | 30% | 33%
ebcli/display0% | 9% | 26% | 30% | 33%
ebcli/core0% | 9% | 27% | 19% | 43%
ebcli/labs0% | 15% | 58% | 8% | 17%
ebcli/lib0% | 2% | 24% | 29% | 43%
ebcli/containers0% | 0% | 9% | 12% | 77%
ROOT0% | 0% | 0% | 100% | 0%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def do_command()
in ebcli/controllers/create.py
128 55 1
def draw()
in ebcli/bundled/asciimatics/screen.py
85 43 7
def wait_for_success_events()
in ebcli/operations/commonops.py
83 18 12
def do_command()
in ebcli/controllers/clone.py
77 16 1
def fill_polygon()
in ebcli/bundled/asciimatics/screen.py
74 37 4
def ssh_into_instance()
in ebcli/operations/sshops.py
60 26 5
def handle_input()
in ebcli/display/screen.py
60 29 1
def __init__()
in ebcli/objects/requests.py
59 8 29
def prompt_and_action()
in ebcli/display/screen.py
59 17 3
def create_health_tables()
in ebcli/operations/healthops.py
57 4 2
def get_dockerrun_v2()
in ebcli/labs/convertdockerrun.py
57 9 1
def make_api_call()
in ebcli/lib/aws.py
56 16 3
def setup()
in ebcli/core/ebcore.py
56 3 1
def create_app_version()
in ebcli/operations/commonops.py
55 15 6
def open()
in ebcli/bundled/asciimatics/screen.py
55 10 4
def __init__()
in ebcli/bundled/asciimatics/screen.py
55 19 5
def compose_deploy()
in ebcli/controllers/deploy.py
54 13 1
def run_app()
in ebcli/core/ebrun.py
54 17 1
def collect_changes()
in ebcli/objects/environmentsettings.py
54 14 2
def deploy()
in ebcli/operations/deployops.py
52 11 10