aws-quickstart / quickstart-tableau-snowflake
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 22 units with 414 lines of code in units (83.1% of code).
    • 0 very long units (0 lines of code)
    • 2 long units (122 lines of code)
    • 6 medium size units (183 lines of code)
    • 3 small units (47 lines of code)
    • 11 very small units (62 lines of code)
0% | 29% | 44% | 11% | 14%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 29% | 44% | 11% | 14%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
assets/scripts0% | 29% | 44% | 11% | 14%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def run_inno_installer()
in assets/scripts/SilentInstaller.py
62 16 1
def make_cmd_line_parser()
in assets/scripts/SilentInstaller.py
60 8 0
def main()
in assets/scripts/SilentInstaller.py
37 11 0
def run_setup()
in assets/scripts/SilentInstaller.py
34 8 3
def run_worker_installer()
in assets/scripts/SilentInstaller.py
31 8 2
def main()
in assets/scripts/update-datasource.py
30 10 1
def get_nodes_and_apply_topology()
in assets/scripts/SilentInstaller.py
30 9 5
def run_command()
in assets/scripts/SilentInstaller.py
21 7 5
def __init__()
in assets/scripts/SilentInstaller.py
17 8 2
def getGatewayPort()
in assets/scripts/SilentInstaller.py
16 6 1
def get_options()
in assets/scripts/SilentInstaller.py
14 3 0
def run_tsm_command()
in assets/scripts/SilentInstaller.py
10 3 5
def read_json_file()
in assets/scripts/SilentInstaller.py
9 3 1
def print_error_lines()
in assets/scripts/SilentInstaller.py
8 2 1
def run_tabcmd_command()
in assets/scripts/SilentInstaller.py
7 2 2
def make_bootstrap_cmd_line_parser()
in assets/scripts/SilentInstaller.py
6 1 0
def assert_no_existing_installation()
in assets/scripts/SilentInstaller.py
6 2 0
def is_server_installed()
in assets/scripts/SilentInstaller.py
4 1 0
def __str__()
in assets/scripts/SilentInstaller.py
3 3 1
def __init__()
in assets/scripts/SilentInstaller.py
3 1 3