aws / aws-elastic-beanstalk-cli-setup
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 26 units with 275 lines of code in units (65.3% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 2 medium size units (86 lines of code)
    • 7 small units (105 lines of code)
    • 17 very small units (84 lines of code)
0% | 0% | 31% | 38% | 30%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 0% | 31% | 38% | 30%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
scripts0% | 0% | 31% | 38% | 30%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def _parse_arguments()
in scripts/ebcli_installer.py
47 3 0
def _announce_success()
in scripts/ebcli_installer.py
39 4 2
def _print_in_foreground()
in scripts/ebcli_installer.py
20 5 2
def _activate_virtualenv()
in scripts/ebcli_installer.py
15 3 1
def _generate_ebcli_wrappers()
in scripts/ebcli_installer.py
15 3 1
def _user_local_directory()
in scripts/ebcli_installer.py
15 5 0
def _locate_virtualenv_executable()
in scripts/ebcli_installer.py
14 6 0
def _install_ebcli()
in scripts/ebcli_installer.py
14 4 3
def _pip_executable_found()
in scripts/ebcli_installer.py
12 5 1
def _exec_cmd()
in scripts/ebcli_installer.py
10 2 2
def _original_eb_location()
in scripts/ebcli_installer.py
10 2 1
def __call__()
in scripts/ebcli_installer.py
9 1 2
def _add_ebcli_stamp()
in scripts/ebcli_installer.py
9 1 1
def _directory_was_created_by_installer()
in scripts/ebcli_installer.py
7 1 1
def _eb_wrapper_location()
in scripts/ebcli_installer.py
6 1 1
def _create_virtualenv()
in scripts/ebcli_installer.py
5 1 0
def _bat_script_body()
in scripts/ebcli_installer.py
4 1 1
def _powershell_script_body()
in scripts/ebcli_installer.py
4 1 1
def _python_script_body()
in scripts/ebcli_installer.py
4 1 1
3 2 0